Skip to content

Commit 79a6000

Browse files
authored
Enable file OAuth test cases (Azure#27627)
### Packages impacted by this PR ### Issues associated with this PR ### Describe the problem that is addressed by this PR ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
1 parent 2b191bd commit 79a6000

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sdk/storage/test-resources.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"authorizationApiVersion": "2018-01-01-preview",
7474
"blobDataContributorRoleId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe')]",
7575
"blobDataOwnerRoleId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/b7e6dc6d-f1e8-4753-8033-0f276bb0955b')]",
76+
"fileDataContributorRoleId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/69566ab7-960f-475b-8e7c-b3118f30c6bd')]",
7677
"encryption": {
7778
"services": {
7879
"file": {
@@ -112,6 +113,16 @@
112113
"principalId": "[parameters('testApplicationOid')]"
113114
}
114115
},
116+
{
117+
"type": "Microsoft.Authorization/roleAssignments",
118+
"apiVersion": "[variables('authorizationApiVersion')]",
119+
"name": "[guid(concat('fileDataContributorRoleId', variables('accountName')))]",
120+
"dependsOn": ["[variables('accountName')]"],
121+
"properties": {
122+
"roleDefinitionId": "[variables('fileDataContributorRoleId')]",
123+
"principalId": "[parameters('testApplicationOid')]"
124+
}
125+
},
115126
{
116127
"type": "Microsoft.Storage/storageAccounts",
117128
"apiVersion": "[variables('storageApiVersion')]",

0 commit comments

Comments
 (0)