Skip to content

Commit 176b057

Browse files
authored
Disable CP1 for regional STS test (#21178)
1 parent 99ee242 commit 176b057

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sdk/azidentity/client_certificate_credential_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,12 @@ func TestClientCertificateCredential_Regional(t *testing.T) {
311311
if err != nil {
312312
t.Fatal(err)
313313
}
314+
315+
// regional STS returns an error for CP1
316+
before := disableCP1
317+
defer func() { disableCP1 = before }()
318+
disableCP1 = true
319+
314320
cred, err := NewClientCertificateCredential(
315321
liveSP.tenantID, liveSP.clientID, cert, key, &ClientCertificateCredentialOptions{SendCertificateChain: true, ClientOptions: opts},
316322
)

0 commit comments

Comments
 (0)