Skip to content

Commit

Permalink
Merge pull request #3941 from hshiina/test-not-reuse-encrypt-layer
Browse files Browse the repository at this point in the history
Add test for prevention of reusing encrypted layers
  • Loading branch information
openshift-merge-robot committed May 6, 2022
2 parents 956d9d8 + 063abf6 commit 33eaa17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/commit.bats
Expand Up @@ -229,6 +229,10 @@ load helpers
# this test, just checks the ability to commit an image to a registry
# there is no good way to test the details of the image unless with ./buildah pull, test will be in pull.bats
rm -rf ${TEST_SCRATCH_DIR}/tmp

# verify that encrypted layers are not cached or reused for an non-encrypted image (See containers/image#1533)
run_buildah commit --iidfile /dev/null --tls-verify=false --creds testuser:testpassword $WITH_POLICY_JSON -q $cid docker://localhost:${REGISTRY_PORT}/buildah/busybox_not_encrypted:latest
run_buildah from $WITH_POLICY_JSON --tls-verify=false --creds testuser:testpassword docker://localhost:${REGISTRY_PORT}/buildah/busybox_not_encrypted:latest
}

@test "commit omit-timestamp" {
Expand Down

0 comments on commit 33eaa17

Please sign in to comment.