File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 16
16
default_docker_exec_lr_command = 'cmd /c "ping 127.0.0.1 -t > c:\windows\temp\test_file.txt"'
17
17
default_docker_exec_command = 'cmd /c "echo test > c:\windows\temp\test_file.txt"'
18
18
docker_mount_path = "c:/windows/temp"
19
+ storage_driver = "windowsfilter"
19
20
else
20
21
docker_ee_arg = ''
21
22
default_image = 'alpine'
29
30
default_docker_exec_lr_command = '/bin/sh -c "touch /root/test_file.txt; while true; do echo hello world; sleep 1; done"'
30
31
default_docker_exec_command = 'touch /root/test_file.txt'
31
32
docker_mount_path = "/root"
33
+ storage_driver = "overlay2"
32
34
end
33
35
34
36
describe 'the Puppet Docker module' do
@@ -136,6 +138,26 @@ class { 'docker': #{docker_ee_arg} }
136
138
end
137
139
end
138
140
141
+ context 'passing a storage driver' do
142
+ before ( :all ) do
143
+ @pp = <<-EOS
144
+ class {'docker':
145
+ #{ docker_ee_arg } ,
146
+ storage_driver => "#{ storage_driver } ",
147
+ }
148
+ EOS
149
+
150
+ apply_manifest ( @pp , :catch_failures => true )
151
+ sleep 15
152
+ end
153
+
154
+ it 'should result in the docker daemon being configured with the specified storage driver' do
155
+ shell ( "#{ docker_command } info -f \" {{ .Driver}}\" " ) do |r |
156
+ expect ( r . stdout ) . to match ( /#{ storage_driver } / )
157
+ end
158
+ end
159
+ end
160
+
139
161
context 'passing a TCP address to bind to' do
140
162
before ( :all ) do
141
163
@pp = <<-EOS
You can’t perform that action at this time.
0 commit comments