Skip to content

Commit

Permalink
[Synapse] - Fix test failure (#12625)
Browse files Browse the repository at this point in the history
* Fix test failure

* Correct test name

* Remove Ignore annotation and use random guid
  • Loading branch information
idear1203 authored Jun 9, 2020
1 parent 423fa77 commit 48f2e62
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ public async Task TestGetRoleAssignment()
}

[Test]
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/12599")]
public async Task TestCreateAndDeleteRoleAssignment()
{
string sqlAdminRoleId = "7af0c69a-a548-47d6-aea3-d00e69bd83aa";
string principalId = Guid.NewGuid().ToString();
string principalId = Recording.Random.NewGuid().ToString();

// Create role assignment.
RoleAssignmentDetails actualRoleAssignment = await AccessControlClient.CreateRoleAssignmentAsync(new RoleAssignmentOptions(roleId:sqlAdminRoleId, principalId: principalId));
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Azure.Analytics.Synapse.Samples
public partial class AddAndRemoveRoleAssignment
{
[Test]
public void SubmitSparkJobSync()
public void AddAndRemoveRoleAssignmentSync()
{
// Environment variable with the Synapse workspace endpoint.
string workspaceUrl = TestEnvironment.WorkspaceUrl;
Expand Down

0 comments on commit 48f2e62

Please sign in to comment.