Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

COOK-3248 Python cookbook tests #47

Merged
merged 6 commits into from
Jun 30, 2013
Merged

Conversation

damm
Copy link
Contributor

@damm damm commented Jun 27, 2013

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!

    - 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 <[email protected]> and exert and other test scenarios were enhanced (and created) by Scott M. Likens <[email protected]>

Signed-off-by: Scott M. Likens <[email protected]>
…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 <[email protected]>
  Updated .kitchen.yml to reflect the change

Signed-off-by: Scott M. Likens <[email protected]>
Signed-off-by: Scott M. Likens <[email protected]>
@jtimberman
Copy link

You can exclude a platform with the excludes key in a suite:

excludes: ["centos-5.9"]

@damm
Copy link
Contributor Author

damm commented Jun 30, 2013

@jtimberman awesome! added centos-5.9 back in and excluded those and all tests are passing now.

Thanks for the tip.

jtimberman pushed a commit that referenced this pull request Jun 30, 2013
@jtimberman jtimberman merged commit a96af3b into poise:master Jun 30, 2013
@jtimberman
Copy link

Thanks!

@damm damm deleted the COOK-2444 branch July 1, 2013 02:39
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.

3 participants