summaryrefslogtreecommitdiffstats
path: root/schema/postgresql/t/05-fill-servicestatus.sql
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:44:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:44:36 +0000
commit0fef7990d7a08bdb9c2dc4a1795bbff6d2235cfb (patch)
treea55346ef98b92803951a5ebbccbcb14bc8ac4ca4 /schema/postgresql/t/05-fill-servicestatus.sql
parentInitial commit. (diff)
downloadicingaweb2-module-idoreports-upstream.tar.xz
icingaweb2-module-idoreports-upstream.zip
Adding upstream version 0.10.0.upstream/0.10.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'schema/postgresql/t/05-fill-servicestatus.sql')
-rw-r--r--schema/postgresql/t/05-fill-servicestatus.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/schema/postgresql/t/05-fill-servicestatus.sql b/schema/postgresql/t/05-fill-servicestatus.sql
new file mode 100644
index 0000000..5ae413f
--- /dev/null
+++ b/schema/postgresql/t/05-fill-servicestatus.sql
@@ -0,0 +1,7 @@
+SELECT plan(1);
+COPY icinga_servicestatus FROM STDIN;
+2 2019-02-10 12:00:00+01 0 1
+2 2019-03-10 15:00:00+01 2 1
+\.
+SELECT is(count(*), 2::bigint, 'icinga_servicestatus has 2 rows') FROM icinga_servicestatus;
+