Skip to content

Commit edf380f

Browse files
unit test cases
1 parent b4b15d1 commit edf380f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/commands/result_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ func TestIgnorePolicyWithNoPermission(t *testing.T) {
16611661
t.Fatalf("failed to copy output: %v", err) // Handle the error if io.Copy fails
16621662
}
16631663
output := buf.String()
1664-
assert.Assert(t, strings.Contains(output, "Warning: The --ignore-policy flag was not implemented because you don’t have the required permission. Only users with 'override-policy-management' permission can use this flag."), "'Ignore Policy flag omitted because you dont have permission' should not be present in the output")
1664+
assert.Assert(t, strings.Contains(output, "Warning: The --ignore-policy flag was not implemented because you don’t have the required permission."), "'Ignore Policy flag omitted because you dont have permission' should not be present in the output")
16651665
}
16661666

16671667
func TestIgnorePolicyWithPermission(t *testing.T) {
@@ -1695,5 +1695,5 @@ func TestIgnorePolicyWithPermission(t *testing.T) {
16951695
t.Fatalf("failed to copy output: %v", err) // Handle the error if io.Copy fails
16961696
}
16971697
output := buf.String()
1698-
assert.Assert(t, !strings.Contains(output, "Warning: The --ignore-policy flag was not implemented because you don’t have the required permission. Only users with 'override-policy-management' permission can use this flag."), "'Ignore Policy flag omitted because you dont have permission' should not be present in the output")
1698+
assert.Assert(t, !strings.Contains(output, "Warning: The --ignore-policy flag was not implemented because you don’t have the required permission."), "'Ignore Policy flag omitted because you dont have permission' should not be present in the output")
16991699
}

0 commit comments

Comments
 (0)