summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-03-29 15:30:25 -0600
committerEd Santiago <santiago@redhat.com>2021-03-29 15:32:01 -0600
commitc03ff140d87a3bc210c8a6568c8091d8bde7aa50 (patch)
tree96e07522b21e9dd1fc733f3a82cc6bdc161ed9ca /test
parentb9e064ab84044f3db25e48384a1bd6fe5dc6ecdc (diff)
downloadpodman-c03ff140d87a3bc210c8a6568c8091d8bde7aa50.tar.gz
podman-c03ff140d87a3bc210c8a6568c8091d8bde7aa50.tar.bz2
podman-c03ff140d87a3bc210c8a6568c8091d8bde7aa50.zip
APIv2 basic test: relax APIVersion check
It is tedious and error-prone to update the 'APIVersion=<exact>' test every time there's a minor bump. Change the test so it confirms only the major version. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/01-basic.at14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/apiv2/01-basic.at b/test/apiv2/01-basic.at
index a256d8327..64aafa013 100644
--- a/test/apiv2/01-basic.at
+++ b/test/apiv2/01-basic.at
@@ -16,13 +16,13 @@ t GET libpod/_ping 200 OK
t HEAD libpod/_ping 200
for i in /version version; do
- t GET $i 200 \
- .Components[0].Name="Podman Engine" \
- .Components[0].Details.APIVersion=3.2.0-dev \
- .Components[0].Details.MinAPIVersion=3.1.0 \
- .Components[0].Details.Os=linux \
- .ApiVersion=1.40 \
- .MinAPIVersion=1.24 \
+ t GET $i 200 \
+ .Components[0].Name="Podman Engine" \
+ .Components[0].Details.APIVersion~3[0-9.-]\\+ \
+ .Components[0].Details.MinAPIVersion=3.1.0 \
+ .Components[0].Details.Os=linux \
+ .ApiVersion=1.40 \
+ .MinAPIVersion=1.24 \
.Os=linux
done