Uses Docker instead of Vagrant as the Beaker provider.
This should make it possible to run Beaker tests on VMs, like in ODL's
CI system. It also works around long-standing instabilities with Vagrant
and Beaker
Change-Id: Ieed91687a0b0fa826070d5590f708b4e8de7f89e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
sh "RS_SET=centos-7 INSTALL_METHOD=tarball bundle exec rake beaker"
end
+desc "Run Beaker tests against CentOS 7 Docker node."
+task :centos_7_docker do
+ sh "RS_SET=centos-7-docker INSTALL_METHOD=rpm bundle exec rake beaker"
+end
+
desc "Run Beaker tests against Fedora 20 node."
task :fedora_20 do
sh "RS_SET=fedora-20 INSTALL_METHOD=rpm bundle exec rake beaker"
--- /dev/null
+HOSTS:
+ centos-7-docker:
+ roles:
+ - master
+ platform: el-7-x86_64
+ image: centos:7
+ docker_cmd: '["/sbin/init"]'
+ hypervisor: docker
+
+CONFIG:
+ log_level: verbose
+ type: foss
describe package('java-1.7.0-openjdk') do
it { should be_installed }
end
- elsif ['centos-7', 'fedora-21'].include? ENV['RS_SET']
+ elsif ['centos-7', 'centos-7-docker', 'fedora-21'].include? ENV['RS_SET']
# Validations for modern Red Hat family OSs
# Verify ODL systemd .service file