Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp integration tests a bit #107

Merged
merged 9 commits into from
Aug 11, 2016
Merged

Revamp integration tests a bit #107

merged 9 commits into from
Aug 11, 2016

Conversation

mthssdrbrg
Copy link
Contributor

The integration tests were a bit messy (they still are) and it wasn't possible to run a suite for testing that everything was setup correctly (installation-wise) without also running the service related tests (which takes a while), so the service bits were extracted to a separate recipe that is possible to exclude by setting init_style to nil or false.

@cullenmcdermott
Copy link

I'm not able to run the kitchen tests locally. Is there a trick to getting it to work? It seems to be failing because the tests are using Chef 11 but compat_resource is being brought in which only supports Chef > 12.

  ================================================================================
       Recipe Compile Error in /tmp/kitchen/cookbooks/compat_resource/libraries/autoload.rb
       ================================================================================

       RuntimeError
       ------------
       This resource is written with Chef 12.5 custom resources, and requires at least Chef 12.0 used with the compat_resource cookbook, it will not work with Chef 11.x clients, and those users must pin their cookbooks to older versions or upgrade.

       Cookbook Trace:
       ---------------
         /tmp/kitchen/cookbooks/compat_resource/libraries/autoload.rb:2:in `<top (required)>'

       Relevant File Content:
       ----------------------
       /tmp/kitchen/cookbooks/compat_resource/libraries/autoload.rb:

@mthssdrbrg
Copy link
Contributor Author

@cullenmcdermott: you can use a different Chef version by editing this line in .kitchen.yml, or set the CHEF_VERSION environment variable.

Due to running into [1] (primarily on fedora images though...)

[1]: test-kitchen/test-kitchen#1075
* Adding debian-8.5 for more systemd coverage.
* Removed `recipe[java]` from `default` suite as it won't actually start
Kafka.
* Explicitly list `sysv` related images.
@mthssdrbrg mthssdrbrg merged commit 6c68a74 into master Aug 11, 2016
@mthssdrbrg mthssdrbrg deleted the revamp-integration-tests branch August 11, 2016 16:53
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants