Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/kosli/assertSnapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func run(out io.Writer, args []string) error {
if environmentData["compliant"].(bool) {
logger.Info("COMPLIANT")
} else {
return fmt.Errorf("INCOMPLIANT")
return fmt.Errorf("NON-COMPLIANT")
}

return nil
Expand Down
4 changes: 2 additions & 2 deletions cmd/kosli/assertSnapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ func (suite *AssertSnapshotCommandTestSuite) TestAssertSnapshotCmd() {
},
{
wantError: true,
name: "04 asserting a non compliant env results in INCOMPLIANT and non-zero exit",
name: "04 asserting a non compliant env results in NON-COMPLIANT and non-zero exit",
cmd: fmt.Sprintf(`assert snapshot %s %s`, suite.nonCompliantEnvName, suite.defaultKosliArguments),
additionalConfig: assertSnapshotTestConfig{
reportToEnv: true,
envName: suite.nonCompliantEnvName,
},
golden: "Error: INCOMPLIANT\n",
golden: "Error: NON-COMPLIANT\n",
},
{
wantError: false,
Expand Down
2 changes: 1 addition & 1 deletion cmd/kosli/getEnvironment.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func printEnvironmentAsTable(raw string, out io.Writer, page int) error {
if env["state"] != nil && env["state"].(bool) {
state = "COMPLIANT"
} else if env["state"] != nil {
state = "INCOMPLIANT"
state = "NON-COMPLIANT"
}

tags := env["tags"].(map[string]interface{})
Expand Down
Loading