Skip to content

Commit 5eb5950

Browse files
Merge pull request #9876 from edsantiago/apiv2_relax_versioncheck
APIv2 basic test: relax APIVersion check
2 parents 4fe1ce1 + c03ff14 commit 5eb5950

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/apiv2/01-basic.at

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ t GET libpod/_ping 200 OK
1616
t HEAD libpod/_ping 200
1717

1818
for i in /version version; do
19-
t GET $i 200 \
20-
.Components[0].Name="Podman Engine" \
21-
.Components[0].Details.APIVersion=3.2.0-dev \
22-
.Components[0].Details.MinAPIVersion=3.1.0 \
23-
.Components[0].Details.Os=linux \
24-
.ApiVersion=1.40 \
25-
.MinAPIVersion=1.24 \
19+
t GET $i 200 \
20+
.Components[0].Name="Podman Engine" \
21+
.Components[0].Details.APIVersion~3[0-9.-]\\+ \
22+
.Components[0].Details.MinAPIVersion=3.1.0 \
23+
.Components[0].Details.Os=linux \
24+
.ApiVersion=1.40 \
25+
.MinAPIVersion=1.24 \
2626
.Os=linux
2727
done
2828

0 commit comments

Comments
 (0)