From 30afc8f12a28ed7dea8b61db07cd90fa0788b746 Mon Sep 17 00:00:00 2001 From: Marcial Rosales Date: Fri, 12 May 2023 17:04:47 +0200 Subject: [PATCH] Restore original test The new test did work in Unix but failed on Windows --- projects/Unit/TestUpdateSecret.cs | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/projects/Unit/TestUpdateSecret.cs b/projects/Unit/TestUpdateSecret.cs index d59268d967..8fe2bdf40d 100644 --- a/projects/Unit/TestUpdateSecret.cs +++ b/projects/Unit/TestUpdateSecret.cs @@ -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"); } }