diff options
author | Ed Santiago <santiago@redhat.com> | 2020-02-26 09:17:13 -0700 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-03-02 13:19:42 -0700 |
commit | 56120894125b0859a81af2f96062157465b56e87 (patch) | |
tree | b9ca20ae31bb4f884ae7818a08004b5af55dced4 /test/apiv2/40-pods.at | |
parent | 47c4ea39196cedac87e7a4e4c1ead54ed9d7ed50 (diff) | |
download | podman-56120894125b0859a81af2f96062157465b56e87.tar.gz podman-56120894125b0859a81af2f96062157465b56e87.tar.bz2 podman-56120894125b0859a81af2f96062157465b56e87.zip |
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 <santiago@redhat.com>
Diffstat (limited to 'test/apiv2/40-pods.at')
-rw-r--r-- | test/apiv2/40-pods.at | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/apiv2/40-pods.at b/test/apiv2/40-pods.at index 8b5651cff..ab345b8f2 100644 --- a/test/apiv2/40-pods.at +++ b/test/apiv2/40-pods.at @@ -23,9 +23,10 @@ t POST libpod/pods/create name=foo 409 .cause="pod already exists" #t POST libpod/pods/create a=b 400 .cause='bad parameter' # FIXME: unimplemented -if root; then +if root || have_cgroupsv2; then t POST libpod/pods/foo/pause '' 204 else + # Rootless cgroupsv1 : unsupported t POST libpod/pods/foo/pause '' 500 \ .cause="this container does not have a cgroup" \ .message~".*pause pods containing rootless containers with cgroup V1" |