Skip to content

Commit

Permalink
Merge branch 'dev' into centralized-config-implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalbe4 authored Aug 26, 2024
2 parents b3bbb14 + 322551d commit 135265b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/xraywatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 135265b

Please sign in to comment.