fix subgraph order
This commit is contained in:
parent
d0d9883e49
commit
e7df0bfd4d
@ -13,6 +13,19 @@ class TestPackageEntityUnitTest {
|
|||||||
assertThat(rbacFlowchart).isEqualTo("""
|
assertThat(rbacFlowchart).isEqualTo("""
|
||||||
%%{init:{'flowchart':{'htmlLabels':false}}}%%
|
%%{init:{'flowchart':{'htmlLabels':false}}}%%
|
||||||
flowchart TB
|
flowchart TB
|
||||||
|
|
||||||
|
subgraph customer["`**customer**`"]
|
||||||
|
direction TB
|
||||||
|
style customer fill:#99bcdb,stroke:#274d6e,stroke-width:8px
|
||||||
|
|
||||||
|
subgraph customer:roles[ ]
|
||||||
|
style customer:roles fill:#99bcdb,stroke:white
|
||||||
|
|
||||||
|
role:customer:OWNER[[customer:OWNER]]
|
||||||
|
role:customer:ADMIN[[customer:ADMIN]]
|
||||||
|
role:customer:TENANT[[customer:TENANT]]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
subgraph package["`**package**`"]
|
subgraph package["`**package**`"]
|
||||||
direction TB
|
direction TB
|
||||||
@ -36,19 +49,6 @@ class TestPackageEntityUnitTest {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
subgraph customer["`**customer**`"]
|
|
||||||
direction TB
|
|
||||||
style customer fill:#99bcdb,stroke:#274d6e,stroke-width:8px
|
|
||||||
|
|
||||||
subgraph customer:roles[ ]
|
|
||||||
style customer:roles fill:#99bcdb,stroke:white
|
|
||||||
|
|
||||||
role:customer:OWNER[[customer:OWNER]]
|
|
||||||
role:customer:ADMIN[[customer:ADMIN]]
|
|
||||||
role:customer:TENANT[[customer:TENANT]]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
%% granting roles to roles
|
%% granting roles to roles
|
||||||
role:global:ADMIN -.->|XX| role:customer:OWNER
|
role:global:ADMIN -.->|XX| role:customer:OWNER
|
||||||
role:customer:OWNER -.-> role:customer:ADMIN
|
role:customer:OWNER -.-> role:customer:ADMIN
|
||||||
|
Loading…
Reference in New Issue
Block a user