diff options
author | Jhon Honce <jhonce@redhat.com> | 2021-03-30 10:42:06 -0700 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-04-16 13:33:48 -0400 |
commit | 10a58c976bf716e8f91b80759d3043f5986f5c9e (patch) | |
tree | f6f0e3896520f29a97786196fdf8021e3c440c81 /test | |
parent | 4cd94ade8d595c55f2326bf5458f7fd45f74f63c (diff) | |
download | podman-10a58c976bf716e8f91b80759d3043f5986f5c9e.tar.gz podman-10a58c976bf716e8f91b80759d3043f5986f5c9e.tar.bz2 podman-10a58c976bf716e8f91b80759d3043f5986f5c9e.zip |
Trim white space from /top endpoint results
Versions of the ps command have additional spaces between fields, this
manifests as the container asking to run "top" and API reporting "top "
as a process.
Endpoint and tests updated to check that "top" is reported.
There is no libpod specialized endpoint to update.
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/25-containersMore.at | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/apiv2/25-containersMore.at b/test/apiv2/25-containersMore.at index 39bfa2e32..0a049d869 100644 --- a/test/apiv2/25-containersMore.at +++ b/test/apiv2/25-containersMore.at @@ -38,7 +38,8 @@ t GET libpod/containers/foo/json 200 \ # List processes of the container t GET libpod/containers/foo/top 200 \ - length=2 + length=2 \ + .Processes[0][7]="top" # List processes of none such t GET libpod/containers/nonesuch/top 404 |