Skip to content

Commit

Permalink
Updating error testing to match actual (expected) behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 3, 2025
1 parent 5fc5e44 commit d0f9f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func TestUnitApiClient_AzDOWorkloadIdentity_NoClientId(t *testing.T) {

// This is technically not possible with the current control flow but it's still worth testing for.
func TestUnitApiClient_AzDOWorkloadIdentity_NoAzDOServiceConnection(t *testing.T) {
expectedError := "the Azure DevOps service connection ID could not be found"
expectedError := "request URL is required for OIDC credential"

ctx := context.Background()
cfg := config.ProviderConfig{
Expand All @@ -187,7 +187,7 @@ func TestUnitApiClient_AzDOWorkloadIdentity_NoAzDOServiceConnection(t *testing.T

// This should fall through to base OIDC.
func TestUnitApiClient_AzDOWorkloadIdentity_NoOIDCToken(t *testing.T) {
expectedError := "request URL is required for OIDC credential"
expectedError := "could not obtain an OIDC request token for Azure DevOps Workload Identity Federation"

ctx := context.Background()
cfg := config.ProviderConfig{
Expand Down

0 comments on commit d0f9f83

Please sign in to comment.