diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-02 05:08:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-02 05:08:22 -0800 |
commit | c7267329bffa12df14c37e2d083c0c91ad7bb102 (patch) | |
tree | 460966e20e8bf26adfae18fa1977bd322f69ef8e /test/apiv2/20-containers.at | |
parent | 7497dcba6cd240908a9b0948eb561ad9c264fc8f (diff) | |
parent | 8b7caa6d04fc6a7c02bd0cbc05629508be546ac8 (diff) | |
download | podman-c7267329bffa12df14c37e2d083c0c91ad7bb102.tar.gz podman-c7267329bffa12df14c37e2d083c0c91ad7bb102.tar.bz2 podman-c7267329bffa12df14c37e2d083c0c91ad7bb102.zip |
Merge pull request #9563 from mlegenovic/master
Compat api containers/json Ports field is null
Diffstat (limited to 'test/apiv2/20-containers.at')
-rw-r--r-- | test/apiv2/20-containers.at | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at index 641c2adc3..4b40fde80 100644 --- a/test/apiv2/20-containers.at +++ b/test/apiv2/20-containers.at @@ -246,3 +246,13 @@ t GET containers/$cid/json 200 \ .Mounts[0].Destination="/test" t DELETE containers/$cid?v=true 204 + +# test port mapping +podman run -d --rm --name bar -p 8080:9090 $IMAGE top + +t GET containers/json 200 \ + .[0].Ports[0].PrivatePort=9090 \ + .[0].Ports[0].PublicPort=8080 \ + .[0].Ports[0].Type="tcp" + +podman stop bar |