From 2c7acfa78fdb7fd401a88873673cab96c00afc15 Mon Sep 17 00:00:00 2001 From: EduardGomezEscandell Date: Mon, 9 Oct 2023 17:10:57 +0200 Subject: [PATCH] Create fixtures and golden files for LandscapeEnable --- .../landscape.conf | 2 ++ .../error_when_the_file_cannot_be_parsed/landscape.conf | 3 +++ .../landscape.conf | 2 ++ .../system/testdata/TestLandscapeEnable/golden/success | 3 +++ .../golden/success_overriding_computer_title | 3 +++ .../system/testdata/TestLandscapeEnable/success/landscape.conf | 2 ++ .../success_overriding_computer_title/landscape.conf | 3 +++ 7 files changed, 18 insertions(+) create mode 100644 wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_config_file_cannot_be_written/landscape.conf create mode 100644 wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_file_cannot_be_parsed/landscape.conf create mode 100644 wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_landscape-config_command_fails/landscape.conf create mode 100644 wsl-pro-service/internal/system/testdata/TestLandscapeEnable/golden/success create mode 100644 wsl-pro-service/internal/system/testdata/TestLandscapeEnable/golden/success_overriding_computer_title create mode 100644 wsl-pro-service/internal/system/testdata/TestLandscapeEnable/success/landscape.conf create mode 100644 wsl-pro-service/internal/system/testdata/TestLandscapeEnable/success_overriding_computer_title/landscape.conf diff --git a/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_config_file_cannot_be_written/landscape.conf b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_config_file_cannot_be_written/landscape.conf new file mode 100644 index 000000000..41d49280c --- /dev/null +++ b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_config_file_cannot_be_written/landscape.conf @@ -0,0 +1,2 @@ +[client] +hello = world \ No newline at end of file diff --git a/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_file_cannot_be_parsed/landscape.conf b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_file_cannot_be_parsed/landscape.conf new file mode 100644 index 000000000..b600b3a46 --- /dev/null +++ b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_file_cannot_be_parsed/landscape.conf @@ -0,0 +1,3 @@ +{ + "message": "Wait a second, this is not an ini file!" +} \ No newline at end of file diff --git a/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_landscape-config_command_fails/landscape.conf b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_landscape-config_command_fails/landscape.conf new file mode 100644 index 000000000..41d49280c --- /dev/null +++ b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/error_when_the_landscape-config_command_fails/landscape.conf @@ -0,0 +1,2 @@ +[client] +hello = world \ No newline at end of file diff --git a/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/golden/success b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/golden/success new file mode 100644 index 000000000..1a9966055 --- /dev/null +++ b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/golden/success @@ -0,0 +1,3 @@ +[client] +hello = world +computer_title = TEST_DISTRO diff --git a/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/golden/success_overriding_computer_title b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/golden/success_overriding_computer_title new file mode 100644 index 000000000..1a9966055 --- /dev/null +++ b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/golden/success_overriding_computer_title @@ -0,0 +1,3 @@ +[client] +hello = world +computer_title = TEST_DISTRO diff --git a/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/success/landscape.conf b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/success/landscape.conf new file mode 100644 index 000000000..41d49280c --- /dev/null +++ b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/success/landscape.conf @@ -0,0 +1,2 @@ +[client] +hello = world \ No newline at end of file diff --git a/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/success_overriding_computer_title/landscape.conf b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/success_overriding_computer_title/landscape.conf new file mode 100644 index 000000000..974df0251 --- /dev/null +++ b/wsl-pro-service/internal/system/testdata/TestLandscapeEnable/success_overriding_computer_title/landscape.conf @@ -0,0 +1,3 @@ +[client] +computer_title = DEFAULT_COMPUTER_TITLE +hello = world