summaryrefslogtreecommitdiffstats
path: root/schema/postgresql/t/05-fill-servicestatus.sql
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:22:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:22:15 +0000
commit99158ba38e5ad4a210b488951838266fb5cfff95 (patch)
tree57d669fe7fed381905dad1dbf19d912f85af71aa /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.1.upstream/0.10.1upstream
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;
+