From d7b091d7d6416ec0fc4f0cece19e09d3602aa861 Mon Sep 17 00:00:00 2001 From: Colton Hurst Date: Wed, 22 Mar 2023 11:04:50 -0400 Subject: [PATCH] SM-662: Make sm controller test class names plural (#2816) --- ...ciesControllerTest.cs => AccessPoliciesControllerTests.cs} | 4 ++-- .../{ProjectsControllerTest.cs => ProjectsControllerTests.cs} | 4 ++-- .../{SecretsControllerTest.cs => SecretsControllerTests.cs} | 4 ++-- ...trollerTest.cs => SecretsManagerPortingControllerTests.cs} | 4 ++-- ...sTrashControllerTest.cs => SecretsTrashControllerTests.cs} | 4 ++-- .../Controllers/ServiceAccountsControllerTests.cs | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) rename test/Api.IntegrationTest/SecretsManager/Controllers/{AccessPoliciesControllerTest.cs => AccessPoliciesControllerTests.cs} (99%) rename test/Api.IntegrationTest/SecretsManager/Controllers/{ProjectsControllerTest.cs => ProjectsControllerTests.cs} (99%) rename test/Api.IntegrationTest/SecretsManager/Controllers/{SecretsControllerTest.cs => SecretsControllerTests.cs} (99%) rename test/Api.IntegrationTest/SecretsManager/Controllers/{SecretsManagerPortingControllerTest.cs => SecretsManagerPortingControllerTests.cs} (93%) rename test/Api.IntegrationTest/SecretsManager/Controllers/{SecretsTrashControllerTest.cs => SecretsTrashControllerTests.cs} (97%) diff --git a/test/Api.IntegrationTest/SecretsManager/Controllers/AccessPoliciesControllerTest.cs b/test/Api.IntegrationTest/SecretsManager/Controllers/AccessPoliciesControllerTests.cs similarity index 99% rename from test/Api.IntegrationTest/SecretsManager/Controllers/AccessPoliciesControllerTest.cs rename to test/Api.IntegrationTest/SecretsManager/Controllers/AccessPoliciesControllerTests.cs index a37567739e..1db8115ed1 100644 --- a/test/Api.IntegrationTest/SecretsManager/Controllers/AccessPoliciesControllerTest.cs +++ b/test/Api.IntegrationTest/SecretsManager/Controllers/AccessPoliciesControllerTests.cs @@ -13,7 +13,7 @@ using Xunit; namespace Bit.Api.IntegrationTest.SecretsManager.Controllers; -public class AccessPoliciesControllerTest : IClassFixture, IAsyncLifetime +public class AccessPoliciesControllerTests : IClassFixture, IAsyncLifetime { private const string _mockEncryptedString = "2.3Uk+WNBIoU5xzmVFNcoWzz==|1MsPIYuRfdOHfu/0uY6H2Q==|/98sp4wb6pHP1VTZ9JcNCYgQjEUMFPlqJgCwRk1YXKg="; @@ -27,7 +27,7 @@ public class AccessPoliciesControllerTest : IClassFixture private string _email = null!; private SecretsManagerOrganizationHelper _organizationHelper = null!; - public AccessPoliciesControllerTest(ApiApplicationFactory factory) + public AccessPoliciesControllerTests(ApiApplicationFactory factory) { _factory = factory; _client = _factory.CreateClient(); diff --git a/test/Api.IntegrationTest/SecretsManager/Controllers/ProjectsControllerTest.cs b/test/Api.IntegrationTest/SecretsManager/Controllers/ProjectsControllerTests.cs similarity index 99% rename from test/Api.IntegrationTest/SecretsManager/Controllers/ProjectsControllerTest.cs rename to test/Api.IntegrationTest/SecretsManager/Controllers/ProjectsControllerTests.cs index a2b3258f99..1b0d97626f 100644 --- a/test/Api.IntegrationTest/SecretsManager/Controllers/ProjectsControllerTest.cs +++ b/test/Api.IntegrationTest/SecretsManager/Controllers/ProjectsControllerTests.cs @@ -14,7 +14,7 @@ using Xunit; namespace Bit.Api.IntegrationTest.SecretsManager.Controllers; -public class ProjectsControllerTest : IClassFixture, IAsyncLifetime +public class ProjectsControllerTests : IClassFixture, IAsyncLifetime { private readonly string _mockEncryptedString = "2.3Uk+WNBIoU5xzmVFNcoWzz==|1MsPIYuRfdOHfu/0uY6H2Q==|/98sp4wb6pHP1VTZ9JcNCYgQjEUMFPlqJgCwRk1YXKg="; @@ -27,7 +27,7 @@ public class ProjectsControllerTest : IClassFixture, IAsy private string _email = null!; private SecretsManagerOrganizationHelper _organizationHelper = null!; - public ProjectsControllerTest(ApiApplicationFactory factory) + public ProjectsControllerTests(ApiApplicationFactory factory) { _factory = factory; _client = _factory.CreateClient(); diff --git a/test/Api.IntegrationTest/SecretsManager/Controllers/SecretsControllerTest.cs b/test/Api.IntegrationTest/SecretsManager/Controllers/SecretsControllerTests.cs similarity index 99% rename from test/Api.IntegrationTest/SecretsManager/Controllers/SecretsControllerTest.cs rename to test/Api.IntegrationTest/SecretsManager/Controllers/SecretsControllerTests.cs index 110399243a..9f90335ea6 100644 --- a/test/Api.IntegrationTest/SecretsManager/Controllers/SecretsControllerTest.cs +++ b/test/Api.IntegrationTest/SecretsManager/Controllers/SecretsControllerTests.cs @@ -13,7 +13,7 @@ using Xunit; namespace Bit.Api.IntegrationTest.SecretsManager.Controllers; -public class SecretsControllerTest : IClassFixture, IAsyncLifetime +public class SecretsControllerTests : IClassFixture, IAsyncLifetime { private readonly string _mockEncryptedString = "2.3Uk+WNBIoU5xzmVFNcoWzz==|1MsPIYuRfdOHfu/0uY6H2Q==|/98sp4wb6pHP1VTZ9JcNCYgQjEUMFPlqJgCwRk1YXKg="; @@ -27,7 +27,7 @@ public class SecretsControllerTest : IClassFixture, IAsyn private string _email = null!; private SecretsManagerOrganizationHelper _organizationHelper = null!; - public SecretsControllerTest(ApiApplicationFactory factory) + public SecretsControllerTests(ApiApplicationFactory factory) { _factory = factory; _client = _factory.CreateClient(); diff --git a/test/Api.IntegrationTest/SecretsManager/Controllers/SecretsManagerPortingControllerTest.cs b/test/Api.IntegrationTest/SecretsManager/Controllers/SecretsManagerPortingControllerTests.cs similarity index 93% rename from test/Api.IntegrationTest/SecretsManager/Controllers/SecretsManagerPortingControllerTest.cs rename to test/Api.IntegrationTest/SecretsManager/Controllers/SecretsManagerPortingControllerTests.cs index 49d132125f..d4697711aa 100644 --- a/test/Api.IntegrationTest/SecretsManager/Controllers/SecretsManagerPortingControllerTest.cs +++ b/test/Api.IntegrationTest/SecretsManager/Controllers/SecretsManagerPortingControllerTests.cs @@ -7,7 +7,7 @@ using Xunit; namespace Bit.Api.IntegrationTest.SecretsManager.Controllers; -public class SecretsManagerPortingControllerTest : IClassFixture, IAsyncLifetime +public class SecretsManagerPortingControllerTests : IClassFixture, IAsyncLifetime { private readonly string _mockEncryptedString = "2.3Uk+WNBIoU5xzmVFNcoWzz==|1MsPIYuRfdOHfu/0uY6H2Q==|/98sp4wb6pHP1VTZ9JcNCYgQjEUMFPlqJgCwRk1YXKg="; @@ -20,7 +20,7 @@ public class SecretsManagerPortingControllerTest : IClassFixture, IAsyncLifetime +public class SecretsTrashControllerTests : IClassFixture, IAsyncLifetime { private readonly string _mockEncryptedString = "2.3Uk+WNBIoU5xzmVFNcoWzz==|1MsPIYuRfdOHfu/0uY6H2Q==|/98sp4wb6pHP1VTZ9JcNCYgQjEUMFPlqJgCwRk1YXKg="; @@ -21,7 +21,7 @@ public class SecretsTrashControllerTest : IClassFixture, private string _email = null!; private SecretsManagerOrganizationHelper _organizationHelper = null!; - public SecretsTrashControllerTest(ApiApplicationFactory factory) + public SecretsTrashControllerTests(ApiApplicationFactory factory) { _factory = factory; _client = _factory.CreateClient(); diff --git a/test/Api.IntegrationTest/SecretsManager/Controllers/ServiceAccountsControllerTests.cs b/test/Api.IntegrationTest/SecretsManager/Controllers/ServiceAccountsControllerTests.cs index bd14c794e8..2fca7ab61a 100644 --- a/test/Api.IntegrationTest/SecretsManager/Controllers/ServiceAccountsControllerTests.cs +++ b/test/Api.IntegrationTest/SecretsManager/Controllers/ServiceAccountsControllerTests.cs @@ -14,7 +14,7 @@ using Xunit; namespace Bit.Api.IntegrationTest.SecretsManager.Controllers; -public class ServiceAccountsControllerTest : IClassFixture, IAsyncLifetime +public class ServiceAccountsControllerTests : IClassFixture, IAsyncLifetime { private const string _mockEncryptedString = "2.3Uk+WNBIoU5xzmVFNcoWzz==|1MsPIYuRfdOHfu/0uY6H2Q==|/98sp4wb6pHP1VTZ9JcNCYgQjEUMFPlqJgCwRk1YXKg="; @@ -32,7 +32,7 @@ public class ServiceAccountsControllerTest : IClassFixture