Skip to content

Commit 9d54c98

Browse files
committed
simplify describe blocks
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
1 parent b3b8e82 commit 9d54c98

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

controls/docker_level1.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,9 @@
164164

165165
describe json('/etc/docker/daemon.json') do
166166
its(['tls']) { should eq(true) }
167-
end
168-
describe json('/etc/docker/daemon.json') do
169167
its(['tlsverify']) { should eq(true) }
170-
end
171-
describe json('/etc/docker/daemon.json') do
172168
its(['tlscacert']) { should eq(DAEMON_TLSCACERT) }
173-
end
174-
describe json('/etc/docker/daemon.json') do
175169
its(['tlscert']) { should eq(DAEMON_TLSCERT) }
176-
end
177-
describe json('/etc/docker/daemon.json') do
178170
its(['tlskey']) { should eq(DAEMON_TLSKEY) }
179171
end
180172
end
@@ -191,8 +183,6 @@
191183

192184
describe json('/etc/docker/daemon.json') do
193185
its(['default-ulimits', 'nproc']) { should eq('1024:2408') }
194-
end
195-
describe json('/etc/docker/daemon.json') do
196186
its(['default-ulimits', 'nofile']) { should eq('100:200') }
197187
end
198188
end

controls/docker_level2.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@
133133

134134
describe json('/etc/docker/daemon.json') do
135135
its(['authorization-plugins']) { should_not be_empty }
136-
end
137-
describe json('/etc/docker/daemon.json') do
138136
its(['authorization-plugins']) { should eq([AUTHORIZATION_PLUGIN]) }
139137
end
140138
end
@@ -151,11 +149,7 @@
151149

152150
describe json('/etc/docker/daemon.json') do
153151
its(['log-driver']) { should_not be_empty }
154-
end
155-
describe json('/etc/docker/daemon.json') do
156152
its(['log-driver']) { should eq(LOG_DRIVER) }
157-
end
158-
describe json('/etc/docker/daemon.json') do
159153
its(['log-opts']) { should include(LOG_OPTS) }
160154
end
161155
end

0 commit comments

Comments
 (0)