File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 5
5
SingleCov . covered!
6
6
7
7
describe Docker ::Secret , :requires_swarm_mode do
8
+ skip_without_swarm
9
+
8
10
before ( :each ) do
9
11
Docker ::Secret
10
12
. all ( filters : { label : [ 'data-source=docker-api-rspec' ] } )
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ def skip_slow_test
29
29
def skip_without_auth
30
30
skip "Disabled because of missing auth" if ENV [ 'DOCKER_API_USER' ] == 'debbie_docker'
31
31
end
32
+
33
+ def skip_without_swarm
34
+ skip "Disabled because of missing auth" unless ENV [ 'RUN_SWARM_TESTS' ]
35
+ end
32
36
end
33
37
34
38
Dir [ "#{ File . dirname ( __FILE__ ) } /support/**/*.rb" ] . each { |f | require f }
@@ -39,7 +43,4 @@ def skip_without_auth
39
43
config . formatter = :documentation
40
44
config . tty = true
41
45
config . include SpecHelpers
42
- if !ENV [ 'RUN_SWARM_TESTS' ]
43
- config . filter_run_excluding :requires_swarm_mode
44
- end
45
46
end
You can’t perform that action at this time.
0 commit comments