summaryrefslogtreecommitdiff
path: root/test/system/010-images.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-08 13:21:36 -0400
committerGitHub <noreply@github.com>2020-09-08 13:21:36 -0400
commit54a61e36a4fd1c5416707e0a661f20abf2d464dc (patch)
tree7dc489fa179d1565bb0b21aca892644a02e97216 /test/system/010-images.bats
parent11679c27a7abb10811563c23b5276750c6b58f4b (diff)
parenta9dbd2b3de3cf11e71aa01ed3233e180ae0b0951 (diff)
downloadpodman-54a61e36a4fd1c5416707e0a661f20abf2d464dc.tar.gz
podman-54a61e36a4fd1c5416707e0a661f20abf2d464dc.tar.bz2
podman-54a61e36a4fd1c5416707e0a661f20abf2d464dc.zip
Merge pull request #7534 from edsantiago/bats
Migrate away from docker.io
Diffstat (limited to 'test/system/010-images.bats')
-rw-r--r--test/system/010-images.bats14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/system/010-images.bats b/test/system/010-images.bats
index 7fd731ca0..c0a8936e3 100644
--- a/test/system/010-images.bats
+++ b/test/system/010-images.bats
@@ -14,6 +14,8 @@ load helpers
--format {{.ID}} | [0-9a-f]\\\{12\\\}
--format {{.ID}} --no-trunc | sha256:[0-9a-f]\\\{64\\\}
--format {{.Repository}}:{{.Tag}} | $PODMAN_TEST_IMAGE_FQN
+--format {{.Labels.created_by}} | test/system/build-testimage
+--format {{.Labels.created_at}} | 20[0-9-]\\\+T[0-9:]\\\+Z
"
parse_table "$tests" | while read fmt expect; do
@@ -27,11 +29,13 @@ load helpers
@test "podman images - json" {
# 'created': podman includes fractional seconds, podman-remote does not
tests="
-Names[0] | $PODMAN_TEST_IMAGE_FQN
-Id | [0-9a-f]\\\{64\\\}
-Digest | sha256:[0-9a-f]\\\{64\\\}
-CreatedAt | [0-9-]\\\+T[0-9:.]\\\+Z
-Size | [0-9]\\\+
+Names[0] | $PODMAN_TEST_IMAGE_FQN
+Id | [0-9a-f]\\\{64\\\}
+Digest | sha256:[0-9a-f]\\\{64\\\}
+CreatedAt | [0-9-]\\\+T[0-9:.]\\\+Z
+Size | [0-9]\\\+
+Labels.created_by | test/system/build-testimage
+Labels.created_at | 20[0-9-]\\\+T[0-9:]\\\+Z
"
run_podman images -a --format json