Skip to content

Commit

Permalink
storage
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshith91 committed Jun 15, 2021
1 parent 04046de commit 5e75e1b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 21 additions & 0 deletions sdk/eventgrid/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
}
},
"variables": {
"storageApiVersion": "2019-04-01",
"storageQueueName": "eventgrid",
"apiVersion": "2020-04-01-preview",
"eventGridTopicName": "[concat(parameters('baseName'), 'topic')]",
"eventGridDomainName": "[concat(parameters('baseName'), 'domain')]",
Expand Down Expand Up @@ -46,6 +48,17 @@
"inputSchema": "CloudEventSchemaV1_0"
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "[variables('storageApiVersion')]",
"name": "[variables('storageQueueName')]",
"location": "[resourceGroup().location]",
"sku": {
"name": "Standard_RAGRS",
"tier": "Standard"
},
"kind": "StorageV2",
},
{
"type": "Microsoft.EventGrid/topics",
"apiVersion": "[variables('apiVersion')]",
Expand Down Expand Up @@ -122,6 +135,14 @@
"CUSTOM_SCHEMA_ACCESS_KEY": {
"type": "string",
"value": "[listKeys(resourceId('Microsoft.EventGrid/topics', variables('customeventTopicName')), variables('apiVersion')).key1]"
},
"AZURE_STORAGE_CONNECTION_STRING": {
"type": "string",
"value": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageQueueName')), variables('storageApiVersion')).keys[1].value]"
},
"STORAGE_QUEUE_NAME": {
"type": "string",
"value": "[reference(variables('storageQueueName'))]"
}
}
}
2 changes: 0 additions & 2 deletions sdk/eventgrid/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ stages:
MatrixReplace:
- TestSamples=.*/true
EnvVars:
AZURE_STORAGE_CONNECTION_STRING: $(python-storage-blob-connection-string)
AZURE_SUBSCRIPTION_ID: $(azure-subscription-id)
AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
EVENTGRID_SAS: $(python-sdk-test-eg-sas)
STORAGE_QUEUE_NAME: $(python-storage-queue-name)

0 comments on commit 5e75e1b

Please sign in to comment.