diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2024-05-29 23:34:28 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-29 23:34:28 +1000 |
| commit | 5258b10bb66aceb56a016dd2f3c8743e27993be5 (patch) | |
| tree | b0ec54f0e304f8b70f6db83059face64be49d587 /internal/suites/suite_cli_test.go | |
| parent | 010b7fa5e3df3b358bc7c94a8e585ae90e8caeea (diff) | |
fix(commands): validate exit status (#7364)
This fixes an issue where the exit status for the config validate command returns a 0 instead of 1.
Fixes #7262
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/suites/suite_cli_test.go')
| -rw-r--r-- | internal/suites/suite_cli_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/suites/suite_cli_test.go b/internal/suites/suite_cli_test.go index a33385909..df4ffb26c 100644 --- a/internal/suites/suite_cli_test.go +++ b/internal/suites/suite_cli_test.go @@ -88,7 +88,7 @@ func (s *CLISuite) TestShouldValidateConfig() { func (s *CLISuite) TestShouldFailValidateConfig() { output, err := s.Exec("authelia-backend", []string{"authelia", "validate-config", "--config=/config/invalid.yml"}) - s.NoError(err) + s.EqualError(err, "exit status 1") s.Contains(output, "failed to load configuration from file path(/config/invalid.yml) source: stat /config/invalid.yml: no such file or directory\n") } |
