@@ -342,7 +342,7 @@ public String getName() {
342
342
@ Test
343
343
public void lro200SucceededNoPoll () {
344
344
final String resourceEndpoint = "/resource/1" ;
345
- final String sampleVaultUpdateSucceededResponse = "{\" id\" :\" /subscriptions/### /resourceGroups/rg-weidxu/providers/Microsoft.KeyVault/vaults/v1weidxu\" ,\" name\" :\" v1weidxu\" ,\" type\" :\" Microsoft.KeyVault/vaults\" ,\" location\" :\" centralus\" ,\" tags\" :{},\" properties\" :{\" sku\" :{\" family\" :\" A\" ,\" name\" :\" standard\" },\" tenantId\" :\" ### \" ,\" accessPolicies\" :[],\" enabledForDeployment\" :false,\" vaultUri\" :\" https://v1weidxu.vault.azure.net/\" ,\" provisioningState\" :\" Succeeded\" }}" ;
345
+ final String sampleVaultUpdateSucceededResponse = "{\" id\" :\" /subscriptions/000 /resourceGroups/rg-weidxu/providers/Microsoft.KeyVault/vaults/v1weidxu\" ,\" name\" :\" v1weidxu\" ,\" type\" :\" Microsoft.KeyVault/vaults\" ,\" location\" :\" centralus\" ,\" tags\" :{},\" properties\" :{\" sku\" :{\" family\" :\" A\" ,\" name\" :\" standard\" },\" tenantId\" :\" 000 \" ,\" accessPolicies\" :[],\" enabledForDeployment\" :false,\" vaultUri\" :\" https://v1weidxu.vault.azure.net/\" ,\" provisioningState\" :\" Succeeded\" }}" ;
346
346
ResponseTransformer provisioningStateLroService = new ResponseTransformer () {
347
347
@ Override
348
348
public com .github .tomakehurst .wiremock .http .Response transform (Request request ,
@@ -416,7 +416,7 @@ public String getName() {
416
416
@ Test
417
417
public void lro201AsyncOperationSucceededNoPoll () {
418
418
final String resourceEndpoint = "/resource/1" ;
419
- final String sampleNicCreateSucceededResponse = "{\" name\" :\" nic4159682782\" ,\" id\" :\" /subscriptions/###/resourceGroups/javanwmrg59122/providers/Microsoft.Network/networkInterfaces/nic4159682782\" ,\" etag\" :\" W/\\ \" 92581fdf-b55d-4ca1-a1fa-9de0cf117b4f\\ \" \" ,\" location\" :\" eastus\" ,\" tags\" :{},\" properties\" :{\" provisioningState\" :\" Succeeded\" ,\" resourceGuid\" :\" e0a8ecd1-faa0-468c-8e30-411ca27417a1\" ,\" ipConfigurations\" :[{\" name\" :\" primary\" ,\" id\" :\" /subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/javanwmrg59122/providers/Microsoft.Network/networkInterfaces/nic4159682782/ipConfigurations/primary\" ,\" etag\" :\" W/\\ \" 92581fdf-b55d-4ca1-a1fa-9de0cf117b4f\\ \" \" ,\" type\" :\" Microsoft.Network/networkInterfaces/ipConfigurations\" ,\" properties\" :{\" provisioningState\" :\" Succeeded\" ,\" privateIPAddress\" :\" 10.0.0.6\" ,\" privateIPAllocationMethod\" :\" Dynamic\" ,\" subnet\" :{\" id\" :\" /subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/javanwmrg59122/providers/Microsoft.Network/virtualNetworks/neta3e8953331/subnets/subnet1\" },\" primary\" :true,\" privateIPAddressVersion\" :\" IPv4\" }}],\" dnsSettings\" :{\" dnsServers\" :[],\" appliedDnsServers\" :[],\" internalDomainNameSuffix\" :\" a4vv4vgg2cluvfhfgw43jtn2aa.bx.internal.cloudapp.net\" },\" enableAcceleratedNetworking\" :false,\" enableIPForwarding\" :false,\" hostedWorkloads\" :[],\" tapConfigurations\" :[]},\" type\" :\" Microsoft.Network/networkInterfaces\" }" ;
419
+ final String sampleNicCreateSucceededResponse = "{\" name\" :\" nic4159682782\" ,\" id\" :\" /subscriptions/000/resourceGroups/javanwmrg59122/providers/Microsoft.Network/networkInterfaces/nic4159682782\" ,\" etag\" :\" W/\\ \" 92581fdf-b55d-4ca1-a1fa-9de0cf117b4f\\ \" \" ,\" location\" :\" eastus\" ,\" tags\" :{},\" properties\" :{\" provisioningState\" :\" Succeeded\" ,\" resourceGuid\" :\" e0a8ecd1-faa0-468c-8e30-411ca27417a1\" ,\" ipConfigurations\" :[{\" name\" :\" primary\" ,\" id\" :\" /subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/javanwmrg59122/providers/Microsoft.Network/networkInterfaces/nic4159682782/ipConfigurations/primary\" ,\" etag\" :\" W/\\ \" 92581fdf-b55d-4ca1-a1fa-9de0cf117b4f\\ \" \" ,\" type\" :\" Microsoft.Network/networkInterfaces/ipConfigurations\" ,\" properties\" :{\" provisioningState\" :\" Succeeded\" ,\" privateIPAddress\" :\" 10.0.0.6\" ,\" privateIPAllocationMethod\" :\" Dynamic\" ,\" subnet\" :{\" id\" :\" /subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/javanwmrg59122/providers/Microsoft.Network/virtualNetworks/neta3e8953331/subnets/subnet1\" },\" primary\" :true,\" privateIPAddressVersion\" :\" IPv4\" }}],\" dnsSettings\" :{\" dnsServers\" :[],\" appliedDnsServers\" :[],\" internalDomainNameSuffix\" :\" a4vv4vgg2cluvfhfgw43jtn2aa.bx.internal.cloudapp.net\" },\" enableAcceleratedNetworking\" :false,\" enableIPForwarding\" :false,\" hostedWorkloads\" :[],\" tapConfigurations\" :[]},\" type\" :\" Microsoft.Network/networkInterfaces\" }" ;
420
420
ResponseTransformer provisioningStateLroService = new ResponseTransformer () {
421
421
@ Override
422
422
public com .github .tomakehurst .wiremock .http .Response transform (Request request ,
@@ -434,7 +434,7 @@ public com.github.tomakehurst.wiremock.http.Response transform(Request request,
434
434
// 201 response with provisioningState=Succeeded.
435
435
return new com .github .tomakehurst .wiremock .http .Response .Builder ()
436
436
.headers (new HttpHeaders (
437
- new HttpHeader ("Azure-AsyncOperation" , "https://management.azure.com/subscriptions/### /providers/Microsoft.Network/locations/eastus/operations/### " )))
437
+ new HttpHeader ("Azure-AsyncOperation" , "https://management.azure.com/subscriptions/000 /providers/Microsoft.Network/locations/eastus/operations/123 " )))
438
438
.body (sampleNicCreateSucceededResponse )
439
439
.status (201 )
440
440
.build ();
@@ -492,7 +492,7 @@ public String getName() {
492
492
@ Test
493
493
public void lro201SucceededNoPoll () {
494
494
final String resourceEndpoint = "/resource/1" ;
495
- final String sampleSearchServiceCreateSucceededResponse = "{\" id\" :\" /subscriptions/### /resourceGroups/rg86829b7a87d74/providers/Microsoft.Search/searchServices/ss3edfb54d\" ,\" name\" :\" ss3edfb54d\" ,\" type\" :\" Microsoft.Search/searchServices\" ,\" location\" :\" West US\" ,\" properties\" :{\" replicaCount\" :1,\" partitionCount\" :1,\" status\" :\" running\" ,\" statusDetails\" :\" \" ,\" provisioningState\" :\" succeeded\" ,\" hostingMode\" :\" Default\" ,\" publicNetworkAccess\" :\" Enabled\" ,\" networkRuleSet\" :{\" ipRules\" :[],\" bypass\" :\" None\" },\" privateEndpointConnections\" :[],\" sharedPrivateLinkResources\" :[]},\" sku\" :{\" name\" :\" free\" }}" ;
495
+ final String sampleSearchServiceCreateSucceededResponse = "{\" id\" :\" /subscriptions/000 /resourceGroups/rg86829b7a87d74/providers/Microsoft.Search/searchServices/ss3edfb54d\" ,\" name\" :\" ss3edfb54d\" ,\" type\" :\" Microsoft.Search/searchServices\" ,\" location\" :\" West US\" ,\" properties\" :{\" replicaCount\" :1,\" partitionCount\" :1,\" status\" :\" running\" ,\" statusDetails\" :\" \" ,\" provisioningState\" :\" succeeded\" ,\" hostingMode\" :\" Default\" ,\" publicNetworkAccess\" :\" Enabled\" ,\" networkRuleSet\" :{\" ipRules\" :[],\" bypass\" :\" None\" },\" privateEndpointConnections\" :[],\" sharedPrivateLinkResources\" :[]},\" sku\" :{\" name\" :\" free\" }}" ;
496
496
ResponseTransformer provisioningStateLroService = new ResponseTransformer () {
497
497
@ Override
498
498
public com .github .tomakehurst .wiremock .http .Response transform (Request request ,
@@ -510,7 +510,7 @@ public com.github.tomakehurst.wiremock.http.Response transform(Request request,
510
510
// 201 response with provisioningState=Succeeded.
511
511
return new com .github .tomakehurst .wiremock .http .Response .Builder ()
512
512
.headers (new HttpHeaders (
513
- new HttpHeader ("Location" , "https://management.azure.com/subscriptions/### /resourceGroups/rg86829b7a87d74/providers/Microsoft.Search/searchServices/ss3edfb54d" )))
513
+ new HttpHeader ("Location" , "https://management.azure.com/subscriptions/000 /resourceGroups/rg86829b7a87d74/providers/Microsoft.Search/searchServices/ss3edfb54d" )))
514
514
.body (sampleSearchServiceCreateSucceededResponse )
515
515
.status (201 )
516
516
.build ();
0 commit comments