From 56120894125b0859a81af2f96062157465b56e87 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Wed, 26 Feb 2020 09:17:13 -0700 Subject: CI: add API v2 tests API v2 has been quiet for a few days, and the test script is actually passing. Let's take advantage of this opportunity to get them running in CI. Requires adding a check for cgroupsv2 Signed-off-by: Ed Santiago --- test/apiv2/01-basic.at | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'test/apiv2/01-basic.at') diff --git a/test/apiv2/01-basic.at b/test/apiv2/01-basic.at index b8a049cdf..0e94ddb7a 100644 --- a/test/apiv2/01-basic.at +++ b/test/apiv2/01-basic.at @@ -41,10 +41,16 @@ t GET libpod/containers/create 405 # # system info # +# Some day perhaps it will always be runc; for now, cgroupsv2 requires crun +# # FIXME: run 'podman info --format=json', and compare select fields -t GET info 200 \ - .OSType=linux \ - .DefaultRuntime=runc \ +runtime=runc +if have_cgroupsv2; then + runtime=crun +fi +t GET info 200 \ + .OSType=linux \ + .DefaultRuntime~.*$runtime \ .MemTotal~[0-9]\\+ # Timing: make sure server stays responsive -- cgit v1.2.3-54-g00ecf