Skip to content

Commit b040885

Browse files
committed
Move rbacModelWithDomains to tier4 and rbacModelWithDeny to tier5
1 parent c3c885f commit b040885

File tree

9 files changed

+180
-435
lines changed

9 files changed

+180
-435
lines changed

.github/workflows/java-benchmark-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ jobs:
2424
exclude: ""
2525
heap: "2G"
2626
- name: tier3_milli
27-
pattern: ".*(rbacModelSmall|rbacModelMedium|roleManagerMedium|abacModel|rbacModelSizes|rbacModelWithDomains).*"
27+
pattern: ".*(rbacModelSmall|rbacModelMedium|roleManagerMedium|abacModel|rbacModelSizes).*"
2828
duration: "300ms"
2929
exclude: ".*Parallel.*"
3030
heap: "2G"
3131
- name: tier4_write
32-
pattern: ".*(ManagementApiBenchmark|priorityModel|rbacModelWithDeny).*"
32+
pattern: ".*(ManagementApiBenchmark|priorityModel|rbacModelWithDomains).*"
3333
duration: "400ms"
3434
exclude: ".*removePolicy.*"
3535
heap: "2G"
3636
- name: tier5_parallel
37-
pattern: ".*(concurrentHasLinkWithMatching|removePolicy).*"
37+
pattern: ".*(concurrentHasLinkWithMatching|removePolicy|rbacModelWithDeny).*"
3838
duration: "600ms"
3939
exclude: ""
4040
heap: "4G"

ci_debug_helper.sh

Lines changed: 0 additions & 305 deletions
This file was deleted.

maven-settings.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,5 +234,6 @@
234234
<artifactId>jackson-databind</artifactId>
235235
<version>2.18.1</version>
236236
</dependency>
237+
237238
</dependencies>
238239
</project>

src/test/java/org/casbin/jcasbin/main/FrontendUnitTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public class FrontendUnitTest {
3232
public void testCasbinJsGetPermissionForUser() throws IOException {
3333
SyncedEnforcer e = new SyncedEnforcer("examples/rbac_model.conf", "examples/rbac_with_hierarchy_policy.csv");
3434
HashMap<String, Object> received = new Gson().fromJson(Frontend.casbinJsGetPermissionForUser(e, "alice"), HashMap.class);
35-
String expectedModelStr = new String(Files.readAllBytes(Paths.get("examples/rbac_model.conf")));
36-
assertEquals(received.get("m"), expectedModelStr);
35+
String expectedModelStr = new String(Files.readAllBytes(Paths.get("examples/rbac_model.conf"))).replace("\r\n", "\n");
36+
assertEquals(received.get("m").toString().replace("\r\n", "\n"), expectedModelStr);
3737

38-
String expectedPolicyStr = new String(Files.readAllBytes(Paths.get("examples/rbac_with_hierarchy_policy.csv")));
38+
String expectedPolicyStr = new String(Files.readAllBytes(Paths.get("examples/rbac_with_hierarchy_policy.csv"))).replace("\r\n", "\n");
3939
expectedPolicyStr = Pattern.compile("\n+").matcher(expectedPolicyStr).replaceAll("\n");
4040
String[] expectedPolicyItem = expectedPolicyStr.split(",|\n");
4141
int i = 0;

0 commit comments

Comments
 (0)