From c3393d27725d6f39b9590e1a4a6e293d0a05fe52 Mon Sep 17 00:00:00 2001 From: miryamfoiferCX Date: Tue, 26 Nov 2024 00:16:53 +0200 Subject: [PATCH] refactor error message - integration tests --- test/integration/scan_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/scan_test.go b/test/integration/scan_test.go index fe9956a9c..99cfa416f 100644 --- a/test/integration/scan_test.go +++ b/test/integration/scan_test.go @@ -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) { @@ -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) { @@ -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) {