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

tests: use is_subset to validate loaded data #2480

Merged
merged 1 commit into from
Jan 3, 2020

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Dec 27, 2019

Fixes recurring problem with tests which failed for users that use DOCKER_HOST to point to a remote docker. This happened because in those cases the loaded configuration dictionary looks different as it has extra parameters added to it.

We failed to catch these on CI because we do not use a remote docker connection.

@ssbarnea ssbarnea added test Improvement to quality assurance: CI/CD, testing, building skip-changelog labels Dec 27, 2019
@ssbarnea ssbarnea added this to the 3.0 milestone Dec 27, 2019
Copy link
Contributor

@cloudnull cloudnull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one clarification on the import, otherwise looks good to me.

molecule/test/unit/driver/test_delegated.py Outdated Show resolved Hide resolved
Fixes recurring problem with tests which failed for users that use
DOCKER_HOST to point to a remote docker. This happened because in those
cases the loaded configuration dictionary looks different as it has
extra parameters added to it.

We failed to catch these on CI because we do not use a remote docker
connection.

From now on we should only check specific content in loaded config.

Also includes fixing of absolute imports with regression prevention
measure.
@cloudnull cloudnull merged commit bee6d32 into ansible:master Jan 3, 2020
@ssbarnea ssbarnea deleted the fix/is_subset branch January 4, 2020 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog test Improvement to quality assurance: CI/CD, testing, building
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants