Skip to content

Commit

Permalink
Disable CP1 for regional STS test (#21178)
Browse files Browse the repository at this point in the history
  • Loading branch information
chlowell authored Jul 17, 2023
1 parent 99ee242 commit 176b057
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdk/azidentity/client_certificate_credential_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,12 @@ func TestClientCertificateCredential_Regional(t *testing.T) {
if err != nil {
t.Fatal(err)
}

// regional STS returns an error for CP1
before := disableCP1
defer func() { disableCP1 = before }()
disableCP1 = true

cred, err := NewClientCertificateCredential(
liveSP.tenantID, liveSP.clientID, cert, key, &ClientCertificateCredentialOptions{SendCertificateChain: true, ClientOptions: opts},
)
Expand Down

0 comments on commit 176b057

Please sign in to comment.