From 86f598bc7d4207c359f7e1041b32a700155fe427 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 29 Sep 2019 20:08:54 +0200 Subject: [PATCH] fix(test): goldenFiles --- pkg/storage/db/db.go | 8 +- pkg/storage/db/postgres_test.go | 8 +- ...goldenHumiditiesUncompressedNotRounded.csv | 11 + ...enMeasuredValuesUncompressedNotRounded.csv | 33 ++ .../goldenPressuresUncompressedNotRounded.csv | 11 + ...ldenTemperaturesUncompressedNotRounded.csv | 11 + test/goldenfiles/json/goldenDevices.json | 4 +- test/goldenfiles/json/goldenHumidities.json | 142 ------ ...oldenHumiditiesUncompressedNotRounded.json | 112 +++++ .../goldenHumiditiesUncompressedRounded.json | 112 +++++ .../json/goldenMeasuredValues.json | 422 ------------------ ...nMeasuredValuesUncompressedNotRounded.json | 332 ++++++++++++++ ...ldenMeasuredValuesUncompressedRounded.json | 332 ++++++++++++++ test/goldenfiles/json/goldenPressures.json | 142 ------ ...goldenPressuresUncompressedNotRounded.json | 112 +++++ .../goldenPressuresUncompressedRounded.json | 112 +++++ test/goldenfiles/json/goldenSensors.json | 38 +- test/goldenfiles/json/goldenTemperatures.json | 142 ------ ...denTemperaturesUncompressedNotRounded.json | 112 +++++ ...goldenTemperaturesUncompressedRounded.json | 112 +++++ ...goldenHumiditiesUncompressedNotRounded.xml | 101 +++++ ...enMeasuredValuesUncompressedNotRounded.xml | 299 +++++++++++++ .../goldenPressuresUncompressedNotRounded.xml | 101 +++++ ...ldenTemperaturesUncompressedNotRounded.xml | 101 +++++ 24 files changed, 2017 insertions(+), 893 deletions(-) create mode 100644 test/goldenfiles/csv/goldenHumiditiesUncompressedNotRounded.csv create mode 100644 test/goldenfiles/csv/goldenMeasuredValuesUncompressedNotRounded.csv create mode 100644 test/goldenfiles/csv/goldenPressuresUncompressedNotRounded.csv create mode 100644 test/goldenfiles/csv/goldenTemperaturesUncompressedNotRounded.csv delete mode 100644 test/goldenfiles/json/goldenHumidities.json create mode 100644 test/goldenfiles/json/goldenHumiditiesUncompressedNotRounded.json create mode 100644 test/goldenfiles/json/goldenHumiditiesUncompressedRounded.json delete mode 100644 test/goldenfiles/json/goldenMeasuredValues.json create mode 100644 test/goldenfiles/json/goldenMeasuredValuesUncompressedNotRounded.json create mode 100644 test/goldenfiles/json/goldenMeasuredValuesUncompressedRounded.json delete mode 100644 test/goldenfiles/json/goldenPressures.json create mode 100644 test/goldenfiles/json/goldenPressuresUncompressedNotRounded.json create mode 100644 test/goldenfiles/json/goldenPressuresUncompressedRounded.json delete mode 100644 test/goldenfiles/json/goldenTemperatures.json create mode 100644 test/goldenfiles/json/goldenTemperaturesUncompressedNotRounded.json create mode 100644 test/goldenfiles/json/goldenTemperaturesUncompressedRounded.json create mode 100644 test/goldenfiles/xml/goldenHumiditiesUncompressedNotRounded.xml create mode 100644 test/goldenfiles/xml/goldenMeasuredValuesUncompressedNotRounded.xml create mode 100644 test/goldenfiles/xml/goldenPressuresUncompressedNotRounded.xml create mode 100644 test/goldenfiles/xml/goldenTemperaturesUncompressedNotRounded.xml diff --git a/pkg/storage/db/db.go b/pkg/storage/db/db.go index 8a3e191..310cdcf 100644 --- a/pkg/storage/db/db.go +++ b/pkg/storage/db/db.go @@ -5,17 +5,13 @@ import ( "fmt" "github.com/go-flucky/flucky/pkg/config" - "github.com/volker-raschek/go-logger/pkg/logger" _ "github.com/lib/pq" + "github.com/volker-raschek/go-logger/pkg/logger" ) var ( - flogger logger.Logger -) - -func init() { flogger = logger.NewSilentLogger() -} +) func New(databaseSettings *config.DatabaseSettings) (Database, error) { connStr := fmt.Sprintf("%v://%v:%v@%v:%v/%v?sslmode=disable", databaseSettings.Vendor.String(), databaseSettings.User, databaseSettings.Password, databaseSettings.Host, databaseSettings.Port, databaseSettings.Database) diff --git a/pkg/storage/db/postgres_test.go b/pkg/storage/db/postgres_test.go index 371c146..a2afc3f 100644 --- a/pkg/storage/db/postgres_test.go +++ b/pkg/storage/db/postgres_test.go @@ -34,10 +34,10 @@ var ( goldenDevicesFilePath string = "test/goldenfiles/json/goldenDevices.json" goldenSensorsFilePath string = "test/goldenfiles/json/goldenSensors.json" - goldenMeasuredValuesFilePath string = "test/goldenfiles/json/goldenMeasuredValues.json" - goldenPressuresFilePath string = "test/goldenfiles/json/goldenPressures.json" - goldenHumiditiesFilePath string = "test/goldenfiles/json/goldenHumidities.json" - goldenTemperaturesFilePath string = "test/goldenfiles/json/goldenTemperatures.json" + goldenMeasuredValuesFilePath string = "test/goldenfiles/json/goldenMeasuredValuesUncompressedRounded.json" + goldenPressuresFilePath string = "test/goldenfiles/json/goldenPressuresUncompressedRounded.json" + goldenHumiditiesFilePath string = "test/goldenfiles/json/goldenHumiditiesUncompressedRounded.json" + goldenTemperaturesFilePath string = "test/goldenfiles/json/goldenTemperaturesUncompressedRounded.json" goldenDevices []*types.Device goldenSensors []*types.Sensor diff --git a/test/goldenfiles/csv/goldenHumiditiesUncompressedNotRounded.csv b/test/goldenfiles/csv/goldenHumiditiesUncompressedNotRounded.csv new file mode 100644 index 0000000..a3fd05c --- /dev/null +++ b/test/goldenfiles/csv/goldenHumiditiesUncompressedNotRounded.csv @@ -0,0 +1,11 @@ +7d3286c3-3f32-40e7-9656-f587de5d5341,humidity,58.55859375,2019-09-29T19:32:33.862+02:00,2019-09-29T19:32:33.862+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.191+02:00,null +9890f244-9854-4a78-826e-124dc7b179af,humidity,58.55859375,2019-09-29T19:32:35.521+02:00,2019-09-29T19:32:35.521+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.191+02:00,null +40124dc7-a6af-4864-8566-7c2925b4471b,humidity,58.525390625,2019-09-29T19:32:36.186+02:00,2019-09-29T19:32:36.186+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.191+02:00,null +92bfde08-0f2a-4b6e-b227-44f341f35446,humidity,58.5068359375,2019-09-29T19:32:36.881+02:00,2019-09-29T19:32:36.882+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.191+02:00,null +c22e278e-f6fb-4755-8bf3-7a7313816abf,humidity,58.470703125,2019-09-29T19:32:37.485+02:00,2019-09-29T19:32:37.485+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +c0468792-72c2-45f6-a9f4-c798f9307bc2,humidity,58.4384765625,2019-09-29T19:32:38.073+02:00,2019-09-29T19:32:38.073+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +9afab5be-7502-47fc-a5b2-cf8bd1a62054,humidity,58.4384765625,2019-09-29T19:32:38.675+02:00,2019-09-29T19:32:38.676+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +3b8560f9-9536-47e3-839e-8351ffecbfcf,humidity,58.4384765625,2019-09-29T19:32:39.258+02:00,2019-09-29T19:32:39.259+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +4afcb00e-4035-443d-8495-535932d45623,humidity,58.4375,2019-09-29T19:32:39.839+02:00,2019-09-29T19:32:39.839+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +132e91ec-9b06-4792-a8c0-b82ccdcbce16,humidity,58.447265625,2019-09-29T19:32:40.503+02:00,2019-09-29T19:32:40.504+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +5aba6643-3fe3-422f-aa40-2d98591d9a82,humidity,58.46875,2019-09-29T19:32:41.187+02:00,2019-09-29T19:32:41.188+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.193+02:00,null \ No newline at end of file diff --git a/test/goldenfiles/csv/goldenMeasuredValuesUncompressedNotRounded.csv b/test/goldenfiles/csv/goldenMeasuredValuesUncompressedNotRounded.csv new file mode 100644 index 0000000..d88b4a6 --- /dev/null +++ b/test/goldenfiles/csv/goldenMeasuredValuesUncompressedNotRounded.csv @@ -0,0 +1,33 @@ +7d3286c3-3f32-40e7-9656-f587de5d5341,humidity,58.55859375,2019-09-29T19:32:33.862+02:00,2019-09-29T19:32:33.862+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.191+02:00,null +9890f244-9854-4a78-826e-124dc7b179af,humidity,58.55859375,2019-09-29T19:32:35.521+02:00,2019-09-29T19:32:35.521+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.191+02:00,null +40124dc7-a6af-4864-8566-7c2925b4471b,humidity,58.525390625,2019-09-29T19:32:36.186+02:00,2019-09-29T19:32:36.186+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.191+02:00,null +92bfde08-0f2a-4b6e-b227-44f341f35446,humidity,58.5068359375,2019-09-29T19:32:36.881+02:00,2019-09-29T19:32:36.882+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.191+02:00,null +c22e278e-f6fb-4755-8bf3-7a7313816abf,humidity,58.470703125,2019-09-29T19:32:37.485+02:00,2019-09-29T19:32:37.485+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +c0468792-72c2-45f6-a9f4-c798f9307bc2,humidity,58.4384765625,2019-09-29T19:32:38.073+02:00,2019-09-29T19:32:38.073+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +9afab5be-7502-47fc-a5b2-cf8bd1a62054,humidity,58.4384765625,2019-09-29T19:32:38.675+02:00,2019-09-29T19:32:38.676+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +3b8560f9-9536-47e3-839e-8351ffecbfcf,humidity,58.4384765625,2019-09-29T19:32:39.258+02:00,2019-09-29T19:32:39.259+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +4afcb00e-4035-443d-8495-535932d45623,humidity,58.4375,2019-09-29T19:32:39.839+02:00,2019-09-29T19:32:39.839+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +132e91ec-9b06-4792-a8c0-b82ccdcbce16,humidity,58.447265625,2019-09-29T19:32:40.503+02:00,2019-09-29T19:32:40.504+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.192+02:00,null +5aba6643-3fe3-422f-aa40-2d98591d9a82,humidity,58.46875,2019-09-29T19:32:41.187+02:00,2019-09-29T19:32:41.188+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:32:41.193+02:00,null +c18c918e-180b-40ea-8509-b37a2d19c1b8,pressure,98527.1015625,2019-09-29T19:29:56.579+02:00,2019-09-29T19:29:56.579+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.838+02:00,null +31269000-f855-472c-b607-5ef7dbcc2d3b,pressure,98531.296875,2019-09-29T19:29:58.02+02:00,2019-09-29T19:29:58.02+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.838+02:00,null +7df14e44-185e-43a4-ba67-c86561bf19a0,pressure,98526.8984375,2019-09-29T19:29:58.886+02:00,2019-09-29T19:29:58.886+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.838+02:00,null +e63f2d08-cbbe-43c6-80f6-70e504aebce5,pressure,98530.5,2019-09-29T19:29:59.657+02:00,2019-09-29T19:29:59.658+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.838+02:00,null +1ce5e316-8ae5-4ddb-ae6c-5b2b6c9fd83c,pressure,98529.796875,2019-09-29T19:30:00.301+02:00,2019-09-29T19:30:00.302+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.838+02:00,null +b002af5d-3ef0-4608-b6c6-2745be36c7f0,pressure,98530.1015625,2019-09-29T19:30:00.878+02:00,2019-09-29T19:30:00.879+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +e0753df7-865d-41ec-a2fc-58692c0e6a12,pressure,98530.3984375,2019-09-29T19:30:01.513+02:00,2019-09-29T19:30:01.513+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +a46d74d4-dce8-497d-a08a-a609d2ed1238,pressure,98532.5,2019-09-29T19:30:02.095+02:00,2019-09-29T19:30:02.095+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +2a17ada0-caad-42d3-b12e-9ef432d79e59,pressure,98532.203125,2019-09-29T19:30:02.643+02:00,2019-09-29T19:30:02.643+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +f83d1000-9fe5-4ced-9c10-587525b2a9e7,pressure,98528.296875,2019-09-29T19:30:03.26+02:00,2019-09-29T19:30:03.26+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +e2d50392-2d67-4324-add5-dd5c566ba826,pressure,98532.796875,2019-09-29T19:30:03.835+02:00,2019-09-29T19:30:03.835+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +63d546fe-4e27-4816-8e8c-cd16026cf079,temperature,22.040000915527344,2019-09-29T19:26:12.887+02:00,2019-09-29T19:26:12.887+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.292+02:00,null +ac3dddda-a669-4215-8174-42eaa3af741b,temperature,22.049999237060547,2019-09-29T19:26:13.312+02:00,2019-09-29T19:26:13.312+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.292+02:00,null +0031e9f2-5795-4a03-b1dd-a5d9b4c7f8ae,temperature,22.049999237060547,2019-09-29T19:26:13.848+02:00,2019-09-29T19:26:13.848+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.292+02:00,null +2ebc3339-974e-4a8f-bec1-531f9045ffe6,temperature,22.049999237060547,2019-09-29T19:26:14.381+02:00,2019-09-29T19:26:14.382+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.292+02:00,null +dfa35a46-803b-4c21-9cbc-092efc8d3646,temperature,22.059999465942383,2019-09-29T19:26:14.923+02:00,2019-09-29T19:26:14.923+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +ce284f94-6032-467a-804d-34f7dc47ffcb,temperature,22.049999237060547,2019-09-29T19:26:15.472+02:00,2019-09-29T19:26:15.472+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +9926b8e7-2092-48c7-9906-856af2fa7251,temperature,22.049999237060547,2019-09-29T19:26:16.001+02:00,2019-09-29T19:26:16.001+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +9170f2e0-c6aa-4c75-95dc-d1f129df541f,temperature,22.049999237060547,2019-09-29T19:26:16.591+02:00,2019-09-29T19:26:16.591+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +ebce8428-d414-4ed2-98c1-2f3b8b45dd0b,temperature,22.049999237060547,2019-09-29T19:26:17.124+02:00,2019-09-29T19:26:17.124+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +58e55045-33c6-4122-a2d9-b5bc12059b77,temperature,22.059999465942383,2019-09-29T19:26:17.679+02:00,2019-09-29T19:26:17.679+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +1df7d65b-149c-46f5-a377-5d9ad399f471,temperature,22.049999237060547,2019-09-29T19:26:18.291+02:00,2019-09-29T19:26:18.291+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.294+02:00,null \ No newline at end of file diff --git a/test/goldenfiles/csv/goldenPressuresUncompressedNotRounded.csv b/test/goldenfiles/csv/goldenPressuresUncompressedNotRounded.csv new file mode 100644 index 0000000..9376fe2 --- /dev/null +++ b/test/goldenfiles/csv/goldenPressuresUncompressedNotRounded.csv @@ -0,0 +1,11 @@ +c18c918e-180b-40ea-8509-b37a2d19c1b8,pressure,98527.1015625,2019-09-29T19:29:56.579+02:00,2019-09-29T19:29:56.579+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.838+02:00,null +31269000-f855-472c-b607-5ef7dbcc2d3b,pressure,98531.296875,2019-09-29T19:29:58.02+02:00,2019-09-29T19:29:58.02+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.838+02:00,null +7df14e44-185e-43a4-ba67-c86561bf19a0,pressure,98526.8984375,2019-09-29T19:29:58.886+02:00,2019-09-29T19:29:58.886+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.838+02:00,null +e63f2d08-cbbe-43c6-80f6-70e504aebce5,pressure,98530.5,2019-09-29T19:29:59.657+02:00,2019-09-29T19:29:59.658+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.838+02:00,null +1ce5e316-8ae5-4ddb-ae6c-5b2b6c9fd83c,pressure,98529.796875,2019-09-29T19:30:00.301+02:00,2019-09-29T19:30:00.302+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.838+02:00,null +b002af5d-3ef0-4608-b6c6-2745be36c7f0,pressure,98530.1015625,2019-09-29T19:30:00.878+02:00,2019-09-29T19:30:00.879+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +e0753df7-865d-41ec-a2fc-58692c0e6a12,pressure,98530.3984375,2019-09-29T19:30:01.513+02:00,2019-09-29T19:30:01.513+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +a46d74d4-dce8-497d-a08a-a609d2ed1238,pressure,98532.5,2019-09-29T19:30:02.095+02:00,2019-09-29T19:30:02.095+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +2a17ada0-caad-42d3-b12e-9ef432d79e59,pressure,98532.203125,2019-09-29T19:30:02.643+02:00,2019-09-29T19:30:02.643+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +f83d1000-9fe5-4ced-9c10-587525b2a9e7,pressure,98528.296875,2019-09-29T19:30:03.26+02:00,2019-09-29T19:30:03.26+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null +e2d50392-2d67-4324-add5-dd5c566ba826,pressure,98532.796875,2019-09-29T19:30:03.835+02:00,2019-09-29T19:30:03.835+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:30:03.839+02:00,null \ No newline at end of file diff --git a/test/goldenfiles/csv/goldenTemperaturesUncompressedNotRounded.csv b/test/goldenfiles/csv/goldenTemperaturesUncompressedNotRounded.csv new file mode 100644 index 0000000..757b802 --- /dev/null +++ b/test/goldenfiles/csv/goldenTemperaturesUncompressedNotRounded.csv @@ -0,0 +1,11 @@ +63d546fe-4e27-4816-8e8c-cd16026cf079,temperature,22.040000915527344,2019-09-29T19:26:12.887+02:00,2019-09-29T19:26:12.887+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.292+02:00,null +ac3dddda-a669-4215-8174-42eaa3af741b,temperature,22.049999237060547,2019-09-29T19:26:13.312+02:00,2019-09-29T19:26:13.312+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.292+02:00,null +0031e9f2-5795-4a03-b1dd-a5d9b4c7f8ae,temperature,22.049999237060547,2019-09-29T19:26:13.848+02:00,2019-09-29T19:26:13.848+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.292+02:00,null +2ebc3339-974e-4a8f-bec1-531f9045ffe6,temperature,22.049999237060547,2019-09-29T19:26:14.381+02:00,2019-09-29T19:26:14.382+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.292+02:00,null +dfa35a46-803b-4c21-9cbc-092efc8d3646,temperature,22.059999465942383,2019-09-29T19:26:14.923+02:00,2019-09-29T19:26:14.923+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +ce284f94-6032-467a-804d-34f7dc47ffcb,temperature,22.049999237060547,2019-09-29T19:26:15.472+02:00,2019-09-29T19:26:15.472+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +9926b8e7-2092-48c7-9906-856af2fa7251,temperature,22.049999237060547,2019-09-29T19:26:16.001+02:00,2019-09-29T19:26:16.001+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +9170f2e0-c6aa-4c75-95dc-d1f129df541f,temperature,22.049999237060547,2019-09-29T19:26:16.591+02:00,2019-09-29T19:26:16.591+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +ebce8428-d414-4ed2-98c1-2f3b8b45dd0b,temperature,22.049999237060547,2019-09-29T19:26:17.124+02:00,2019-09-29T19:26:17.124+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +58e55045-33c6-4122-a2d9-b5bc12059b77,temperature,22.059999465942383,2019-09-29T19:26:17.679+02:00,2019-09-29T19:26:17.679+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.293+02:00,null +1df7d65b-149c-46f5-a377-5d9ad399f471,temperature,22.049999237060547,2019-09-29T19:26:18.291+02:00,2019-09-29T19:26:18.291+02:00,d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6,2019-09-29T19:26:18.294+02:00,null \ No newline at end of file diff --git a/test/goldenfiles/json/goldenDevices.json b/test/goldenfiles/json/goldenDevices.json index 54f72ba..7c69bb5 100644 --- a/test/goldenfiles/json/goldenDevices.json +++ b/test/goldenfiles/json/goldenDevices.json @@ -1,9 +1,9 @@ [ { - "device_id": "1efc3092-871e-4ac4-b0d4-ea5e5715460d", + "device_id": "19343609-c363-4992-ac97-124229ced640", "device_name": "poseidon", "device_location": null, "device_last_contact": null, - "creation_date": "2019-03-06T20:02:48.839308+01:00" + "creation_date": "2019-09-29T18:14:35.203+02:00" } ] \ No newline at end of file diff --git a/test/goldenfiles/json/goldenHumidities.json b/test/goldenfiles/json/goldenHumidities.json deleted file mode 100644 index 6941860..0000000 --- a/test/goldenfiles/json/goldenHumidities.json +++ /dev/null @@ -1,142 +0,0 @@ -[ - { - "id": "f94bb22a-d896-4bf7-bb48-74acd9211698", - "value": "45", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:20.409105+02:00", - "till_date": "2019-08-23T20:38:21.369122+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401141+02:00", - "update_date": "2019-08-23T20:41:05.347411+02:00" - }, - { - "id": "4bf1f15f-2175-454d-b711-7642600437e4", - "value": "75", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:22.249136+02:00", - "till_date": "2019-08-23T20:38:22.249137+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401477+02:00", - "update_date": null - }, - { - "id": "8e7653a4-c9c6-418c-8acb-73e73023cad2", - "value": "66", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:23.289123+02:00", - "till_date": "2019-08-23T20:38:23.289124+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401789+02:00", - "update_date": null - }, - { - "id": "4dd27ac3-ec52-4453-9391-2f8483574161", - "value": "64.5", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:24.16919+02:00", - "till_date": "2019-08-23T20:38:24.169192+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401447+02:00", - "update_date": null - }, - { - "id": "0e5ccd47-3ca0-4fe1-875b-a248790d44df", - "value": "64.25", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:25.209098+02:00", - "till_date": "2019-08-23T20:38:25.209117+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401447+02:00", - "update_date": null - }, - { - "id": "9de64ca1-b4bd-4a0b-a750-1f751eb36031", - "value": "64", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:26.169711+02:00", - "till_date": "2019-08-23T20:38:27.049147+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401975+02:00", - "update_date": "2019-08-23T20:41:05.347447+02:00" - }, - { - "id": "8c952afc-6824-4b06-bfd0-16a0d8c5fc80", - "value": "78", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:28.089+02:00", - "till_date": "2019-08-23T20:38:28.089+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401457+02:00", - "update_date": null - }, - { - "id": "780c1008-fb17-494b-9c61-e0a34245d63c", - "value": "77", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:28.969711+02:00", - "till_date": "2019-08-23T20:38:28.96974+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401141+02:00", - "update_date": null - }, - { - "id": "b206b39d-9f80-4ba8-bb6b-d171abc3c458", - "value": "61", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:30.009741+02:00", - "till_date": "2019-08-23T20:38:30.969711+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401668+02:00", - "update_date": "2019-08-23T20:41:05.347446+02:00" - }, - { - "id": "4d381d84-a56c-4bc8-89c7-ea41b2432eaf", - "value": "55.25", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:31.929108+02:00", - "till_date": "2019-08-23T20:38:38.569141+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.407891+02:00", - "update_date": "2019-08-23T20:41:05.347789+02:00" - }, - { - "id": "07ce5f6c-d860-448e-98cd-b390bdcf63b3", - "value": "55", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:39.529164+02:00", - "till_date": "2019-08-23T20:38:40.569106+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401456+02:00", - "update_date": "2019-08-23T20:41:05.347789+02:00" - }, - { - "id": "18145034-237e-4066-a998-0dd1b4a0a3b4", - "value": "50", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:41.529216+02:00", - "till_date": "2019-08-23T20:38:41.529217+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401789+02:00", - "update_date": null - }, - { - "id": "56794741-0758-401b-8697-e42998a53d2d", - "value": "49.5", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:42.489113+02:00", - "till_date": "2019-08-23T20:38:42.489114+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401789+02:00", - "update_date": null - }, - { - "id": "7dbf1aa5-a122-4ba7-8444-fc7aac22246f", - "value": "48.5", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:43.369131+02:00", - "till_date": "2019-08-23T20:46:04.409158+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.401221+02:00", - "update_date": "2019-08-23T20:46:05.341739+02:00" - } -] \ No newline at end of file diff --git a/test/goldenfiles/json/goldenHumiditiesUncompressedNotRounded.json b/test/goldenfiles/json/goldenHumiditiesUncompressedNotRounded.json new file mode 100644 index 0000000..9924fe4 --- /dev/null +++ b/test/goldenfiles/json/goldenHumiditiesUncompressedNotRounded.json @@ -0,0 +1,112 @@ +[ + { + "id": "7d3286c3-3f32-40e7-9656-f587de5d5341", + "value": "58.55859375", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:33.862+02:00", + "till_date": "2019-09-29T19:32:33.862+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.845+02:00", + "update_date": null + }, + { + "id": "9890f244-9854-4a78-826e-124dc7b179af", + "value": "58.55859375", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:35.521+02:00", + "till_date": "2019-09-29T19:32:35.521+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.845+02:00", + "update_date": null + }, + { + "id": "40124dc7-a6af-4864-8566-7c2925b4471b", + "value": "58.525390625", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:36.186+02:00", + "till_date": "2019-09-29T19:32:36.186+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.845+02:00", + "update_date": null + }, + { + "id": "92bfde08-0f2a-4b6e-b227-44f341f35446", + "value": "58.5068359375", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:36.881+02:00", + "till_date": "2019-09-29T19:32:36.882+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "c22e278e-f6fb-4755-8bf3-7a7313816abf", + "value": "58.470703125", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:37.485+02:00", + "till_date": "2019-09-29T19:32:37.485+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "c0468792-72c2-45f6-a9f4-c798f9307bc2", + "value": "58.4384765625", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:38.073+02:00", + "till_date": "2019-09-29T19:32:38.073+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "9afab5be-7502-47fc-a5b2-cf8bd1a62054", + "value": "58.4384765625", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:38.675+02:00", + "till_date": "2019-09-29T19:32:38.676+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "3b8560f9-9536-47e3-839e-8351ffecbfcf", + "value": "58.4384765625", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:39.258+02:00", + "till_date": "2019-09-29T19:32:39.259+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "4afcb00e-4035-443d-8495-535932d45623", + "value": "58.4375", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:39.839+02:00", + "till_date": "2019-09-29T19:32:39.839+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "132e91ec-9b06-4792-a8c0-b82ccdcbce16", + "value": "58.447265625", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:40.503+02:00", + "till_date": "2019-09-29T19:32:40.504+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "5aba6643-3fe3-422f-aa40-2d98591d9a82", + "value": "58.46875", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:41.187+02:00", + "till_date": "2019-09-29T19:32:41.188+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + } +] diff --git a/test/goldenfiles/json/goldenHumiditiesUncompressedRounded.json b/test/goldenfiles/json/goldenHumiditiesUncompressedRounded.json new file mode 100644 index 0000000..bea542b --- /dev/null +++ b/test/goldenfiles/json/goldenHumiditiesUncompressedRounded.json @@ -0,0 +1,112 @@ +[ + { + "id": "7d3286c3-3f32-40e7-9656-f587de5d5341", + "value": "58.558", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:33.862+02:00", + "till_date": "2019-09-29T19:32:33.862+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.845+02:00", + "update_date": null + }, + { + "id": "9890f244-9854-4a78-826e-124dc7b179af", + "value": "58.558", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:35.521+02:00", + "till_date": "2019-09-29T19:32:35.521+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.845+02:00", + "update_date": null + }, + { + "id": "40124dc7-a6af-4864-8566-7c2925b4471b", + "value": "58.525", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:36.186+02:00", + "till_date": "2019-09-29T19:32:36.186+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.845+02:00", + "update_date": null + }, + { + "id": "92bfde08-0f2a-4b6e-b227-44f341f35446", + "value": "58.506", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:36.881+02:00", + "till_date": "2019-09-29T19:32:36.882+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "c22e278e-f6fb-4755-8bf3-7a7313816abf", + "value": "58.470", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:37.485+02:00", + "till_date": "2019-09-29T19:32:37.485+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "c0468792-72c2-45f6-a9f4-c798f9307bc2", + "value": "58.438", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:38.073+02:00", + "till_date": "2019-09-29T19:32:38.073+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "9afab5be-7502-47fc-a5b2-cf8bd1a62054", + "value": "58.438", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:38.675+02:00", + "till_date": "2019-09-29T19:32:38.676+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "3b8560f9-9536-47e3-839e-8351ffecbfcf", + "value": "58.438", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:39.258+02:00", + "till_date": "2019-09-29T19:32:39.259+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "4afcb00e-4035-443d-8495-535932d45623", + "value": "58.437", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:39.839+02:00", + "till_date": "2019-09-29T19:32:39.839+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "132e91ec-9b06-4792-a8c0-b82ccdcbce16", + "value": "58.447", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:40.503+02:00", + "till_date": "2019-09-29T19:32:40.504+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + }, + { + "id": "5aba6643-3fe3-422f-aa40-2d98591d9a82", + "value": "58.468", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:41.187+02:00", + "till_date": "2019-09-29T19:32:41.188+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.846+02:00", + "update_date": null + } +] diff --git a/test/goldenfiles/json/goldenMeasuredValues.json b/test/goldenfiles/json/goldenMeasuredValues.json deleted file mode 100644 index ada77b5..0000000 --- a/test/goldenfiles/json/goldenMeasuredValues.json +++ /dev/null @@ -1,422 +0,0 @@ -[ - { - "id": "f94bb22a-d896-4bf7-bb48-74acd9211698", - "value": "45", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:20.409105+02:00", - "till_date": "2019-08-23T20:38:21.369122+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "4bf1f15f-2175-454d-b711-7642600437e4", - "value": "75", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:22.249136+02:00", - "till_date": "2019-08-23T20:38:22.249137+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "8e7653a4-c9c6-418c-8acb-73e73023cad2", - "value": "66", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:23.289123+02:00", - "till_date": "2019-08-23T20:38:23.289124+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "4dd27ac3-ec52-4453-9391-2f8483574161", - "value": "64.5", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:24.16919+02:00", - "till_date": "2019-08-23T20:38:24.169192+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "0e5ccd47-3ca0-4fe1-875b-a248790d44df", - "value": "64.25", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:25.209098+02:00", - "till_date": "2019-08-23T20:38:25.2091+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "9de64ca1-b4bd-4a0b-a750-1f751eb36031", - "value": "64", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:26.169175+02:00", - "till_date": "2019-08-23T20:38:27.049148+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "8c952afc-6824-4b06-bfd0-16a0d8c5fc80", - "value": "78", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:28.089115+02:00", - "till_date": "2019-08-23T20:38:28.089116+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "780c1008-fb17-494b-9c61-e0a34245d63c", - "value": "77", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:28.969102+02:00", - "till_date": "2019-08-23T20:38:28.969104+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "b206b39d-9f80-4ba8-bb6b-d171abc3c458", - "value": "61", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:30.009139+02:00", - "till_date": "2019-08-23T20:38:30.969136+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "4d381d84-a56c-4bc8-89c7-ea41b2432eaf", - "value": "55.25", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:31.929108+02:00", - "till_date": "2019-08-23T20:38:38.569141+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "07ce5f6c-d860-448e-98cd-b390bdcf63b3", - "value": "55", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:39.529164+02:00", - "till_date": "2019-08-23T20:38:40.569106+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "18145034-237e-4066-a998-0dd1b4a0a3b4", - "value": "50", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:41.529216+02:00", - "till_date": "2019-08-23T20:38:41.529217+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "56794741-0758-401b-8697-e42998a53d2d", - "value": "49.5", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:42.489113+02:00", - "till_date": "2019-08-23T20:38:42.489114+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "7dbf1aa5-a122-4ba7-8444-fc7aac22246f", - "value": "48.5", - "value_type": "humidity", - "from_date": "2019-08-23T20:38:43.369131+02:00", - "till_date": "2019-08-23T20:46:04.409158+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:46:05.341739+02:00" - }, - { - "id": "f94bb22a-d896-4bf7-bb48-74acd9211698", - "value": "100146.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:20.409105+02:00", - "till_date": "2019-08-23T20:38:21.369122+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "4bf1f15f-2175-454d-b711-7642600437e4", - "value": "100147.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:22.249136+02:00", - "till_date": "2019-08-23T20:38:22.249137+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "8e7653a4-c9c6-418c-8acb-73e73023cad2", - "value": "100144.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:23.289123+02:00", - "till_date": "2019-08-23T20:38:23.289124+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "4dd27ac3-ec52-4453-9391-2f8483574161", - "value": "100666.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:24.16919+02:00", - "till_date": "2019-08-23T20:38:24.169192+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "0e5ccd47-3ca0-4fe1-875b-a248790d44df", - "value": "100612.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:25.209098+02:00", - "till_date": "2019-08-23T20:38:25.2091+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "9de64ca1-b4bd-4a0b-a750-1f751eb36031", - "value": "100550.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:26.169175+02:00", - "till_date": "2019-08-23T20:38:27.049148+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "8c952afc-6824-4b06-bfd0-16a0d8c5fc80", - "value": "100609.750", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:28.089115+02:00", - "till_date": "2019-08-23T20:38:28.089116+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "780c1008-fb17-494b-9c61-e0a34245d63c", - "value": "100609.250", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:28.969102+02:00", - "till_date": "2019-08-23T20:38:28.969104+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "b206b39d-9f80-4ba8-bb6b-d171abc3c458", - "value": "100146.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:30.009139+02:00", - "till_date": "2019-08-23T20:38:30.969136+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "4d381d84-a56c-4bc8-89c7-ea41b2432eaf", - "value": "100149.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:31.929108+02:00", - "till_date": "2019-08-23T20:38:38.569141+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "07ce5f6c-d860-448e-98cd-b390bdcf63b3", - "value": "100114.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:39.529164+02:00", - "till_date": "2019-08-23T20:38:40.569106+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "18145034-237e-4066-a998-0dd1b4a0a3b4", - "value": "100149.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:41.529216+02:00", - "till_date": "2019-08-23T20:38:41.529217+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "56794741-0758-401b-8697-e42998a53d2d", - "value": "100166.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:42.489113+02:00", - "till_date": "2019-08-23T20:38:42.489114+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "7dbf1aa5-a122-4ba7-8444-fc7aac22246f", - "value": "100178.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:43.369131+02:00", - "till_date": "2019-08-23T20:46:04.409158+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:46:05.341739+02:00" - }, - { - "id": "f94bb22a-d896-4bf7-bb48-74acd9211698", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:20.409105+02:00", - "till_date": "2019-08-23T20:38:21.369122+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "4bf1f15f-2175-454d-b711-7642600437e4", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:22.249136+02:00", - "till_date": "2019-08-23T20:38:22.249137+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "8e7653a4-c9c6-418c-8acb-73e73023cad2", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:23.289123+02:00", - "till_date": "2019-08-23T20:38:23.289124+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "4dd27ac3-ec52-4453-9391-2f8483574161", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:24.16919+02:00", - "till_date": "2019-08-23T20:38:24.169192+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "0e5ccd47-3ca0-4fe1-875b-a248790d44df", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:25.209098+02:00", - "till_date": "2019-08-23T20:38:25.2091+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "9de64ca1-b4bd-4a0b-a750-1f751eb36031", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:26.169175+02:00", - "till_date": "2019-08-23T20:38:27.049148+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "8c952afc-6824-4b06-bfd0-16a0d8c5fc80", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:28.089115+02:00", - "till_date": "2019-08-23T20:38:28.089116+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "780c1008-fb17-494b-9c61-e0a34245d63c", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:28.969102+02:00", - "till_date": "2019-08-23T20:38:28.969104+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "b206b39d-9f80-4ba8-bb6b-d171abc3c458", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:30.009139+02:00", - "till_date": "2019-08-23T20:38:30.969136+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "4d381d84-a56c-4bc8-89c7-ea41b2432eaf", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:31.929108+02:00", - "till_date": "2019-08-23T20:38:38.569141+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "07ce5f6c-d860-448e-98cd-b390bdcf63b3", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:39.529164+02:00", - "till_date": "2019-08-23T20:38:40.569106+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "18145034-237e-4066-a998-0dd1b4a0a3b4", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:41.529216+02:00", - "till_date": "2019-08-23T20:38:41.529217+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "56794741-0758-401b-8697-e42998a53d2d", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:42.489113+02:00", - "till_date": "2019-08-23T20:38:42.489114+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "7dbf1aa5-a122-4ba7-8444-fc7aac22246f", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:43.369131+02:00", - "till_date": "2019-08-23T20:46:04.409158+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:46:05.341739+02:00" - } -] \ No newline at end of file diff --git a/test/goldenfiles/json/goldenMeasuredValuesUncompressedNotRounded.json b/test/goldenfiles/json/goldenMeasuredValuesUncompressedNotRounded.json new file mode 100644 index 0000000..995ecbf --- /dev/null +++ b/test/goldenfiles/json/goldenMeasuredValuesUncompressedNotRounded.json @@ -0,0 +1,332 @@ +[ + { + "id": "7d3286c3-3f32-40e7-9656-f587de5d5341", + "value": "58.55859375", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:33.862+02:00", + "till_date": "2019-09-29T19:32:33.862+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "9890f244-9854-4a78-826e-124dc7b179af", + "value": "58.55859375", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:35.521+02:00", + "till_date": "2019-09-29T19:32:35.521+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "40124dc7-a6af-4864-8566-7c2925b4471b", + "value": "58.525390625", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:36.186+02:00", + "till_date": "2019-09-29T19:32:36.186+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "92bfde08-0f2a-4b6e-b227-44f341f35446", + "value": "58.5068359375", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:36.881+02:00", + "till_date": "2019-09-29T19:32:36.882+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "c22e278e-f6fb-4755-8bf3-7a7313816abf", + "value": "58.470703125", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:37.485+02:00", + "till_date": "2019-09-29T19:32:37.485+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "c0468792-72c2-45f6-a9f4-c798f9307bc2", + "value": "58.4384765625", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:38.073+02:00", + "till_date": "2019-09-29T19:32:38.073+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "9afab5be-7502-47fc-a5b2-cf8bd1a62054", + "value": "58.4384765625", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:38.675+02:00", + "till_date": "2019-09-29T19:32:38.676+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "3b8560f9-9536-47e3-839e-8351ffecbfcf", + "value": "58.4384765625", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:39.258+02:00", + "till_date": "2019-09-29T19:32:39.259+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "4afcb00e-4035-443d-8495-535932d45623", + "value": "58.4375", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:39.839+02:00", + "till_date": "2019-09-29T19:32:39.839+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "132e91ec-9b06-4792-a8c0-b82ccdcbce16", + "value": "58.447265625", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:40.503+02:00", + "till_date": "2019-09-29T19:32:40.504+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "5aba6643-3fe3-422f-aa40-2d98591d9a82", + "value": "58.46875", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:41.187+02:00", + "till_date": "2019-09-29T19:32:41.188+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "c18c918e-180b-40ea-8509-b37a2d19c1b8", + "value": "98527.1015625", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:56.579+02:00", + "till_date": "2019-09-29T19:29:56.579+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "31269000-f855-472c-b607-5ef7dbcc2d3b", + "value": "98531.296875", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:58.02+02:00", + "till_date": "2019-09-29T19:29:58.02+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "7df14e44-185e-43a4-ba67-c86561bf19a0", + "value": "98526.8984375", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:58.886+02:00", + "till_date": "2019-09-29T19:29:58.886+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "e63f2d08-cbbe-43c6-80f6-70e504aebce5", + "value": "98530.5", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:59.657+02:00", + "till_date": "2019-09-29T19:29:59.658+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "1ce5e316-8ae5-4ddb-ae6c-5b2b6c9fd83c", + "value": "98529.796875", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:00.301+02:00", + "till_date": "2019-09-29T19:30:00.302+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "b002af5d-3ef0-4608-b6c6-2745be36c7f0", + "value": "98530.1015625", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:00.878+02:00", + "till_date": "2019-09-29T19:30:00.879+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "e0753df7-865d-41ec-a2fc-58692c0e6a12", + "value": "98530.3984375", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:01.513+02:00", + "till_date": "2019-09-29T19:30:01.513+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "a46d74d4-dce8-497d-a08a-a609d2ed1238", + "value": "98532.5", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:02.095+02:00", + "till_date": "2019-09-29T19:30:02.095+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "2a17ada0-caad-42d3-b12e-9ef432d79e59", + "value": "98532.203125", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:02.643+02:00", + "till_date": "2019-09-29T19:30:02.643+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "f83d1000-9fe5-4ced-9c10-587525b2a9e7", + "value": "98528.296875", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:03.26+02:00", + "till_date": "2019-09-29T19:30:03.26+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "e2d50392-2d67-4324-add5-dd5c566ba826", + "value": "98532.796875", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:03.835+02:00", + "till_date": "2019-09-29T19:30:03.835+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "63d546fe-4e27-4816-8e8c-cd16026cf079", + "value": "22.040000915527344", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:12.887+02:00", + "till_date": "2019-09-29T19:26:12.887+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "ac3dddda-a669-4215-8174-42eaa3af741b", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:13.312+02:00", + "till_date": "2019-09-29T19:26:13.312+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "0031e9f2-5795-4a03-b1dd-a5d9b4c7f8ae", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:13.848+02:00", + "till_date": "2019-09-29T19:26:13.848+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "2ebc3339-974e-4a8f-bec1-531f9045ffe6", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:14.381+02:00", + "till_date": "2019-09-29T19:26:14.382+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "dfa35a46-803b-4c21-9cbc-092efc8d3646", + "value": "22.059999465942383", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:14.923+02:00", + "till_date": "2019-09-29T19:26:14.923+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "ce284f94-6032-467a-804d-34f7dc47ffcb", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:15.472+02:00", + "till_date": "2019-09-29T19:26:15.472+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "9926b8e7-2092-48c7-9906-856af2fa7251", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:16.001+02:00", + "till_date": "2019-09-29T19:26:16.001+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "9170f2e0-c6aa-4c75-95dc-d1f129df541f", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:16.591+02:00", + "till_date": "2019-09-29T19:26:16.591+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "ebce8428-d414-4ed2-98c1-2f3b8b45dd0b", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:17.124+02:00", + "till_date": "2019-09-29T19:26:17.124+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "58e55045-33c6-4122-a2d9-b5bc12059b77", + "value": "22.059999465942383", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:17.679+02:00", + "till_date": "2019-09-29T19:26:17.679+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "1df7d65b-149c-46f5-a377-5d9ad399f471", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:18.291+02:00", + "till_date": "2019-09-29T19:26:18.291+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + } +] diff --git a/test/goldenfiles/json/goldenMeasuredValuesUncompressedRounded.json b/test/goldenfiles/json/goldenMeasuredValuesUncompressedRounded.json new file mode 100644 index 0000000..c6bad20 --- /dev/null +++ b/test/goldenfiles/json/goldenMeasuredValuesUncompressedRounded.json @@ -0,0 +1,332 @@ +[ + { + "id": "7d3286c3-3f32-40e7-9656-f587de5d5341", + "value": "58.558", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:33.862+02:00", + "till_date": "2019-09-29T19:32:33.862+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "9890f244-9854-4a78-826e-124dc7b179af", + "value": "58.558", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:35.521+02:00", + "till_date": "2019-09-29T19:32:35.521+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "40124dc7-a6af-4864-8566-7c2925b4471b", + "value": "58.525", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:36.186+02:00", + "till_date": "2019-09-29T19:32:36.186+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "92bfde08-0f2a-4b6e-b227-44f341f35446", + "value": "58.506", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:36.881+02:00", + "till_date": "2019-09-29T19:32:36.882+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "c22e278e-f6fb-4755-8bf3-7a7313816abf", + "value": "58.470", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:37.485+02:00", + "till_date": "2019-09-29T19:32:37.485+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "c0468792-72c2-45f6-a9f4-c798f9307bc2", + "value": "58.438", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:38.073+02:00", + "till_date": "2019-09-29T19:32:38.073+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "9afab5be-7502-47fc-a5b2-cf8bd1a62054", + "value": "58.438", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:38.675+02:00", + "till_date": "2019-09-29T19:32:38.676+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "3b8560f9-9536-47e3-839e-8351ffecbfcf", + "value": "58.438", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:39.258+02:00", + "till_date": "2019-09-29T19:32:39.259+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "4afcb00e-4035-443d-8495-535932d45623", + "value": "58.437", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:39.839+02:00", + "till_date": "2019-09-29T19:32:39.839+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "132e91ec-9b06-4792-a8c0-b82ccdcbce16", + "value": "58.447", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:40.503+02:00", + "till_date": "2019-09-29T19:32:40.504+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.878+02:00", + "update_date": null + }, + { + "id": "5aba6643-3fe3-422f-aa40-2d98591d9a82", + "value": "58.468", + "value_type": "humidity", + "from_date": "2019-09-29T19:32:41.187+02:00", + "till_date": "2019-09-29T19:32:41.188+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "c18c918e-180b-40ea-8509-b37a2d19c1b8", + "value": "98527.101", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:56.579+02:00", + "till_date": "2019-09-29T19:29:56.579+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "31269000-f855-472c-b607-5ef7dbcc2d3b", + "value": "98531.296", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:58.02+02:00", + "till_date": "2019-09-29T19:29:58.02+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "7df14e44-185e-43a4-ba67-c86561bf19a0", + "value": "98526.898", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:58.886+02:00", + "till_date": "2019-09-29T19:29:58.886+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "e63f2d08-cbbe-43c6-80f6-70e504aebce5", + "value": "98530.5", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:59.657+02:00", + "till_date": "2019-09-29T19:29:59.658+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "1ce5e316-8ae5-4ddb-ae6c-5b2b6c9fd83c", + "value": "98529.796", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:00.301+02:00", + "till_date": "2019-09-29T19:30:00.302+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "b002af5d-3ef0-4608-b6c6-2745be36c7f0", + "value": "98530.101", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:00.878+02:00", + "till_date": "2019-09-29T19:30:00.879+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "e0753df7-865d-41ec-a2fc-58692c0e6a12", + "value": "98530.398", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:01.513+02:00", + "till_date": "2019-09-29T19:30:01.513+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "a46d74d4-dce8-497d-a08a-a609d2ed1238", + "value": "98532.5", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:02.095+02:00", + "till_date": "2019-09-29T19:30:02.095+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "2a17ada0-caad-42d3-b12e-9ef432d79e59", + "value": "98532.203", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:02.643+02:00", + "till_date": "2019-09-29T19:30:02.643+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "f83d1000-9fe5-4ced-9c10-587525b2a9e7", + "value": "98528.296", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:03.26+02:00", + "till_date": "2019-09-29T19:30:03.26+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "e2d50392-2d67-4324-add5-dd5c566ba826", + "value": "98532.796", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:03.835+02:00", + "till_date": "2019-09-29T19:30:03.835+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.879+02:00", + "update_date": null + }, + { + "id": "63d546fe-4e27-4816-8e8c-cd16026cf079", + "value": "22.040", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:12.887+02:00", + "till_date": "2019-09-29T19:26:12.887+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "ac3dddda-a669-4215-8174-42eaa3af741b", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:13.312+02:00", + "till_date": "2019-09-29T19:26:13.312+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "0031e9f2-5795-4a03-b1dd-a5d9b4c7f8ae", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:13.848+02:00", + "till_date": "2019-09-29T19:26:13.848+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "2ebc3339-974e-4a8f-bec1-531f9045ffe6", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:14.381+02:00", + "till_date": "2019-09-29T19:26:14.382+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "dfa35a46-803b-4c21-9cbc-092efc8d3646", + "value": "22.059", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:14.923+02:00", + "till_date": "2019-09-29T19:26:14.923+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "ce284f94-6032-467a-804d-34f7dc47ffcb", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:15.472+02:00", + "till_date": "2019-09-29T19:26:15.472+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "9926b8e7-2092-48c7-9906-856af2fa7251", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:16.001+02:00", + "till_date": "2019-09-29T19:26:16.001+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "9170f2e0-c6aa-4c75-95dc-d1f129df541f", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:16.591+02:00", + "till_date": "2019-09-29T19:26:16.591+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "ebce8428-d414-4ed2-98c1-2f3b8b45dd0b", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:17.124+02:00", + "till_date": "2019-09-29T19:26:17.124+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "58e55045-33c6-4122-a2d9-b5bc12059b77", + "value": "22.059", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:17.679+02:00", + "till_date": "2019-09-29T19:26:17.679+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + }, + { + "id": "1df7d65b-149c-46f5-a377-5d9ad399f471", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:18.291+02:00", + "till_date": "2019-09-29T19:26:18.291+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.88+02:00", + "update_date": null + } +] diff --git a/test/goldenfiles/json/goldenPressures.json b/test/goldenfiles/json/goldenPressures.json deleted file mode 100644 index 6774d79..0000000 --- a/test/goldenfiles/json/goldenPressures.json +++ /dev/null @@ -1,142 +0,0 @@ -[ - { - "id": "f94bb22a-d896-4bf7-bb48-74acd9211698", - "value": "100146.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:20.409105+02:00", - "till_date": "2019-08-23T20:38:21.369122+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "4bf1f15f-2175-454d-b711-7642600437e4", - "value": "100147.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:22.249136+02:00", - "till_date": "2019-08-23T20:38:22.249137+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "8e7653a4-c9c6-418c-8acb-73e73023cad2", - "value": "100144.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:23.289123+02:00", - "till_date": "2019-08-23T20:38:23.289124+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "4dd27ac3-ec52-4453-9391-2f8483574161", - "value": "100666.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:24.16919+02:00", - "till_date": "2019-08-23T20:38:24.169192+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881587+02:00", - "update_date": null - }, - { - "id": "0e5ccd47-3ca0-4fe1-875b-a248790d44df", - "value": "100612.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:25.209098+02:00", - "till_date": "2019-08-23T20:38:25.2091+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "9de64ca1-b4bd-4a0b-a750-1f751eb36031", - "value": "100550.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:26.169175+02:00", - "till_date": "2019-08-23T20:38:27.049148+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "8c952afc-6824-4b06-bfd0-16a0d8c5fc80", - "value": "100609.750", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:28.089115+02:00", - "till_date": "2019-08-23T20:38:28.089116+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "780c1008-fb17-494b-9c61-e0a34245d63c", - "value": "100609.250", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:28.969102+02:00", - "till_date": "2019-08-23T20:38:28.969104+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "b206b39d-9f80-4ba8-bb6b-d171abc3c458", - "value": "100146.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:30.009139+02:00", - "till_date": "2019-08-23T20:38:30.969136+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "4d381d84-a56c-4bc8-89c7-ea41b2432eaf", - "value": "100149.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:31.929108+02:00", - "till_date": "2019-08-23T20:38:38.569141+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "07ce5f6c-d860-448e-98cd-b390bdcf63b3", - "value": "100114.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:39.529164+02:00", - "till_date": "2019-08-23T20:38:40.569106+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "18145034-237e-4066-a998-0dd1b4a0a3b4", - "value": "100149.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:41.529216+02:00", - "till_date": "2019-08-23T20:38:41.529217+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "56794741-0758-401b-8697-e42998a53d2d", - "value": "100166.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:42.489113+02:00", - "till_date": "2019-08-23T20:38:42.489114+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "7dbf1aa5-a122-4ba7-8444-fc7aac22246f", - "value": "100178.500", - "value_type": "pressure", - "from_date": "2019-08-23T20:38:43.369131+02:00", - "till_date": "2019-08-23T20:46:04.409158+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:46:05.341739+02:00" - } -] \ No newline at end of file diff --git a/test/goldenfiles/json/goldenPressuresUncompressedNotRounded.json b/test/goldenfiles/json/goldenPressuresUncompressedNotRounded.json new file mode 100644 index 0000000..393b3df --- /dev/null +++ b/test/goldenfiles/json/goldenPressuresUncompressedNotRounded.json @@ -0,0 +1,112 @@ +[ + { + "id": "c18c918e-180b-40ea-8509-b37a2d19c1b8", + "value": "98527.1015625", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:56.579+02:00", + "till_date": "2019-09-29T19:29:56.579+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "31269000-f855-472c-b607-5ef7dbcc2d3b", + "value": "98531.296875", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:58.02+02:00", + "till_date": "2019-09-29T19:29:58.02+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "7df14e44-185e-43a4-ba67-c86561bf19a0", + "value": "98526.8984375", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:58.886+02:00", + "till_date": "2019-09-29T19:29:58.886+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "e63f2d08-cbbe-43c6-80f6-70e504aebce5", + "value": "98530.5", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:59.657+02:00", + "till_date": "2019-09-29T19:29:59.658+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "1ce5e316-8ae5-4ddb-ae6c-5b2b6c9fd83c", + "value": "98529.796875", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:00.301+02:00", + "till_date": "2019-09-29T19:30:00.302+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "b002af5d-3ef0-4608-b6c6-2745be36c7f0", + "value": "98530.1015625", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:00.878+02:00", + "till_date": "2019-09-29T19:30:00.879+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "e0753df7-865d-41ec-a2fc-58692c0e6a12", + "value": "98530.3984375", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:01.513+02:00", + "till_date": "2019-09-29T19:30:01.513+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "a46d74d4-dce8-497d-a08a-a609d2ed1238", + "value": "98532.5", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:02.095+02:00", + "till_date": "2019-09-29T19:30:02.095+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "2a17ada0-caad-42d3-b12e-9ef432d79e59", + "value": "98532.203125", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:02.643+02:00", + "till_date": "2019-09-29T19:30:02.643+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "f83d1000-9fe5-4ced-9c10-587525b2a9e7", + "value": "98528.296875", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:03.26+02:00", + "till_date": "2019-09-29T19:30:03.26+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.925+02:00", + "update_date": null + }, + { + "id": "e2d50392-2d67-4324-add5-dd5c566ba826", + "value": "98532.796875", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:03.835+02:00", + "till_date": "2019-09-29T19:30:03.835+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.925+02:00", + "update_date": null + } +] diff --git a/test/goldenfiles/json/goldenPressuresUncompressedRounded.json b/test/goldenfiles/json/goldenPressuresUncompressedRounded.json new file mode 100644 index 0000000..6617e74 --- /dev/null +++ b/test/goldenfiles/json/goldenPressuresUncompressedRounded.json @@ -0,0 +1,112 @@ +[ + { + "id": "c18c918e-180b-40ea-8509-b37a2d19c1b8", + "value": "98527.101", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:56.579+02:00", + "till_date": "2019-09-29T19:29:56.579+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "31269000-f855-472c-b607-5ef7dbcc2d3b", + "value": "98531.296", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:58.02+02:00", + "till_date": "2019-09-29T19:29:58.02+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "7df14e44-185e-43a4-ba67-c86561bf19a0", + "value": "98526.898", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:58.886+02:00", + "till_date": "2019-09-29T19:29:58.886+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "e63f2d08-cbbe-43c6-80f6-70e504aebce5", + "value": "98530.5", + "value_type": "pressure", + "from_date": "2019-09-29T19:29:59.657+02:00", + "till_date": "2019-09-29T19:29:59.658+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "1ce5e316-8ae5-4ddb-ae6c-5b2b6c9fd83c", + "value": "98529.796", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:00.301+02:00", + "till_date": "2019-09-29T19:30:00.302+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "b002af5d-3ef0-4608-b6c6-2745be36c7f0", + "value": "98530.101", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:00.878+02:00", + "till_date": "2019-09-29T19:30:00.879+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "e0753df7-865d-41ec-a2fc-58692c0e6a12", + "value": "98530.398", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:01.513+02:00", + "till_date": "2019-09-29T19:30:01.513+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "a46d74d4-dce8-497d-a08a-a609d2ed1238", + "value": "98532.5", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:02.095+02:00", + "till_date": "2019-09-29T19:30:02.095+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "2a17ada0-caad-42d3-b12e-9ef432d79e59", + "value": "98532.203", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:02.643+02:00", + "till_date": "2019-09-29T19:30:02.643+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.924+02:00", + "update_date": null + }, + { + "id": "f83d1000-9fe5-4ced-9c10-587525b2a9e7", + "value": "98528.296", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:03.26+02:00", + "till_date": "2019-09-29T19:30:03.26+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.925+02:00", + "update_date": null + }, + { + "id": "e2d50392-2d67-4324-add5-dd5c566ba826", + "value": "98532.796", + "value_type": "pressure", + "from_date": "2019-09-29T19:30:03.835+02:00", + "till_date": "2019-09-29T19:30:03.835+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:01.925+02:00", + "update_date": null + } +] diff --git a/test/goldenfiles/json/goldenSensors.json b/test/goldenfiles/json/goldenSensors.json index 05313d2..95549c5 100644 --- a/test/goldenfiles/json/goldenSensors.json +++ b/test/goldenfiles/json/goldenSensors.json @@ -1,35 +1,7 @@ [ { - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "sensor_name": "DS18B20-rechts", - "sensor_location": "Wohnzimmer", - "wire_id": "28-02131dbffeaa", - "i2c_bus": null, - "i2c_address": null, - "gpio_number": "GPIO14", - "sensor_model": "DS18B20", - "sensor_enabled": false, - "sensor_last_contact": null, - "device_id": "1efc3092-871e-4ac4-b0d4-ea5e5715460d", - "creation_date": "2019-03-06T20:02:48.839304+01:00" - }, - { - "sensor_id": "84eac248-6927-4db6-b6f9-7891ce2d301e", - "sensor_name": "DS18B20-links", - "sensor_location": "Wohnzimmer", - "wire_id": "28-01131646f11d", - "i2c_bus": null, - "i2c_address": null, - "gpio_number": "GPIO14", - "sensor_model": "DS18B20", - "sensor_enabled": false, - "sensor_last_contact": null, - "device_id": "1efc3092-871e-4ac4-b0d4-ea5e5715460d", - "creation_date": "2019-03-06T20:03:08.215219+01:00" - }, - { - "sensor_id": "4c1a4549-483f-44de-9ce0-459b577e6244", - "sensor_name": "BME280", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "sensor_name": "wetter-station", "sensor_location": "", "wire_id": null, "i2c_bus": 1, @@ -38,7 +10,7 @@ "sensor_model": "BME280", "sensor_enabled": true, "sensor_last_contact": null, - "device_id": "1efc3092-871e-4ac4-b0d4-ea5e5715460d", - "creation_date": "2019-06-30T13:42:24.089319+02:00" + "device_id": "19343609-c363-4992-ac97-124229ced640", + "creation_date": "2019-09-29T18:14:35.207+02:00" } -] \ No newline at end of file +] diff --git a/test/goldenfiles/json/goldenTemperatures.json b/test/goldenfiles/json/goldenTemperatures.json deleted file mode 100644 index 85593bd..0000000 --- a/test/goldenfiles/json/goldenTemperatures.json +++ /dev/null @@ -1,142 +0,0 @@ -[ - { - "id": "f94bb22a-d896-4bf7-bb48-74acd9211698", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:20.409105+02:00", - "till_date": "2019-08-23T20:38:21.369122+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.839308+02:00" - }, - { - "id": "4bf1f15f-2175-454d-b711-7642600437e4", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:22.249136+02:00", - "till_date": "2019-08-23T20:38:22.249137+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "8e7653a4-c9c6-418c-8acb-73e73023cad2", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:23.289123+02:00", - "till_date": "2019-08-23T20:38:23.289124+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "4dd27ac3-ec52-4453-9391-2f8483574161", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:24.16919+02:00", - "till_date": "2019-08-23T20:38:24.169192+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "0e5ccd47-3ca0-4fe1-875b-a248790d44df", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:25.209098+02:00", - "till_date": "2019-08-23T20:38:25.2091+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "9de64ca1-b4bd-4a0b-a750-1f751eb36031", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:26.169175+02:00", - "till_date": "2019-08-23T20:38:27.049148+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "8c952afc-6824-4b06-bfd0-16a0d8c5fc80", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:28.089115+02:00", - "till_date": "2019-08-23T20:38:28.089116+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "780c1008-fb17-494b-9c61-e0a34245d63c", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:28.969102+02:00", - "till_date": "2019-08-23T20:38:28.969104+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "b206b39d-9f80-4ba8-bb6b-d171abc3c458", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:30.009139+02:00", - "till_date": "2019-08-23T20:38:30.969136+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "4d381d84-a56c-4bc8-89c7-ea41b2432eaf", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:31.929108+02:00", - "till_date": "2019-08-23T20:38:38.569141+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "07ce5f6c-d860-448e-98cd-b390bdcf63b3", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:39.529164+02:00", - "till_date": "2019-08-23T20:38:40.569106+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:41:05.347223+02:00" - }, - { - "id": "18145034-237e-4066-a998-0dd1b4a0a3b4", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:41.529216+02:00", - "till_date": "2019-08-23T20:38:41.529217+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "56794741-0758-401b-8697-e42998a53d2d", - "value": "25", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:42.489113+02:00", - "till_date": "2019-08-23T20:38:42.489114+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": null - }, - { - "id": "7dbf1aa5-a122-4ba7-8444-fc7aac22246f", - "value": "25.5", - "value_type": "temperature", - "from_date": "2019-08-23T20:38:43.369131+02:00", - "till_date": "2019-08-23T20:46:04.409158+02:00", - "sensor_id": "efcd755e-82d1-4789-a50b-355b8735b8d8", - "creation_date": "2019-08-23T20:41:05.40881+02:00", - "update_date": "2019-08-23T20:46:05.341739+02:00" - } -] \ No newline at end of file diff --git a/test/goldenfiles/json/goldenTemperaturesUncompressedNotRounded.json b/test/goldenfiles/json/goldenTemperaturesUncompressedNotRounded.json new file mode 100644 index 0000000..6151970 --- /dev/null +++ b/test/goldenfiles/json/goldenTemperaturesUncompressedNotRounded.json @@ -0,0 +1,112 @@ +[ + { + "id": "63d546fe-4e27-4816-8e8c-cd16026cf079", + "value": "22.040000915527344", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:12.887+02:00", + "till_date": "2019-09-29T19:26:12.887+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.352+02:00", + "update_date": null + }, + { + "id": "ac3dddda-a669-4215-8174-42eaa3af741b", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:13.312+02:00", + "till_date": "2019-09-29T19:26:13.312+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "0031e9f2-5795-4a03-b1dd-a5d9b4c7f8ae", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:13.848+02:00", + "till_date": "2019-09-29T19:26:13.848+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "2ebc3339-974e-4a8f-bec1-531f9045ffe6", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:14.381+02:00", + "till_date": "2019-09-29T19:26:14.382+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "dfa35a46-803b-4c21-9cbc-092efc8d3646", + "value": "22.059999465942383", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:14.923+02:00", + "till_date": "2019-09-29T19:26:14.923+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "ce284f94-6032-467a-804d-34f7dc47ffcb", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:15.472+02:00", + "till_date": "2019-09-29T19:26:15.472+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "9926b8e7-2092-48c7-9906-856af2fa7251", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:16.001+02:00", + "till_date": "2019-09-29T19:26:16.001+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "9170f2e0-c6aa-4c75-95dc-d1f129df541f", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:16.591+02:00", + "till_date": "2019-09-29T19:26:16.591+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "ebce8428-d414-4ed2-98c1-2f3b8b45dd0b", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:17.124+02:00", + "till_date": "2019-09-29T19:26:17.124+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "58e55045-33c6-4122-a2d9-b5bc12059b77", + "value": "22.059999465942383", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:17.679+02:00", + "till_date": "2019-09-29T19:26:17.679+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "1df7d65b-149c-46f5-a377-5d9ad399f471", + "value": "22.049999237060547", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:18.291+02:00", + "till_date": "2019-09-29T19:26:18.291+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + } +] diff --git a/test/goldenfiles/json/goldenTemperaturesUncompressedRounded.json b/test/goldenfiles/json/goldenTemperaturesUncompressedRounded.json new file mode 100644 index 0000000..1a289ea --- /dev/null +++ b/test/goldenfiles/json/goldenTemperaturesUncompressedRounded.json @@ -0,0 +1,112 @@ +[ + { + "id": "63d546fe-4e27-4816-8e8c-cd16026cf079", + "value": "22.040", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:12.887+02:00", + "till_date": "2019-09-29T19:26:12.887+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.352+02:00", + "update_date": null + }, + { + "id": "ac3dddda-a669-4215-8174-42eaa3af741b", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:13.312+02:00", + "till_date": "2019-09-29T19:26:13.312+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "0031e9f2-5795-4a03-b1dd-a5d9b4c7f8ae", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:13.848+02:00", + "till_date": "2019-09-29T19:26:13.848+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "2ebc3339-974e-4a8f-bec1-531f9045ffe6", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:14.381+02:00", + "till_date": "2019-09-29T19:26:14.382+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "dfa35a46-803b-4c21-9cbc-092efc8d3646", + "value": "22.059", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:14.923+02:00", + "till_date": "2019-09-29T19:26:14.923+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "ce284f94-6032-467a-804d-34f7dc47ffcb", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:15.472+02:00", + "till_date": "2019-09-29T19:26:15.472+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "9926b8e7-2092-48c7-9906-856af2fa7251", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:16.001+02:00", + "till_date": "2019-09-29T19:26:16.001+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "9170f2e0-c6aa-4c75-95dc-d1f129df541f", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:16.591+02:00", + "till_date": "2019-09-29T19:26:16.591+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "ebce8428-d414-4ed2-98c1-2f3b8b45dd0b", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:17.124+02:00", + "till_date": "2019-09-29T19:26:17.124+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "58e55045-33c6-4122-a2d9-b5bc12059b77", + "value": "22.059", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:17.679+02:00", + "till_date": "2019-09-29T19:26:17.679+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + }, + { + "id": "1df7d65b-149c-46f5-a377-5d9ad399f471", + "value": "22.049", + "value_type": "temperature", + "from_date": "2019-09-29T19:26:18.291+02:00", + "till_date": "2019-09-29T19:26:18.291+02:00", + "sensor_id": "d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6", + "creation_date": "2019-09-29T19:44:02.353+02:00", + "update_date": null + } +] diff --git a/test/goldenfiles/xml/goldenHumiditiesUncompressedNotRounded.xml b/test/goldenfiles/xml/goldenHumiditiesUncompressedNotRounded.xml new file mode 100644 index 0000000..b686a5e --- /dev/null +++ b/test/goldenfiles/xml/goldenHumiditiesUncompressedNotRounded.xml @@ -0,0 +1,101 @@ + + + 7d3286c3-3f32-40e7-9656-f587de5d5341 + 58.55859375 + humidity + 2019-09-29T19:32:33.862+02:00 + 2019-09-29T19:32:33.862+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + + 9890f244-9854-4a78-826e-124dc7b179af + 58.55859375 + humidity + 2019-09-29T19:32:35.521+02:00 + 2019-09-29T19:32:35.521+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + + 40124dc7-a6af-4864-8566-7c2925b4471b + 58.525390625 + humidity + 2019-09-29T19:32:36.186+02:00 + 2019-09-29T19:32:36.186+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + + 92bfde08-0f2a-4b6e-b227-44f341f35446 + 58.5068359375 + humidity + 2019-09-29T19:32:36.881+02:00 + 2019-09-29T19:32:36.882+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + + c22e278e-f6fb-4755-8bf3-7a7313816abf + 58.470703125 + humidity + 2019-09-29T19:32:37.485+02:00 + 2019-09-29T19:32:37.485+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + + c0468792-72c2-45f6-a9f4-c798f9307bc2 + 58.4384765625 + humidity + 2019-09-29T19:32:38.073+02:00 + 2019-09-29T19:32:38.073+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + + 9afab5be-7502-47fc-a5b2-cf8bd1a62054 + 58.4384765625 + humidity + 2019-09-29T19:32:38.675+02:00 + 2019-09-29T19:32:38.676+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + + 3b8560f9-9536-47e3-839e-8351ffecbfcf + 58.4384765625 + humidity + 2019-09-29T19:32:39.258+02:00 + 2019-09-29T19:32:39.259+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + + 4afcb00e-4035-443d-8495-535932d45623 + 58.4375 + humidity + 2019-09-29T19:32:39.839+02:00 + 2019-09-29T19:32:39.839+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + + 132e91ec-9b06-4792-a8c0-b82ccdcbce16 + 58.447265625 + humidity + 2019-09-29T19:32:40.503+02:00 + 2019-09-29T19:32:40.504+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + + 5aba6643-3fe3-422f-aa40-2d98591d9a82 + 58.46875 + humidity + 2019-09-29T19:32:41.187+02:00 + 2019-09-29T19:32:41.188+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.863+02:00 + + \ No newline at end of file diff --git a/test/goldenfiles/xml/goldenMeasuredValuesUncompressedNotRounded.xml b/test/goldenfiles/xml/goldenMeasuredValuesUncompressedNotRounded.xml new file mode 100644 index 0000000..341f750 --- /dev/null +++ b/test/goldenfiles/xml/goldenMeasuredValuesUncompressedNotRounded.xml @@ -0,0 +1,299 @@ + + + 7d3286c3-3f32-40e7-9656-f587de5d5341 + 58.55859375 + humidity + 2019-09-29T19:32:33.862+02:00 + 2019-09-29T19:32:33.862+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + 9890f244-9854-4a78-826e-124dc7b179af + 58.55859375 + humidity + 2019-09-29T19:32:35.521+02:00 + 2019-09-29T19:32:35.521+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + 40124dc7-a6af-4864-8566-7c2925b4471b + 58.525390625 + humidity + 2019-09-29T19:32:36.186+02:00 + 2019-09-29T19:32:36.186+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + 92bfde08-0f2a-4b6e-b227-44f341f35446 + 58.5068359375 + humidity + 2019-09-29T19:32:36.881+02:00 + 2019-09-29T19:32:36.882+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + c22e278e-f6fb-4755-8bf3-7a7313816abf + 58.470703125 + humidity + 2019-09-29T19:32:37.485+02:00 + 2019-09-29T19:32:37.485+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + c0468792-72c2-45f6-a9f4-c798f9307bc2 + 58.4384765625 + humidity + 2019-09-29T19:32:38.073+02:00 + 2019-09-29T19:32:38.073+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + 9afab5be-7502-47fc-a5b2-cf8bd1a62054 + 58.4384765625 + humidity + 2019-09-29T19:32:38.675+02:00 + 2019-09-29T19:32:38.676+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + 3b8560f9-9536-47e3-839e-8351ffecbfcf + 58.4384765625 + humidity + 2019-09-29T19:32:39.258+02:00 + 2019-09-29T19:32:39.259+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + 4afcb00e-4035-443d-8495-535932d45623 + 58.4375 + humidity + 2019-09-29T19:32:39.839+02:00 + 2019-09-29T19:32:39.839+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + 132e91ec-9b06-4792-a8c0-b82ccdcbce16 + 58.447265625 + humidity + 2019-09-29T19:32:40.503+02:00 + 2019-09-29T19:32:40.504+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + 5aba6643-3fe3-422f-aa40-2d98591d9a82 + 58.46875 + humidity + 2019-09-29T19:32:41.187+02:00 + 2019-09-29T19:32:41.188+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + c18c918e-180b-40ea-8509-b37a2d19c1b8 + 98527.1015625 + pressure + 2019-09-29T19:29:56.579+02:00 + 2019-09-29T19:29:56.579+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.905+02:00 + + + 31269000-f855-472c-b607-5ef7dbcc2d3b + 98531.296875 + pressure + 2019-09-29T19:29:58.02+02:00 + 2019-09-29T19:29:58.02+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + 7df14e44-185e-43a4-ba67-c86561bf19a0 + 98526.8984375 + pressure + 2019-09-29T19:29:58.886+02:00 + 2019-09-29T19:29:58.886+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + e63f2d08-cbbe-43c6-80f6-70e504aebce5 + 98530.5 + pressure + 2019-09-29T19:29:59.657+02:00 + 2019-09-29T19:29:59.658+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + 1ce5e316-8ae5-4ddb-ae6c-5b2b6c9fd83c + 98529.796875 + pressure + 2019-09-29T19:30:00.301+02:00 + 2019-09-29T19:30:00.302+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + b002af5d-3ef0-4608-b6c6-2745be36c7f0 + 98530.1015625 + pressure + 2019-09-29T19:30:00.878+02:00 + 2019-09-29T19:30:00.879+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + e0753df7-865d-41ec-a2fc-58692c0e6a12 + 98530.3984375 + pressure + 2019-09-29T19:30:01.513+02:00 + 2019-09-29T19:30:01.513+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + a46d74d4-dce8-497d-a08a-a609d2ed1238 + 98532.5 + pressure + 2019-09-29T19:30:02.095+02:00 + 2019-09-29T19:30:02.095+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + 2a17ada0-caad-42d3-b12e-9ef432d79e59 + 98532.203125 + pressure + 2019-09-29T19:30:02.643+02:00 + 2019-09-29T19:30:02.643+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + f83d1000-9fe5-4ced-9c10-587525b2a9e7 + 98528.296875 + pressure + 2019-09-29T19:30:03.26+02:00 + 2019-09-29T19:30:03.26+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + e2d50392-2d67-4324-add5-dd5c566ba826 + 98532.796875 + pressure + 2019-09-29T19:30:03.835+02:00 + 2019-09-29T19:30:03.835+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + 63d546fe-4e27-4816-8e8c-cd16026cf079 + 22.040000915527344 + temperature + 2019-09-29T19:26:12.887+02:00 + 2019-09-29T19:26:12.887+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + ac3dddda-a669-4215-8174-42eaa3af741b + 22.049999237060547 + temperature + 2019-09-29T19:26:13.312+02:00 + 2019-09-29T19:26:13.312+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.906+02:00 + + + 0031e9f2-5795-4a03-b1dd-a5d9b4c7f8ae + 22.049999237060547 + temperature + 2019-09-29T19:26:13.848+02:00 + 2019-09-29T19:26:13.848+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.907+02:00 + + + 2ebc3339-974e-4a8f-bec1-531f9045ffe6 + 22.049999237060547 + temperature + 2019-09-29T19:26:14.381+02:00 + 2019-09-29T19:26:14.382+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.907+02:00 + + + dfa35a46-803b-4c21-9cbc-092efc8d3646 + 22.059999465942383 + temperature + 2019-09-29T19:26:14.923+02:00 + 2019-09-29T19:26:14.923+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.907+02:00 + + + ce284f94-6032-467a-804d-34f7dc47ffcb + 22.049999237060547 + temperature + 2019-09-29T19:26:15.472+02:00 + 2019-09-29T19:26:15.472+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.907+02:00 + + + 9926b8e7-2092-48c7-9906-856af2fa7251 + 22.049999237060547 + temperature + 2019-09-29T19:26:16.001+02:00 + 2019-09-29T19:26:16.001+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.907+02:00 + + + 9170f2e0-c6aa-4c75-95dc-d1f129df541f + 22.049999237060547 + temperature + 2019-09-29T19:26:16.591+02:00 + 2019-09-29T19:26:16.591+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.907+02:00 + + + ebce8428-d414-4ed2-98c1-2f3b8b45dd0b + 22.049999237060547 + temperature + 2019-09-29T19:26:17.124+02:00 + 2019-09-29T19:26:17.124+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.907+02:00 + + + 58e55045-33c6-4122-a2d9-b5bc12059b77 + 22.059999465942383 + temperature + 2019-09-29T19:26:17.679+02:00 + 2019-09-29T19:26:17.679+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.907+02:00 + + + 1df7d65b-149c-46f5-a377-5d9ad399f471 + 22.049999237060547 + temperature + 2019-09-29T19:26:18.291+02:00 + 2019-09-29T19:26:18.291+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.907+02:00 + + \ No newline at end of file diff --git a/test/goldenfiles/xml/goldenPressuresUncompressedNotRounded.xml b/test/goldenfiles/xml/goldenPressuresUncompressedNotRounded.xml new file mode 100644 index 0000000..d67ecf9 --- /dev/null +++ b/test/goldenfiles/xml/goldenPressuresUncompressedNotRounded.xml @@ -0,0 +1,101 @@ + + + c18c918e-180b-40ea-8509-b37a2d19c1b8 + 98527.1015625 + pressure + 2019-09-29T19:29:56.579+02:00 + 2019-09-29T19:29:56.579+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.941+02:00 + + + 31269000-f855-472c-b607-5ef7dbcc2d3b + 98531.296875 + pressure + 2019-09-29T19:29:58.02+02:00 + 2019-09-29T19:29:58.02+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.941+02:00 + + + 7df14e44-185e-43a4-ba67-c86561bf19a0 + 98526.8984375 + pressure + 2019-09-29T19:29:58.886+02:00 + 2019-09-29T19:29:58.886+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.941+02:00 + + + e63f2d08-cbbe-43c6-80f6-70e504aebce5 + 98530.5 + pressure + 2019-09-29T19:29:59.657+02:00 + 2019-09-29T19:29:59.658+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.941+02:00 + + + 1ce5e316-8ae5-4ddb-ae6c-5b2b6c9fd83c + 98529.796875 + pressure + 2019-09-29T19:30:00.301+02:00 + 2019-09-29T19:30:00.302+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.941+02:00 + + + b002af5d-3ef0-4608-b6c6-2745be36c7f0 + 98530.1015625 + pressure + 2019-09-29T19:30:00.878+02:00 + 2019-09-29T19:30:00.879+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.941+02:00 + + + e0753df7-865d-41ec-a2fc-58692c0e6a12 + 98530.3984375 + pressure + 2019-09-29T19:30:01.513+02:00 + 2019-09-29T19:30:01.513+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.942+02:00 + + + a46d74d4-dce8-497d-a08a-a609d2ed1238 + 98532.5 + pressure + 2019-09-29T19:30:02.095+02:00 + 2019-09-29T19:30:02.095+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.942+02:00 + + + 2a17ada0-caad-42d3-b12e-9ef432d79e59 + 98532.203125 + pressure + 2019-09-29T19:30:02.643+02:00 + 2019-09-29T19:30:02.643+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.942+02:00 + + + f83d1000-9fe5-4ced-9c10-587525b2a9e7 + 98528.296875 + pressure + 2019-09-29T19:30:03.26+02:00 + 2019-09-29T19:30:03.26+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.942+02:00 + + + e2d50392-2d67-4324-add5-dd5c566ba826 + 98532.796875 + pressure + 2019-09-29T19:30:03.835+02:00 + 2019-09-29T19:30:03.835+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:01.942+02:00 + + \ No newline at end of file diff --git a/test/goldenfiles/xml/goldenTemperaturesUncompressedNotRounded.xml b/test/goldenfiles/xml/goldenTemperaturesUncompressedNotRounded.xml new file mode 100644 index 0000000..75491bf --- /dev/null +++ b/test/goldenfiles/xml/goldenTemperaturesUncompressedNotRounded.xml @@ -0,0 +1,101 @@ + + + 63d546fe-4e27-4816-8e8c-cd16026cf079 + 22.040000915527344 + temperature + 2019-09-29T19:26:12.887+02:00 + 2019-09-29T19:26:12.887+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.37+02:00 + + + ac3dddda-a669-4215-8174-42eaa3af741b + 22.049999237060547 + temperature + 2019-09-29T19:26:13.312+02:00 + 2019-09-29T19:26:13.312+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.37+02:00 + + + 0031e9f2-5795-4a03-b1dd-a5d9b4c7f8ae + 22.049999237060547 + temperature + 2019-09-29T19:26:13.848+02:00 + 2019-09-29T19:26:13.848+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.37+02:00 + + + 2ebc3339-974e-4a8f-bec1-531f9045ffe6 + 22.049999237060547 + temperature + 2019-09-29T19:26:14.381+02:00 + 2019-09-29T19:26:14.382+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.37+02:00 + + + dfa35a46-803b-4c21-9cbc-092efc8d3646 + 22.059999465942383 + temperature + 2019-09-29T19:26:14.923+02:00 + 2019-09-29T19:26:14.923+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.37+02:00 + + + ce284f94-6032-467a-804d-34f7dc47ffcb + 22.049999237060547 + temperature + 2019-09-29T19:26:15.472+02:00 + 2019-09-29T19:26:15.472+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.37+02:00 + + + 9926b8e7-2092-48c7-9906-856af2fa7251 + 22.049999237060547 + temperature + 2019-09-29T19:26:16.001+02:00 + 2019-09-29T19:26:16.001+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.37+02:00 + + + 9170f2e0-c6aa-4c75-95dc-d1f129df541f + 22.049999237060547 + temperature + 2019-09-29T19:26:16.591+02:00 + 2019-09-29T19:26:16.591+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.371+02:00 + + + ebce8428-d414-4ed2-98c1-2f3b8b45dd0b + 22.049999237060547 + temperature + 2019-09-29T19:26:17.124+02:00 + 2019-09-29T19:26:17.124+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.371+02:00 + + + 58e55045-33c6-4122-a2d9-b5bc12059b77 + 22.059999465942383 + temperature + 2019-09-29T19:26:17.679+02:00 + 2019-09-29T19:26:17.679+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.371+02:00 + + + 1df7d65b-149c-46f5-a377-5d9ad399f471 + 22.049999237060547 + temperature + 2019-09-29T19:26:18.291+02:00 + 2019-09-29T19:26:18.291+02:00 + d7fc0e1f-9d5a-45c7-bc01-e85bd1b610c6 + 2019-09-29T19:44:02.371+02:00 + + \ No newline at end of file