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

Refactor puppetserver container tests #2062

Merged

Conversation

underscorgan
Copy link
Contributor

No description provided.

@underscorgan underscorgan requested a review from a team as a code owner May 2, 2019 20:46
@underscorgan underscorgan requested a review from a team May 2, 2019 20:46
@underscorgan
Copy link
Contributor Author

Depends on puppetlabs/pupperware#65

@underscorgan underscorgan force-pushed the maint/master/container-spec-cleanup branch 5 times, most recently from f8466f8 to f8813c5 Compare May 3, 2019 21:13
Morgan Rhodes added 2 commits May 3, 2019 14:14
This updates the puppetserver tests to use `docker-compose` instead of
`docker-run`. This also updates the tests to use the shared testing
gem from github.com/puppetlabs/pupperware.

This also includes a move from the puppet-agent-alpine to
puppet-agent-ubuntu for testing. We were seeing a lot of intermittent
network failures with the alpine container on windows (LCOW). See
moby/libnetwork#2371 and
microsoft/opengcs#303 have more information on
this issue. This should hopefully clear up the intermittent name
resolution failures we were seeing.
This adds `PUPPET_STORECONFIGS_BACKEND`, `PUPPET_STORECONFIGS`, and
`PUPPET_REPORTS` environment variables for configuring
`storeconfigs_backend`, `storeconfigs`, and `reports` settings in
puppet.conf.
@underscorgan underscorgan force-pushed the maint/master/container-spec-cleanup branch from f8813c5 to aad85a0 Compare May 3, 2019 21:23
@underscorgan
Copy link
Contributor Author

This is ready for review now :)

- PUPPETSERVER_HOSTNAME=puppet.test
- PUPPERWARE_ANALYTICS_ENABLED=${PUPPERWARE_ANALYTICS_ENABLED:-false}
- DNS_ALT_NAMES=puppet,puppet.test,${DNS_ALT_NAMES:-}
dns_search: '.test'
Copy link
Contributor

Choose a reason for hiding this comment

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

It's interesting that this works, because I thought what I discovered in my experiments was that this is actually supposed to be:

dns_search: test

- compiler.test

networks:
puppetserver_test:
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Even though this adds more to the file, we should probably make this explicit it in other compose files so we have better control of the name.

@Iristyle Iristyle merged commit 6b9738e into puppetlabs:master May 4, 2019
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.

2 participants