Skip to content

Commit

Permalink
Wrong placement of flag in command (#73)
Browse files Browse the repository at this point in the history
* Fix command flag (#72)

Fix the placement of "--no-trunc" flag of docker command

Signed-off-by: nnickie23 <[email protected]>

* use order defined in documentation

Signed-off-by: Martin Schurz <[email protected]>

---------

Signed-off-by: nnickie23 <[email protected]>
Signed-off-by: Martin Schurz <[email protected]>
Co-authored-by: schurzi <[email protected]>
  • Loading branch information
nnickie23 and schurzi authored Feb 25, 2023
1 parent 96a8064 commit 0baeeb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controls/container_images.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
ref 'caching and apt-get update', url: 'https://github.com/moby/moby/issues/3313'

docker.images.ids.each do |id|
describe command("docker --no-trunc history #{id}| grep -e 'update'") do
describe command("docker history --no-trunc #{id}| grep -e 'update'") do
its('stdout') { should eq '' }
end
end
Expand Down Expand Up @@ -215,7 +215,7 @@
ref 'Best practices for writing Dockerfiles', url: 'https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/'

docker.images.ids.each do |id|
describe command("docker --no-trunc history #{id}| grep 'ADD'") do
describe command("docker history --no-trunc #{id}| grep 'ADD'") do
its('stdout') { should eq '' }
end
end
Expand Down

0 comments on commit 0baeeb2

Please sign in to comment.