You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Retry policy will always clone the *http.Request (#20843)
* Retry policy will always clone the *http.Request
This ensures that the entirety of the request is restored on retries.
* simplify test
* Handle more error codes when an RP isn't registered (#20848)
There's more than one error code returned from unregistered RPs.
* Add another non-standard error code for RP registration (#20860)
* Prep azcore v1.6.1 for release
Cherry-picked the following commits.
- a3b2c13
- 889be58
- 6879d7e
Copy file name to clipboardExpand all lines: sdk/azcore/arm/runtime/policy_register_rp_test.go
+26-8
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ import (
24
24
"github.com/stretchr/testify/require"
25
25
)
26
26
27
-
constrpUnregisteredResp=`{
27
+
constrpUnregisteredResp1=`{
28
28
"error":{
29
29
"code":"MissingSubscriptionRegistration",
30
30
"message":"The subscription registration is in 'Unregistered' state. The subscription must be registered to use namespace 'Microsoft.Storage'. See https://aka.ms/rps-not-found for how to register subscriptions.",
@@ -37,6 +37,19 @@ const rpUnregisteredResp = `{
37
37
}
38
38
}`
39
39
40
+
constrpUnregisteredResp2=`{
41
+
"error":{
42
+
"code":"MissingRegistrationForResourceProvider",
43
+
"message":"The subscription registration is in 'Unregistered' state. The subscription must be registered to use namespace 'Microsoft.Storage'. See https://aka.ms/rps-not-found for how to register subscriptions.",
44
+
"details":[{
45
+
"code":"MissingRegistrationForResourceProvider",
46
+
"target":"Microsoft.Storage",
47
+
"message":"The subscription registration is in 'Unregistered' state. The subscription must be registered to use namespace 'Microsoft.Storage'. See https://aka.ms/rps-not-found for how to register subscriptions."
48
+
}
49
+
]
50
+
}
51
+
}`
52
+
40
53
// some content was omitted here as it's not relevant
0 commit comments