You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Service.Tests/CosmosTests/MutationTests.cs
+19-15Lines changed: 19 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -257,11 +257,12 @@ public async Task MutationMissingRequiredPartitionKeyValueReturnError()
257
257
/// It throws permission denied error if role doesn't have permission to perform the operation
258
258
/// </summary>
259
259
[TestMethod]
260
-
[DataRow("field-mutation-with-read-permission",DataApiBuilderException.GRAPHQL_MUTATION_FIELD_AUTHZ_FAILURE)]// exclude and include fields
261
-
[DataRow("authenticated",null)]// full permission
262
-
[DataRow("only-create-role","The mutation operation createEarth was successful but the current user is unauthorized to view the response due to lack of read permissions")]// if only create permission is there
[DataRow("only-update-role","The current user is not authorized to access this resource")]// if create permission is not there
260
+
[DataRow("field-mutation-with-read-permission",DataApiBuilderException.GRAPHQL_MUTATION_FIELD_AUTHZ_FAILURE,DisplayName=" exclude and include fields")]
/// It throws permission denied error if role doesn't have permission to perform the operation
297
298
/// </summary>
298
299
[TestMethod]
299
-
[DataRow("field-mutation-with-read-permission",DataApiBuilderException.GRAPHQL_MUTATION_FIELD_AUTHZ_FAILURE)]// exclude and include fields
300
-
[DataRow("authenticated",null)]// full permission
301
-
[DataRow("only-update-role","The mutation operation updateEarth was successful but the current user is unauthorized to view the response due to lack of read permissions")]// if only update permission is there
/// It throws permission denied error if role doesn't have permission to perform the operation
362
364
/// </summary>
363
365
[TestMethod]
364
-
[DataRow("field-mutation-with-read-permission",null)]// exclude and include fields. Response is BLANK.
365
-
[DataRow("authenticated",null)]// full permission. Response is BLANK
366
-
[DataRow("only-delete-role","The mutation operation deleteEarth was successful but the current user is unauthorized to view the response due to lack of read permissions")]// if only update permission is there
367
-
[DataRow("wildcard-exclude-fields-role","The mutation operation deleteEarth was successful but the current user is unauthorized to view the response due to lack of read permissions")]// exclude wildcard
368
-
[DataRow("only-create-role","The current user is not authorized to access this resource")]// if update permission is not there
366
+
[DataRow("field-mutation-with-read-permission",null,DisplayName=" exclude and include fields. Response is BLANK")]
367
+
[DataRow("authenticated",null,DisplayName="full permission. Response is BLANK")]
368
+
[DataRow("only-delete-role","The mutation operation deleteEarth was successful "+
369
+
"but the current user is unauthorized to view the response due to lack of read permissions",DisplayName="if only update permission is there")]
370
+
[DataRow("wildcard-exclude-fields-role","The mutation operation deleteEarth was successful "+
371
+
"but the current user is unauthorized to view the response due to lack of read permissions",DisplayName="exclude wildcard")]
372
+
[DataRow("only-create-role","The current user is not authorized to access this resource",DisplayName="if update permission is not there")]
0 commit comments