Skip to content

Conversation

@srijan-deepsource
Copy link
Contributor

No description provided.

@srijan-deepsource srijan-deepsource marked this pull request as ready for review May 22, 2025 07:47
@srijan-deepsource
Copy link
Contributor Author

image

🎊

Comment on lines 117 to 126
if r.Method != "POST" {
t.Errorf("Expected POST request, got %s", r.Method)
}
expectedPath := fmt.Sprintf("/services/oidc/%s/", testProvider)
if r.URL.Path != expectedPath {
t.Errorf("Expected path '%s', got '%s'", expectedPath, r.URL.Path)
}
if auth := r.Header.Get("Authorization"); auth != "Bearer "+testOidcToken {
t.Errorf("Expected Authorization header 'Bearer %s', got '%s'", testOidcToken, auth)
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as failure cases

Resolved issues in utils/fetch_oidc_token_test.go with DeepSource Autofix
@srijan-deepsource srijan-deepsource merged commit f14576d into master May 22, 2025
3 of 4 checks passed
@srijan-deepsource srijan-deepsource deleted the eng-2483 branch May 22, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants