Skip to content

Commit

Permalink
Merge pull request puppetlabs#253 from mihaibuzgau/master
Browse files Browse the repository at this point in the history
Volumes acceptance test for Docker on Windows
  • Loading branch information
davejrt authored Jun 25, 2018
2 parents 7877550 + a2515b9 commit da438f1
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions spec/acceptance/volume_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@
broken = false

if fact('osfamily') == 'windows'
puts "Not implemented on Windows"
broken = true
end

describe 'docker network', :win_broken => broken do
docker_ee_arg = 'docker_ee => true'
command = "\"/cygdrive/c/Program Files/Docker/docker\""
else
docker_ee_arg = ''
command = 'docker'
end

describe 'docker volume' do
before(:all) do
install_code = "class { 'docker': }"
apply_manifest(install_code, :catch_failures => true)
retry_on_error_matching(60, 5, /connection failure running/) do
install_code = "class { 'docker': #{docker_ee_arg} }"
apply_manifest(install_code, :catch_failures => true)
end
end

describe command("#{command} volume --help") do
its(:exit_status) { should eq 0 }
it 'should expose volume subcommand' do
shell("#{command} volume --help", :acceptable_exit_codes => [0])
end

context 'with a local volume described in Puppet' do
Expand Down

0 comments on commit da438f1

Please sign in to comment.