summaryrefslogtreecommitdiffstats
path: root/schema/postgresql/t/05-fill-servicestatus.sql
diff options
context:
space:
mode:
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;
+