From 0cf8bd0b03fd6b6a4d180cb594f7f2b201578c87 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Sun, 25 Aug 2024 14:10:18 +0300 Subject: [PATCH] updated tests with the new error message returned from the apis --- tests/xraywatch_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/xraywatch_test.go b/tests/xraywatch_test.go index 30d0f4e0c..e317ec63c 100644 --- a/tests/xraywatch_test.go +++ b/tests/xraywatch_test.go @@ -314,17 +314,17 @@ func testXrayWatchUpdateMissingWatch(t *testing.T) { paramsMissingWatch.Policies = []utils.AssignedPolicy{} err := testsXrayWatchService.Update(paramsMissingWatch) - assert.EqualError(t, err, "server response: 404 Not Found\n{\n \"error\": \"Failed to update Watch: Watch was not found\"\n}") + assert.EqualError(t, err, "server response: 404 Not Found") } func testXrayWatchDeleteMissingWatch(t *testing.T) { err := testsXrayWatchService.Delete("client-go-tests-watch-builds-missing") - assert.EqualError(t, err, "server response: 404 Not Found\n{\n \"error\": \"Failed to delete Watch: Watch was not found\"\n}") + assert.EqualError(t, err, "server response: 404 Not Found") } func testXrayWatchGetMissingWatch(t *testing.T) { _, err := testsXrayWatchService.Get("client-go-tests-watch-builds-missing") - assert.EqualError(t, err, "server response: 404 Not Found\n{\n \"error\": \"Watch was not found\"\n}") + assert.EqualError(t, err, "server response: 404 Not Found") } func validateWatchGeneralSettings(t *testing.T, params utils.WatchParams) {