Skip to content

Commit

Permalink
fixing unit tests for http server
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuf Kanchwala committed Mar 30, 2021
1 parent 6a7b26c commit 71126ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/http-server/webhook-scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ func TestUWebhooks(t *testing.T) {
logPath = response.Response.Result.Message
}

expectedLogPath := fmt.Sprintf("https://%v/k8s/webhooks/logs/705ab4f5-6393-11e8-b7cc-42010a800002", req.Host)
subLogPath := fmt.Sprintf("https://%v/k8s/webhooks/logs/705ab4f5-6393-11e8-b7cc-42010a800002", req.Host)
expectedLogPath := fmt.Sprintf("For more details please visit %q", subLogPath)

if logPath != expectedLogPath {
t.Errorf("Mismach Log path. Got: %v, expected: %v", logPath, expectedLogPath)
Expand Down

0 comments on commit 71126ca

Please sign in to comment.