From d0b2458c304f0a7de395a82332bf6b3ea2d164a1 Mon Sep 17 00:00:00 2001 From: Noah Treuhaft Date: Thu, 20 May 2021 16:26:52 -0700 Subject: [PATCH] service: add test for non-time ts field (#2747) --- service/ztests/ts-not-time.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 service/ztests/ts-not-time.yaml diff --git a/service/ztests/ts-not-time.yaml b/service/ztests/ts-not-time.yaml new file mode 100644 index 0000000000..27c12e0a11 --- /dev/null +++ b/service/ztests/ts-not-time.yaml @@ -0,0 +1,14 @@ +script: | + source services.sh + zapi -host $LAKE_HOST -p test post -f - + zapi -host $LAKE_HOST -p test get -z > out.zson + +inputs: + - name: services.sh + - name: stdin + data: &stdin | + {ts:"A field named ts usually has type time, but this one does not."} + +outputs: + - name: out.zson + data: *stdin