-
Notifications
You must be signed in to change notification settings - Fork 237
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
Iristyle
merged 2 commits into
puppetlabs:master
from
underscorgan:maint/master/container-spec-cleanup
May 4, 2019
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: '3.5' | ||
|
||
services: | ||
puppet: | ||
hostname: puppet.test | ||
image: ${PUPPET_TEST_DOCKER_IMAGE:-puppet/puppetserver-standalone} | ||
environment: | ||
- PUPPETSERVER_HOSTNAME=puppet.test | ||
- PUPPERWARE_ANALYTICS_ENABLED=${PUPPERWARE_ANALYTICS_ENABLED:-false} | ||
- DNS_ALT_NAMES=puppet,puppet.test,${DNS_ALT_NAMES:-} | ||
- PUPPET_STORECONFIGS=false | ||
- PUPPET_REPORTS=log | ||
dns_search: '.test' | ||
networks: | ||
puppetserver_test: | ||
aliases: | ||
- puppet.test | ||
|
||
compiler: | ||
hostname: compiler.test | ||
image: ${PUPPET_TEST_DOCKER_IMAGE:-puppet/puppetserver-standalone} | ||
environment: | ||
- PUPPERWARE_ANALYTICS_ENABLED=${PUPPERWARE_ANALYTICS_ENABLED:-false} | ||
- CA_ENABLED=false | ||
- CA_HOSTNAME=puppet.test | ||
- PUPPET_STORECONFIGS=false | ||
- PUPPET_REPORTS=log | ||
dns_search: '.test' | ||
networks: | ||
puppetserver_test: | ||
aliases: | ||
- compiler.test | ||
|
||
networks: | ||
puppetserver_test: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
name: puppetserver_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--require spec_helper | ||
--format RspecJunitFormatter | ||
--out puppetserver-standalone/TEST-rspec.xml | ||
--format documentation |
13 changes: 13 additions & 0 deletions
13
docker/puppetserver-standalone/docker-entrypoint.d/85-setup-storeconfigs.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
if [ -n "$PUPPET_STORECONFIGS_BACKEND" ]; then | ||
puppet config set storeconfigs_backend $PUPPET_STORECONFIGS_BACKEND --section master | ||
fi | ||
|
||
if [ -n "$PUPPET_STORECONFIGS" ]; then | ||
puppet config set storeconfigs $PUPPET_STORECONFIGS --section master | ||
fi | ||
|
||
if [ -n "$PUPPET_REPORTS" ]; then | ||
puppet config set reports $PUPPET_REPORTS --section master | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--require spec_helper | ||
--format RspecJunitFormatter | ||
--out puppetserver/TEST-rspec.xml | ||
--format documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ ENV PUPPERWARE_ANALYTICS_STREAM="$pupperware_analytics_stream" | |
ENV PUPPERWARE_ANALYTICS_TRACKING_ID="UA-132486246-3" | ||
ENV PUPPERWARE_ANALYTICS_APP_NAME="puppetserver" | ||
ENV PUPPERWARE_ANALYTICS_ENABLED=false | ||
ENV PUPPET_STORECONFIGS_BACKEND="puppetdb" | ||
ENV PUPPET_STORECONFIGS=true | ||
ENV PUPPET_REPORTS="puppetdb" | ||
|
||
LABEL org.label-schema.maintainer="Puppet Release Team <[email protected]>" \ | ||
org.label-schema.vendor="Puppet" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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: