Skip to content

Commit

Permalink
refactor error message - integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miryamfoiferCX committed Nov 25, 2024
1 parent 93c48d6 commit c3393d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func TestCreateScan_WithOnlyInvalidApikeyEnvVar_Fail(t *testing.T) {
}

err, _ := executeCommand(t, args...)
assert.Error(t, err, "Error validating scan types: Token decoding error: token contains an invalid number of segments")
assert.Error(t, err, "Error validating scan types: Token decoding error: token is malformed: token contains an invalid number of segments")
}

func TestCreateScan_WithOnlyInvalidApikeyFlag_Fail(t *testing.T) {
Expand All @@ -162,7 +162,7 @@ func TestCreateScan_WithOnlyInvalidApikeyFlag_Fail(t *testing.T) {
}

err, _ := executeCommand(t, args...)
assert.Error(t, err, "Error validating scan types: Token decoding error: token contains an invalid number of segments")
assert.Error(t, err, "Error validating scan types: Token decoding error: token is malformed: token contains an invalid number of segments")
}

func TestCreateScan_WithValidClientCredentialsFlag_Success(t *testing.T) {
Expand Down Expand Up @@ -215,7 +215,7 @@ func TestCreateScan_WithInvalidClientCredentialsFlag_Fail(t *testing.T) {
}

err, _ := executeCommand(t, args...)
assert.Error(t, err, "Error validating scan types: Token decoding error: token contains an invalid number of segments")
assert.Error(t, err, "Error validating scan types: Token decoding error: token is malformed: token contains an invalid number of segments")
}

func TestCreateScan_WithValidClientCredentialsEnvVars_Success(t *testing.T) {
Expand Down

0 comments on commit c3393d2

Please sign in to comment.