Skip to content

Conversation

@baby-gnu
Copy link
Contributor

No description provided.

@aboe76
Copy link
Contributor

aboe76 commented May 30, 2019

@baby-gnu only #34 didn't fix the problem...

@baby-gnu
Copy link
Contributor Author

@aboe76 yes, we need to check for salt['grains.get']('pythonversion')[0] == 3.

I plan to fix that after this PR merged.

@baby-gnu baby-gnu force-pushed the feature/add-kitchen-tests branch 2 times, most recently from a60c446 to cf88fda Compare May 31, 2019 00:11
@baby-gnu
Copy link
Contributor Author

I finally managed to understand how to skip the admin socket for older libvirtd.

I needed dedicated custom resources to return skip_resource from the initialize method.

Good to merge for me.

Regards.

@baby-gnu
Copy link
Contributor Author

baby-gnu commented Jun 6, 2019

Could it be merged?

@myii
Copy link
Contributor

myii commented Jun 6, 2019

@baby-gnu We really need all of the tests passing. Or if something needs to be fixed in the CI, that needs to be done first. Common error:

                 ID: libvirt.keys
           Function: virt.keys
               Name: libvirt_keys
             Result: False
            Comment: State 'virt.keys' was not found in SLS 'libvirt.keys'
              Reason: 'virt' __virtual__ returned False

@baby-gnu
Copy link
Contributor Author

baby-gnu commented Jun 7, 2019

We really need all of the tests passing. Or if something needs to be fixed in the CI, that needs to be done first.

Ok, I was wondering in which order to do the job.

@baby-gnu
Copy link
Contributor Author

I'll fix tests to pass after merging #36 ad #37.

@baby-gnu
Copy link
Contributor Author

I'll disable centos-6 because of the python version problem: SaltStack is installed with python-2.7 but the system is python-2.6, so we have an issue when installing the libvirt-python library.

@myii
Copy link
Contributor

myii commented Jun 11, 2019

@baby-gnu I've merged #35, #36 and #37 in my own fork for testing in Travis but we're still getting failures: https://travis-ci.org/myii/libvirt-formula/builds/544406124. You can use the link on that page to confirm that I've applied your changes correctly (but there were no conflicts). How would you like to proceed?

@baby-gnu
Copy link
Contributor Author

Hello @myii.

Sorry, I think I did the whole thing in the wrong order.

Ideally, I should have done several branches to apply in the order to make it easier to follow

  1. initialize the kitchen tests with only 1 test on 1 platform
    1. write the test
    2. fix the forumla if required (like with the python package problem)
  2. for each formula feature
    1. add a test for the only available platform
    2. fix the formula if required
  3. for each wanted supported platform
    1. adapt the test when required
    2. fix the formula

Now:

@myii
Copy link
Contributor

myii commented Jun 12, 2019

@baby-gnu That's a good idea, let's get this all up and running with even one platform and then expand it from there. I'll let you decide how you would prefer to proceed. It's OK if you want the other PRs merged first or do it all in one.

@baby-gnu baby-gnu force-pushed the feature/add-kitchen-tests branch 2 times, most recently from d7c05d5 to 7778490 Compare June 12, 2019 11:35
We select only the CentOS 7 with SaltStack 2018.3 on Python2 and no
tests are executed.

* test/integration/default/inspec.yml: describe the InSpec profile.

* kitchen.yml: use the same matrix as “template-formula”.

* Gemfile: require kitchen gems for docker, salt and inspec.

* commitlint.config.js: configure commitlint.

* .travis.yml: use the same configuration as “template-formula” but
  enable only “centos-7-2018-3-py2” and disable “release” job.

* .gitignore: kitchen store logs and information under .kitchen.
  Do not track the bundler lock file.
@baby-gnu baby-gnu force-pushed the feature/add-kitchen-tests branch from a970cb3 to 3047d31 Compare June 12, 2019 12:01
@baby-gnu
Copy link
Contributor Author

Great, this branch is now ready to be merged for me, I'm planning the other branches.

* test/integration/default/controls/config_spec.rb: verify the
  presence of the configuration file used to start the daemon and the
  libvirt configuration file processed by the formula.
@baby-gnu baby-gnu force-pushed the feature/add-kitchen-tests branch from 3047d31 to 9a969fc Compare June 12, 2019 13:31
@baby-gnu
Copy link
Contributor Author

Hello @myii

So I finished to push the single platform tests, each one based on the previous:

  1. verify the options of libvirtd.conf (Feature/verify config file options #38)
  2. verify the installed packages (Feature/verify installed packages #39)
  3. verify running service (Feature/verify running service #40)
  4. verify the libvirtd sockets (Feature/verify libvirtd sockets #41)

When they will be merged, I'll start to enable other platforms.

Regards.

Copy link
Contributor

@aboe76 aboe76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@baby-gnu nice work thanks

@aboe76
Copy link
Contributor

aboe76 commented Jun 17, 2019

@myii shall I merge this one?

@baby-gnu
Copy link
Contributor Author

Hello.

@myii shall I merge this one?

I'm waiting for the merge of this one and #38 #39 #40 #41 before continuing. I'll add you as reviewer of all of them.

Regards.

@aboe76 aboe76 merged commit 2ec1dda into saltstack-formulas:master Jun 19, 2019
@aboe76
Copy link
Contributor

aboe76 commented Jun 19, 2019

@baby-gnu merged it so you can continue with you great work!

@baby-gnu
Copy link
Contributor Author

@aboe76 ok, I'll merge everything.

Thanks.

@baby-gnu baby-gnu deleted the feature/add-kitchen-tests branch June 20, 2019 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants