Skip to content

Demonstrate adding beaker acceptance tests to a module #320

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

Merged
merged 1 commit into from
Mar 21, 2016

Conversation

garethr
Copy link
Contributor

@garethr garethr commented Mar 21, 2016

As per internal conversations, this is a simple demonstration of running
the current acceptance tests on Centos and Ubuntu. This allows for
pre-merge testing and aims to help catch some obvious cross-OS issues
early.

As per internal conversations, this is a simple demonstration of running
the current acceptance tests on Centos and Ubuntu. This allows for
pre-merge testing and aims to help catch some obvious cross-OS issues
early.
@garethr garethr force-pushed the demonstrate-travis-beaker-tests branch from 2742636 to e46c1e4 Compare March 21, 2016 17:39
@bmjen
Copy link
Contributor

bmjen commented Mar 21, 2016

👍 Haven't been this excited to hit a merge button in a while! :)

bmjen added a commit that referenced this pull request Mar 21, 2016
Demonstrate adding beaker acceptance tests to a module
@bmjen bmjen merged commit cc802d3 into puppetlabs:master Mar 21, 2016
docker_cmd: '["/sbin/init"]'
docker_image_commands:
- 'rm /usr/sbin/policy-rc.d'
- 'rm /sbin/initctl; dpkg-divert --rename --remove /sbin/initctl'
Copy link
Contributor

Choose a reason for hiding this comment

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

would you mind explaining what these lines do?

Copy link
Contributor

Choose a reason for hiding this comment

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

initctl is from upstart, so I guess this is reverting to sysvinit, but only @garethr can say.

Copy link
Contributor

Choose a reason for hiding this comment

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

that would help with getty not leaking, maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This comes from the upstart Docker hub image https://hub.docker.com/r/dockerimages/ubuntu-upstart/~/dockerfile/

It's required to get upstart to work by being run directly. It removes a fake symlink introduced in the base ubuntu image, then restores the original /sbin/initctl from the package.

Copy link
Contributor

Choose a reason for hiding this comment

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

hrm… we should perhaps add .overrides for /etc/init/tty[1-6].conf to disable them so we don't leak them, causing travis to overload.

Copy link
Contributor

Choose a reason for hiding this comment

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

travis should give us a new VM for each test run, and the docker container is only started once. so, pfft.

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.

4 participants