This repository was archived by the owner on Oct 2, 2018. It is now read-only.
COOK-3248 Python cookbook tests#47
Merged
Merged
Conversation
- Create a recipe to test virtualenv
- Created test_virtualenv.rb
It will create a virtualenv directory and destroy one.
+ Test scenario will verify that bin/activate exists and the virtualenv that is to be destroyed; is.
- Create a recipe to exert virtualenv and the pip provider
- Created test_exert.rb
It will install boto and psutils
+ Test scenario will verify that bin/activate exists and python can import boto and print *boto.Version*
- Create a test scenario for the source recipe
+ Test scenario will verify that /opt/bin/python exists and returns 2.7.1
Original tests were made by Sean Porter <portertech@gmail.com> and exert and other test scenarios were enhanced (and created) by Scott M. Likens <scott@mopub.com>
Signed-off-by: Scott M. Likens <scott@likens.us>
…source test.
+ It will now look in /usr/local/bin/python
+ It will run /usr/local/bin/python to get the version number
Signed-off-by: Scott M. Likens <scott@likens.us>
Signed-off-by: Scott M. Likens <scott@likens.us>
Updated .kitchen.yml to reflect the change Signed-off-by: Scott M. Likens <scott@mopub.com>
Signed-off-by: Scott M. Likens <scott@likens.us>
|
You can exclude a platform with the excludes key in a suite: |
Signed-off-by: Scott M. Likens <scott@likens.us>
Contributor
Author
|
@jtimberman awesome! added centos-5.9 back in and excluded those and all tests are passing now. Thanks for the tip. |
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
Following up on the ticket http://tickets.opscode.com/browse/COOK-3248 here are our tests.
FACT: We don't want to omit centos 5.9, I did not see a way to have .kitchen.yml skip those stanza's with centos-5.9.
Thanks!