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

Gate docker unit test to check for docker #34591

Merged
merged 2 commits into from
Jul 12, 2016

Conversation

justinta
Copy link

@justinta justinta commented Jul 11, 2016

What does this PR do?

Gates docker unit test to check for docker-py version.

What issues does this PR fix or reference?

Fixes failing test by assuring docker-py is installed before running the test.

Tests written?

Yes

@cachedout
Copy link
Contributor

This seems like the wrong logic to me. Would it make more sense to let the salt module do version checking and then fail in a way we can detect (or check for) in the test suite? Doing it this way is just going to create two places where we need to monitor the minimum requirements for Docker.

@justinta
Copy link
Author

@cachedout it's possible it is wrong. The rest of the tests were gated this way, though, so I added it here.

@justinta
Copy link
Author

@cachedout The check was already in place, so I changed the gate to see if docker-py is installed instead of using a version.

@rallytime rallytime merged commit 7dd8035 into saltstack:2015.8 Jul 12, 2016
gitebra pushed a commit to gitebra/salt that referenced this pull request Jul 13, 2016
* upstream/develop: (32 commits)
  Libcloud DNS module fix (saltstack#34628)
  Properly pass in userdata as string (saltstack#34623)
  Add NILinuxRT support to timezone execution module (saltstack#34556)
  Properly gate makostack (saltstack#34614)
  Add support for edge case when Cmd and Entrypoint can't be blanked (saltstack#34593)
  Update github IP for ssh state integration tests (saltstack#34592)
  When sorting list actual_data, make it a list (saltstack#34590)
  Avoid circular imports when calling salt.utils functions (saltstack#34586)
  [2016.3] Avoid salt.utils circular imports when using "from" (saltstack#34585)
  Adds a mock required for the network settings beacon
  Avoid circular imports when calling salt.utils functions (saltstack#34584)
  Gate docker unit test to check for docker (saltstack#34591)
  Typo (`defaul` → `default`)
  Add code formatting
  Fix typo (`seens` → `seen`)
  Add a bunch of documentation on getting files from other environments (saltstack#34560)
  Rename unit.states.boto_secgroup to unit.states.boto_secgroup_test
  Handle cases where Docker Remote API returns an empty ExecutionDriver
  Rename tests.unit.simple to tests.unit.simple_test
  salt/modules/zypper.py: accept ignore_epoch argument
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants