Skip to content

Commit

Permalink
Restore original test
Browse files Browse the repository at this point in the history
The new test did work in Unix but
failed on Windows
  • Loading branch information
MarcialRosales committed May 12, 2023
1 parent e6e1fd1 commit 30afc8f
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions projects/Unit/TestUpdateSecret.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,11 @@ public class TestUpdateSecret : IntegrationFixture
public TestUpdateSecret(ITestOutputHelper output) : base(output)
{
}
private string _username = "myuser";

protected override void SetUp()
{
RabbitMQCtl.AddUser(_username, "mypassword");
RabbitMQCtl.SetPermissions(_username, ".*", ".*", ".*");
}
public override void Dispose()
{
RabbitMQCtl.DeleteUser(_username);
}

[IgnoreOnVersionsEarlierThan(3, 8)]
public void TestUpdatingConnectionSecret()
{
using (_conn = ConnectWithCredentials(_username, "mypassword"))
{
_conn.UpdateSecret("new-secret", "Test Case");
}
}
private IConnection ConnectWithCredentials(string username, string password)
{
return CreateAutorecoveringConnection(new BasicCredentialsProvider("TestUpdateSecret", username, password));
_conn.UpdateSecret("new-secret", "Test Case");
}

}
Expand Down

0 comments on commit 30afc8f

Please sign in to comment.