2
2
3
3
if os [ :family ] == 'windows'
4
4
docker_args = 'docker_ee => true'
5
- tmp_path = 'C:/cygwin64/ tmp'
5
+ tmp_path = 'C:\\ tmp\\ '
6
6
wait_for_container_seconds = 120
7
-
8
7
else
9
- docker_args = if os [ :name ] == 'Ubuntu ' && os [ :release ] [ :full ] == '14.04'
8
+ docker_args = if os [ :name ] == 'ubuntu ' && os [ :release ] [ :full ] == '14.04'
10
9
"version => '18.06.1~ce~3-0~ubuntu'"
11
10
else
12
11
''
13
12
end
14
- tmp_path = '/tmp'
13
+ tmp_path = '/tmp/ '
15
14
wait_for_container_seconds = 10
16
15
end
17
16
18
- describe 'docker stack' do
17
+ describe 'docker stack' , win_broken : true do
19
18
before ( :all ) do
20
19
retry_on_error_matching ( 60 , 5 , %r{connection failure running} ) do
21
20
install_pp = <<-MANIFEST
@@ -36,7 +35,7 @@ class { 'docker': #{docker_args} }
36
35
let ( :install_pp ) do
37
36
<<-MANIFEST
38
37
docker_stack { 'web':
39
- compose_files => ['#{ tmp_path } / docker-stack.yml'],
38
+ compose_files => ['#{ tmp_path } docker-stack.yml'],
40
39
ensure => present,
41
40
}
42
41
MANIFEST
@@ -66,7 +65,7 @@ class { 'docker': #{docker_args} }
66
65
let ( :install ) do
67
66
<<-MANIFEST
68
67
docker_stack { 'web':
69
- compose_files => ['#{ tmp_path } / docker-stack.yml'],
68
+ compose_files => ['#{ tmp_path } docker-stack.yml'],
70
69
ensure => present,
71
70
}
72
71
MANIFEST
@@ -75,7 +74,7 @@ class { 'docker': #{docker_args} }
75
74
let ( :destroy ) do
76
75
<<-MANIFEST
77
76
docker_stack { 'web':
78
- compose_files => ['#{ tmp_path } / docker-stack.yml'],
77
+ compose_files => ['#{ tmp_path } docker-stack.yml'],
79
78
ensure => absent,
80
79
}
81
80
MANIFEST
@@ -103,7 +102,7 @@ class { 'docker': #{docker_args} }
103
102
before ( :all ) do
104
103
install_pp = <<-MANIFEST
105
104
docker_stack { 'web':
106
- compose_files => ['#{ tmp_path } / docker-stack.yml', '#{ tmp_path } / docker-stack-override.yml'],
105
+ compose_files => ['#{ tmp_path } docker-stack.yml', '#{ tmp_path } docker-stack-override.yml'],
107
106
ensure => present,
108
107
}
109
108
MANIFEST
@@ -121,7 +120,7 @@ class { 'docker': #{docker_args} }
121
120
let ( :destroy_pp ) do
122
121
<<-MANIFEST
123
122
docker_stack { 'web':
124
- compose_files => ['#{ tmp_path } / docker-stack.yml', '#{ tmp_path } / docker-stack-override.yml'],
123
+ compose_files => ['#{ tmp_path } docker-stack.yml', '#{ tmp_path } docker-stack-override.yml'],
125
124
ensure => absent,
126
125
}
127
126
MANIFEST
@@ -130,15 +129,15 @@ class { 'docker': #{docker_args} }
130
129
before ( :all ) do
131
130
install_pp = <<-MANIFEST
132
131
docker_stack { 'web':
133
- compose_files => ['#{ tmp_path } / docker-stack.yml', '#{ tmp_path } / docker-stack-override.yml'],
132
+ compose_files => ['#{ tmp_path } docker-stack.yml', '#{ tmp_path } docker-stack-override.yml'],
134
133
ensure => present,
135
134
}
136
135
MANIFEST
137
136
apply_manifest ( install_pp , catch_failures : true )
138
137
139
138
destroy_pp = <<-MANIFEST
140
139
docker_stack { 'web':
141
- compose_files => ['#{ tmp_path } / docker-stack.yml', '#{ tmp_path } / docker-stack-override.yml'],
140
+ compose_files => ['#{ tmp_path } docker-stack.yml', '#{ tmp_path } docker-stack-override.yml'],
142
141
ensure => absent,
143
142
}
144
143
MANIFEST
0 commit comments