diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-03 09:17:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 09:17:21 -0500 |
commit | 259bb5f7232432bce103c64cf1e68539ab7012e2 (patch) | |
tree | 694a8736e2db7196f927f7c2d0512d4c9522027d /test | |
parent | 5fd8a849491e12de3747a16c238236e23fb44593 (diff) | |
parent | 9391bfc520c55ff66c1547561bd3189dd911c8cb (diff) | |
download | podman-259bb5f7232432bce103c64cf1e68539ab7012e2.tar.gz podman-259bb5f7232432bce103c64cf1e68539ab7012e2.tar.bz2 podman-259bb5f7232432bce103c64cf1e68539ab7012e2.zip |
Merge pull request #9583 from ashley-cui/sec
Add version field to secret compat list/inspect api
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/50-secrets.at | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/apiv2/50-secrets.at b/test/apiv2/50-secrets.at index 69e1f3ae9..c4ffb5883 100644 --- a/test/apiv2/50-secrets.at +++ b/test/apiv2/50-secrets.at @@ -14,15 +14,18 @@ t POST secrets/create '"Name":"mysecret","Data":"c2VjcmV0","Labels":{"fail":"fai t POST secrets/create '"Name":"mysecret","Data":"c2VjcmV0"' 409 # secret inspect -t GET secrets/mysecret 200\ - .Spec.Name=mysecret +t GET secrets/mysecret 200 \ + .Spec.Name=mysecret \ + .Version.Index=1 # secret inspect non-existent secret t GET secrets/bogus 404 # secret list -t GET secrets 200\ - length=1 +t GET secrets 200 \ + length=1 \ + .[0].Spec.Name=mysecret \ + .[0].Version.Index=1 # secret list unsupported filters t GET secrets?filters='{"name":["foo1"]}' 400 |