diff --git a/tests/snapshots/TestCLICommands_atmos_validate_editorconfig.stderr.golden b/tests/snapshots/TestCLICommands_atmos_validate_editorconfig.stderr.golden new file mode 100644 index 000000000..e69de29bb diff --git a/tests/snapshots/TestCLICommands_atmos_validate_editorconfig.stdout.golden b/tests/snapshots/TestCLICommands_atmos_validate_editorconfig.stdout.golden new file mode 100644 index 000000000..db9cf1c1e --- /dev/null +++ b/tests/snapshots/TestCLICommands_atmos_validate_editorconfig.stdout.golden @@ -0,0 +1 @@ +No errors found diff --git a/tests/snapshots/TestCLICommands_atmos_validate_editorconfig_error.stderr.golden b/tests/snapshots/TestCLICommands_atmos_validate_editorconfig_error.stderr.golden new file mode 100644 index 000000000..effe1718a --- /dev/null +++ b/tests/snapshots/TestCLICommands_atmos_validate_editorconfig_error.stderr.golden @@ -0,0 +1,2 @@ + +2 errors found diff --git a/tests/snapshots/TestCLICommands_atmos_validate_editorconfig_error.stdout.golden b/tests/snapshots/TestCLICommands_atmos_validate_editorconfig_error.stdout.golden new file mode 100644 index 000000000..e36acb217 --- /dev/null +++ b/tests/snapshots/TestCLICommands_atmos_validate_editorconfig_error.stdout.golden @@ -0,0 +1,3 @@ +context.tf: + 267: Wrong amount of left-padding spaces(want multiple of 2) + 268: Wrong amount of left-padding spaces(want multiple of 2) diff --git a/tests/test-cases/validate-editorconfig.yaml b/tests/test-cases/validate-editorconfig.yaml index ed1602ba4..bba8240a7 100644 --- a/tests/test-cases/validate-editorconfig.yaml +++ b/tests/test-cases/validate-editorconfig.yaml @@ -1,6 +1,7 @@ tests: - name: atmos validate editorconfig enabled: true + snapshot: true description: "Ensure atmos CLI validates success case" workdir: "../examples/quick-start-simple/" command: "atmos" @@ -8,6 +9,7 @@ tests: - "validate" - "editorconfig" expect: + diff: [] stdout: - "No errors found" stderr: @@ -15,6 +17,7 @@ tests: exit_code: 0 - name: atmos validate editorconfig error enabled: true + snapshot: true description: "Ensure atmos CLI gives error during validation based on editorconfig" workdir: "../tests/fixtures/scenarios/editorconfig" command: "atmos" @@ -22,6 +25,7 @@ tests: - "validate" - "editorconfig" expect: + diff: [] stderr: - "2 errors found" exit_code: 1