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

Update acceptance tests #133

Merged
merged 2 commits into from
Nov 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions spec/acceptance/nodesets/debian-7-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
HOSTS:
debian-7:
roles:
- master
platform: debian-7-amd64
image: debian:7
hypervisor: docker
docker_cmd: ["/sbin/init"]
docker_preserve_image: true
docker_image_commands:
- apt-get install -yq wget libssl-dev net-tools locales apt-transport-https software-properties-common
- locale-gen en en_US en_US.UTF-8
- dpkg-reconfigure locales
CONFIG:
type: foss
log_level: debug
4 changes: 3 additions & 1 deletion spec/acceptance/nodesets/debian-8-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ HOSTS:
docker_cmd: ["/bin/systemd"]
docker_preserve_image: true
docker_image_commands:
- apt-get install -yq wget net-tools
- apt-get install -yq wget net-tools locales apt-transport-https software-properties-common
- locale-gen en en_US en_US.UTF-8
- dpkg-reconfigure locales
- rm /lib/systemd/system/systemd*udev*
- rm /lib/systemd/system/getty.target
CONFIG:
Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/nodesets/ubuntu-1604-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ HOSTS:
hypervisor: docker
docker_cmd: '["/sbin/init"]'
docker_image_commands:
- 'apt-get install -y net-tools wget curl'
- 'locale-gen en_US.UTF-8'
- 'apt-get install -y net-tools wget curl locales apt-transport-https software-properties-common'
- 'locale-gen en en_US en_US.UTF-8'
docker_preserve_image: true
CONFIG:
type: foss
Expand Down
6 changes: 6 additions & 0 deletions spec/acceptance/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ class { '::redis':
describe service(redis_name) do
it { should be_running }
end

context 'redis should respond to ping command' do
describe command('redis-cli ping') do
its(:stdout) { should match /PONG/ }
end
end
end