aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorThomas Weber <towe75@googlemail.com>2021-07-26 21:25:01 +0200
committerThomas Weber <towe75@googlemail.com>2021-08-02 17:30:53 +0200
commit34b28d95986a08bdd74dd89ce6647458cda75731 (patch)
tree8ce4462fa013832eaf713bd7a4c4552ec061fd91 /pkg
parentcdbbd79155a7752843f2b420c3036ce6c390a3b6 (diff)
downloadpodman-34b28d95986a08bdd74dd89ce6647458cda75731.tar.gz
podman-34b28d95986a08bdd74dd89ce6647458cda75731.tar.bz2
podman-34b28d95986a08bdd74dd89ce6647458cda75731.zip
e2e tests: re-enable and fix podman stats tests
Renamed podman pod stats test specs to distinguish them from podman stats tests. podman stats tests where disabled by a +build flag. Fix podman stats format test, add negative test. Fix podman stats cli command, exit non-zero on invalid format string. Add tests for podman stats interval flag. Signed-off-by: Thomas Weber <towe75@googlemail.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/bindings/containers/containers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/bindings/containers/containers.go b/pkg/bindings/containers/containers.go
index 86304f392..bc7b0c8c9 100644
--- a/pkg/bindings/containers/containers.go
+++ b/pkg/bindings/containers/containers.go
@@ -223,6 +223,9 @@ func Stats(ctx context.Context, containers []string, options *StatsOptions) (cha
if err != nil {
return nil, err
}
+ if !response.IsSuccess() {
+ return nil, response.Process(nil)
+ }
statsChan := make(chan entities.ContainerStatsReport)