Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing failing TestXrayWatch testcases #1010

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading