From a3b01c2dd24ccf1d2a4fa8c89df7c4c861fc52ac Mon Sep 17 00:00:00 2001 From: 0xCmdrKeen <98132670+0xCmdrKeen@users.noreply.github.com> Date: Tue, 17 Oct 2023 11:58:51 -0700 Subject: Fix bugs in data import from Ferdium app (#82) * Fixed misspelled field names * Fixed broken tests * Ensure service.settings and workspace.data are not JSON encoded twice * Accept both snake_case and camelCase input files * More tests for JSON fields * Add filename to assertion messages --- tests/functional/dashboard/import-stubs/services-only.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/functional/dashboard/import-stubs/services-only.json') diff --git a/tests/functional/dashboard/import-stubs/services-only.json b/tests/functional/dashboard/import-stubs/services-only.json index d95f3ef..c4a9147 100644 --- a/tests/functional/dashboard/import-stubs/services-only.json +++ b/tests/functional/dashboard/import-stubs/services-only.json @@ -9,7 +9,7 @@ "serviceId": "d6901fff-ec44-4251-93de-d7103ed9c44b", "name": "random-service-1", "recipeId": "random-service-1", - "settings": "{}", + "settings": "{\"isEnabled\":true}", "created_at": "2022-06-21 08:29:13", "updated_at": "2022-07-19 15:47:16" }, @@ -19,7 +19,7 @@ "serviceId": "d6901fff-ec44-4251-93de-d7103ed9c44b", "name": "random-service-1", "recipeId": "random-service-1", - "settings": "{}", + "settings": "{\"isEnabled\":true}", "created_at": "2022-06-21 08:29:13", "updated_at": "2022-07-19 15:47:16" }, @@ -29,7 +29,7 @@ "serviceId": "d6901fff-ec44-4251-93de-d7103ed9c44b", "name": "random-service-1", "recipeId": "random-service-1", - "settings": "{}", + "settings": "{\"isEnabled\":true}", "created_at": "2022-06-21 08:29:13", "updated_at": "2022-07-19 15:47:16" } -- cgit v1.2.3-54-g00ecf