Skip to content

Commit c42bc76

Browse files
committed
Add version requirement for RBAC integration tests
1 parent fd823ba commit c42bc76

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

src/Weaviate.Client.Tests/Integration/TestRbacGroups.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ public class TestRbacGroups : IntegrationTests
1414
public override ushort GrpcPort => 50063;
1515
private const string ADMIN_API_KEY = "admin-key";
1616

17+
public TestRbacGroups()
18+
{
19+
RequireVersion("1.32.0");
20+
}
21+
1722
public override ICredentials? Credentials => Auth.ApiKey(ADMIN_API_KEY);
1823

1924
[Fact, Trait("Category", "RBAC")]

src/Weaviate.Client.Tests/Integration/TestRbacRoles.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ public class TestRbacRoles : IntegrationTests
1616
private static string MakeRoleName(string suffix) =>
1717
$"test-role-{suffix}-{Random.Shared.Next(1, 1_000_000)}";
1818

19+
public TestRbacRoles()
20+
{
21+
RequireVersion("1.30.0");
22+
}
23+
1924
[Fact, Trait("Category", "RBAC")]
2025
public async Task ListRoles()
2126
{

src/Weaviate.Client.Tests/Integration/TestRbacUsers.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ public class TestRbacUsers : IntegrationTests
1818

1919
public override ICredentials? Credentials => Auth.ApiKey(ADMIN_API_KEY);
2020

21-
// Base _weaviate already configured with overridden ports and credentials
21+
public TestRbacUsers()
22+
{
23+
RequireVersion("1.30.0");
24+
}
2225

2326
[Fact, Trait("Category", "RBAC")]
2427
public async Task Test_OwnUser()

0 commit comments

Comments
 (0)