Skip to content

Commit bbb5d53

Browse files
authored
Update spring to enable live testing in sovereign clouds (Azure#29473)
* Fix for spring test in multi-cloud 20220615 * Fix for spring test in multi-cloud 20220615 * Fix for spring test in multi-cloud 20220615
1 parent 56692f6 commit bbb5d53

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

sdk/spring/spring-cloud-azure-test-eventhubs-binder/src/test/resources/application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ spring:
77
checkpoint-store:
88
account-name: ${STORAGE_ACCOUNT_TEST_EVENTHUB}
99
account-key: ${STORAGE_ACCOUNT_KEY_TEST_EVENTHUB}
10+
endpoint: ${PRIMARY_STORAGE_BLOB_ENDPOINT}
1011
stream:
1112
function:
1213
definition: consume;supply

sdk/spring/spring-cloud-azure-test-eventhubs-binder/test-resources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@
372372
"EVENTHUB_CONNECTION_STRING_TEST_EVENTHUB": {
373373
"type": "string",
374374
"value": "[listKeys(resourceId('Microsoft.EventHub/namespaces/authorizationRules', variables('eventHubsNamespaceName'), variables('eventHubsNamespaceKeyName')), '2017-04-01').primaryConnectionString]"
375+
},
376+
"PRIMARY_STORAGE_BLOB_ENDPOINT": {
377+
"type": "string",
378+
"value": "[reference(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2019-06-01').primaryEndpoints.blob]"
375379
}
376380
}
377381
}

sdk/spring/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ trigger: none
33
stages:
44
- template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
55
parameters:
6-
Clouds: 'Public'
6+
SupportedClouds: 'Public,UsGov,China'
77
TestResourceDirectories:
88
- spring/spring-cloud-azure-test-eventhubs-binder
99
- spring/spring-cloud-azure-test-servicebus-binder

0 commit comments

Comments
 (0)