Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
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
jtimberman merged 6 commits into
poise:masterfrom
mopub-cookbooks:COOK-2444
Jun 30, 2013
Merged

COOK-3248 Python cookbook tests#47
jtimberman merged 6 commits into
poise:masterfrom
mopub-cookbooks:COOK-2444

Conversation

@damm
Copy link
Copy Markdown
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 <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>
@jtimberman
Copy link
Copy Markdown

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

excludes: ["centos-5.9"]

Signed-off-by: Scott M. Likens <scott@likens.us>
@damm
Copy link
Copy Markdown
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
Copy Markdown

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