Skip to content

Commit

Permalink
[storage] add DFS_STORAGE_CONNECTION_STRING to test-resource.json out…
Browse files Browse the repository at this point in the history
…put (Azure#13655)

* add DFS_STORAGE_CONNECTION_STRING to test-resource.json output

* cors wip

* wip: .only

* set DFS_SOFT_DELETE_ACCOUNT_* envs in playback mode
  • Loading branch information
ljian3377 authored Feb 8, 2021
1 parent ea1b3fc commit 1cdf789
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 131 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export const recorderEnvSetup: RecorderEnvironmentSetup = {
// Comment following line to skip user delegation key/SAS related cases in record and play
// which depends on this environment variable
DFS_ACCOUNT_TOKEN: `${mockAccountKey}`,
DFS_SOFT_DELETE_ACCOUNT_NAME: `${mockAccountName}`,
DFS_SOFT_DELETE_ACCOUNT_KEY: `${mockAccountKey}`,
DFS_SOFT_DELETE_ACCOUNT_SAS: `${mockAccountKey}`,
AZURE_CLIENT_ID: `${mockAccountKey}`,
AZURE_TENANT_ID: `${mockAccountKey}`,
AZURE_CLIENT_SECRET: `${mockAccountKey}`
Expand Down
24 changes: 24 additions & 0 deletions sdk/storage/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,26 @@
"containerDeleteRetentionPolicy": {
"enabled": true,
"days": 7
},
"cors": {
"corsRules": [
{
"allowedOrigins": ["*"],
"allowedMethods": [
"DELETE",
"GET",
"HEAD",
"MERGE",
"POST",
"OPTIONS",
"PUT",
"PATCH"
],
"maxAgeInSeconds": 86400,
"exposedHeaders": ["*"],
"allowedHeaders": ["*"]
}
]
}
}
}
Expand Down Expand Up @@ -399,6 +419,10 @@
"type": "string",
"value": "[concat('?', listAccountSas(variables('datalakeAccountNameTidy'), variables('storageApiVersion'), variables('accountSasProperties')).accountSasToken)]"
},
"DFS_STORAGE_CONNECTION_STRING": {
"type": "string",
"value": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('dataLakeAccountName'), ';AccountKey=', listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('dataLakeAccountName')), variables('storageApiVersion')).keys[0].value, ';EndpointSuffix=', parameters('storageEndpointSuffix'))]"
},
"DFS_SOFT_DELETE_ACCOUNT_NAME": {
"type": "string",
"value": "[variables('datalakeSoftDeleteAccountName')]"
Expand Down

0 comments on commit 1cdf789

Please sign in to comment.