summaryrefslogtreecommitdiff
path: root/test/apiv2/01-basic.at
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-12-14 13:44:39 -0700
committerEd Santiago <santiago@redhat.com>2021-12-14 18:28:50 -0700
commit7b51acd4c4140c6fe7f262936c0eee8db2f0cacb (patch)
treec49e2301d014aa6e1ad7fb4c3bddd6e55952a356 /test/apiv2/01-basic.at
parentb01a421f3413ba01b2c189b82c8153bdbd2a05fb (diff)
downloadpodman-7b51acd4c4140c6fe7f262936c0eee8db2f0cacb.tar.gz
podman-7b51acd4c4140c6fe7f262936c0eee8db2f0cacb.tar.bz2
podman-7b51acd4c4140c6fe7f262936c0eee8db2f0cacb.zip
APIv2 tests: fail on syntax/logic errors
(i.e. not test failures, but actual programming bugs). We've had a number of syntax errors creep into this test, usually caused by a missing backslash on a test command. I've long wanted to 'set -e' but that causes other problems. This PR introduces error handling via 'trap', with useful diagnostics on failure. This PR also catches and fixes two previously-unknown bugs that were causing tests to not actually run. And, since /events takes eons on my high-uptime laptop, add /since Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/apiv2/01-basic.at')
-rw-r--r--test/apiv2/01-basic.at4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/apiv2/01-basic.at b/test/apiv2/01-basic.at
index 564c7bed5..2747ccbd4 100644
--- a/test/apiv2/01-basic.at
+++ b/test/apiv2/01-basic.at
@@ -82,7 +82,7 @@ else
fi
# Simple events test (see #7078)
-t GET "events?stream=false" 200
-t GET "libpod/events?stream=false" 200
+t GET "events?stream=false&since=30s" 200
+t GET "libpod/events?stream=false&since=30s" 200
# vim: filetype=sh