-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the code so we don't end up in an infinite loop in case API
returns invalid response or similar. Also add a test case for it.
- Loading branch information
Showing
4 changed files
with
84 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...zure_arm/_77777777_7777_7777_7777_777777777777_oauth2_token_PAGINATION_INFINITE_LOOP.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"expires_in":"3600","token_type":"Bearer","expires_on":"1111111111","not_before":"1111111111","resource":"https://management.core.windows.net/","access_token":"3333333333333333333333333333333333333333333333333333333"} |
53 changes: 53 additions & 0 deletions
53
...ptions_99999999_providers_Microsoft_Compute_virtualMachines_PAGINATION_INFINITE_LOOP.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"value": [ | ||
{ | ||
"properties": { | ||
"vmId": "CCEEBF63-E92B-4A50-9949-6E44BFC61D3F", | ||
"additionalCapabilities": { | ||
"ultraSSDEnabled": "False", | ||
"hibernationEnabled": "False" | ||
}, | ||
"hardwareProfile": { | ||
"vmSize": "Standard_A1" | ||
}, | ||
"storageProfile": { | ||
"imageReference": { | ||
"publisher": "OpenLogic", | ||
"offer": "CentOS", | ||
"sku": "7.3", | ||
"version": "latest" | ||
}, | ||
"osDisk": { | ||
"osType": "Linux", | ||
"name": "test-node-disk-1", | ||
"createOption": "FromImage", | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS", | ||
"id": "/subscriptions/99999999-9999-9999-9999-999999999999/resourceGroups/000000/providers/Microsoft.Compute/disks/test-node-disk-1" | ||
} | ||
}, | ||
"dataDisks": [] | ||
}, | ||
"osProfile": { | ||
"computerName": "test-node-1", | ||
"adminUsername": "user", | ||
"linuxConfiguration": { | ||
"disablePasswordAuthentication": false | ||
}, | ||
"secrets": [] | ||
}, | ||
"networkProfile": { | ||
"networkInterfaces": [] | ||
}, | ||
"provisioningState": "Running" | ||
}, | ||
"type": "Microsoft.Compute/virtualMachines", | ||
"location": "eastus", | ||
"tags": {}, | ||
"id": "/subscriptions/99999999-9999-9999-9999-999999999999/resourceGroups/000000/providers/Microsoft.Compute/virtualMachines/test-node-1", | ||
"name": "test-node-1" | ||
} | ||
], | ||
"nextLink": "https://management.azure.com:443/subscriptions/99999999-9999-9999-9999-999999999999/providers/Microsoft.Compute/virtualMachines?api-version=2021-11-01&$skiptoken=1!/Subscriptions/99999999-9999-9999-9999-999999999999/ResourceGroups/000000/VMs/DDFEBF64-E92B-4A50-9949-6E44BFC61D4G" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters