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 --- .../functional/dashboard/import-stubs/workspaces-only.ferdium-data | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/functional/dashboard/import-stubs/workspaces-only.ferdium-data') diff --git a/tests/functional/dashboard/import-stubs/workspaces-only.ferdium-data b/tests/functional/dashboard/import-stubs/workspaces-only.ferdium-data index 13ea9c6..cf0fca0 100644 --- a/tests/functional/dashboard/import-stubs/workspaces-only.ferdium-data +++ b/tests/functional/dashboard/import-stubs/workspaces-only.ferdium-data @@ -8,19 +8,19 @@ "name": "workspace1", "order": 0, "services": [], - "data": "{\"name\":\"workspace1\"}" + "data": {"name":"workspace1"} }, { "name": "workspace2", "order": 0, "services": [], - "data": "{\"name\":\"workspace2\"}" + "data": {"name":"workspace2"} }, { "name": "workspace3", "order": 0, "services": [], - "data": "{\"name\":\"workspace3\"}" + "data": {"name":"workspace3"} } ] } -- cgit v1.2.3-54-g00ecf