Skip to content

Commit

Permalink
Add test (#1301)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Webb <[email protected]>
  • Loading branch information
damacus authored Feb 1, 2025
1 parent 935cf2d commit da760e0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/cookbooks/docker_test/recipes/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1292,3 +1292,10 @@
)
action :run
end

# Test case for digest image format
docker_container 'sha256-test' do
repo 'hello-world'
tag 'sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788'
action :run
end
7 changes: 7 additions & 0 deletions test/cookbooks/docker_test/recipes/smoke.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,10 @@
command '/hello'
action :create
end

# Test case for digest image format
docker_container 'sha256-test' do
repo 'hello-world'
tag 'sha256:d715f14f9eca81473d9112df50457893aa4d099adeb4729f679006bf5ea12407'
action :run
end

0 comments on commit da760e0

Please sign in to comment.