Skip to content

Commit

Permalink
test: Uncomments and updates bulk permission check
Browse files Browse the repository at this point in the history
The previously commented out test for checking bulk permissions has been uncommented and updated. The method call within the test was changed to reflect the current function name.
  • Loading branch information
tanczosm committed Apr 11, 2024
1 parent 48d595a commit 4d67fe5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SpiceDb.Tests/SpiceDbClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ public void CheckPermissionAsyncTest()
Assert.IsTrue(p1.HasPermission && p2.HasPermission && p3.HasPermission && p4.HasPermission && !p5.HasPermission && !p6.HasPermission);
}

/*
/// This feature isn't currently available in Serverless
[Test]
public async Task CheckBulkPermissionAsyncTest()
Expand All @@ -181,12 +180,11 @@ public async Task CheckBulkPermissionAsyncTest()
"group:test#add_manager@user:blackhat"
};

var p = await _client!.BulkCheckPermissionAsync(permissions);
var p = await _client!.CheckBulkPermissionsAsync(permissions);

Assert.IsNotNull(p);
Assert.IsTrue(p!.Pairs[0].HasPermission && p!.Pairs[1].HasPermission && p!.Pairs[2].HasPermission && p!.Pairs[3].HasPermission && !p!.Pairs[4].HasPermission && !p!.Pairs[5].HasPermission);
}
*/

[Test]
public async Task ExpandPermissionAsyncTest()
Expand Down

0 comments on commit 4d67fe5

Please sign in to comment.