2022-08-13 01:34:47 +08:00
|
|
|
template_cluster: &template_cluster
|
|
|
|
cluster:
|
|
|
|
main:
|
|
|
|
args: ["--bolt-port", "7687", "--log-level=TRACE"]
|
|
|
|
log_file: "lba-e2e.log"
|
2022-09-02 23:12:07 +08:00
|
|
|
setup_queries:
|
|
|
|
- "Create (:Label1 {id: 1}) ;"
|
|
|
|
- "Create (:Label1 {id: 2}) ;"
|
|
|
|
- "Create (:Label1 {id: 3}) ;"
|
|
|
|
- "Create (:Label1 {id: 4}) ;"
|
|
|
|
- "Create (:Label1 {id: 5}) ;"
|
|
|
|
- "Create (:Label1 {id: 6}) ;"
|
|
|
|
- "Create (:Label2 {id: 1}) ;"
|
|
|
|
- "Create (:Label2 {id: 2}) ;"
|
|
|
|
- "Create (:Label2 {id: 3}) ;"
|
|
|
|
- "Create (:Label2 {id: 4}) ;"
|
|
|
|
- "Create User Josip ;"
|
|
|
|
- "Create User Boris ;"
|
|
|
|
- "Grant Read On Labels :Label1 to Boris;"
|
2022-08-13 01:34:47 +08:00
|
|
|
validation_queries: []
|
|
|
|
|
2022-08-31 18:14:16 +08:00
|
|
|
show_privileges_cluster: &show_privileges_cluster
|
|
|
|
cluster:
|
|
|
|
main:
|
|
|
|
args: ["--bolt-port", "7687", "--log-level=TRACE"]
|
|
|
|
log_file: "lba-e2e.log"
|
2022-09-02 23:12:07 +08:00
|
|
|
setup_queries:
|
|
|
|
- "Create User Josip;"
|
|
|
|
- "Grant Read On Labels :Label1 to Josip;"
|
|
|
|
- "Deny Read On Labels :Label2 to Josip;"
|
|
|
|
- "Grant Update On Labels :Label3 to Josip;"
|
|
|
|
- "Deny Update On Labels :Label4 to Josip;"
|
|
|
|
- "Grant Create_Delete On Labels :Label5 to Josip;"
|
|
|
|
- "Deny Create_Delete On Labels :Label6 to Josip;"
|
|
|
|
- "Grant Create_Delete On Labels :Label7 to Josip;"
|
|
|
|
- "Deny Read On Labels :Label7 to Josip;"
|
2022-08-31 18:14:16 +08:00
|
|
|
|
2022-09-02 23:12:07 +08:00
|
|
|
- "Create User Boris;"
|
|
|
|
- "Grant Auth to Boris;"
|
|
|
|
- "Grant Read On Labels :Label1 to Boris;"
|
|
|
|
- "Deny Read On Labels :Label2 to Boris;"
|
|
|
|
- "Grant Update On Labels :Label3 to Boris;"
|
|
|
|
- "Deny Update On Labels :Label4 to Boris;"
|
|
|
|
- "Grant Create_Delete On Labels :Label5 to Boris;"
|
|
|
|
- "Deny Create_Delete On Labels :Label6 to Boris;"
|
|
|
|
- "Grant Create_Delete On Labels :Label7 to Boris;"
|
|
|
|
- "Deny Read On Labels :Label7 to Boris;"
|
2022-08-31 18:14:16 +08:00
|
|
|
|
2022-09-02 23:12:07 +08:00
|
|
|
- "Create User Niko;"
|
|
|
|
- "Grant Auth to Niko;"
|
|
|
|
- "Grant Create_Delete On Labels * to Niko"
|
|
|
|
- "Deny Update On Labels * to Niko"
|
2022-08-31 18:14:16 +08:00
|
|
|
|
2022-09-02 23:12:07 +08:00
|
|
|
- "Create User Bruno;"
|
|
|
|
- "Grant Auth to Bruno;"
|
|
|
|
- "Deny Create_Delete On Labels * to Bruno"
|
|
|
|
|
|
|
|
read_permission_queries: &read_permission_queries
|
|
|
|
cluster:
|
|
|
|
main:
|
|
|
|
args: ["--bolt-port", "7687", "--log-level=TRACE"]
|
|
|
|
log_file: "lba-e2e.log"
|
|
|
|
setup_queries:
|
|
|
|
- "CREATE USER admin IDENTIFIED BY 'test';"
|
|
|
|
- "GRANT ALL PRIVILEGES TO admin;"
|
|
|
|
- "CREATE USER user IDENTIFIED BY 'test';"
|
|
|
|
- "GRANT ALL PRIVILEGES TO user;"
|
|
|
|
validation_queries: []
|
|
|
|
|
|
|
|
update_permission_queries_cluster: &update_permission_queries_cluster
|
|
|
|
cluster:
|
|
|
|
main:
|
|
|
|
args: ["--bolt-port", "7687", "--log-level=TRACE"]
|
|
|
|
log_file: "lba-e2e.log"
|
|
|
|
setup_queries:
|
|
|
|
- "CREATE USER admin IDENTIFIED BY 'test';"
|
|
|
|
- "GRANT ALL PRIVILEGES TO admin;"
|
|
|
|
- "CREATE USER user IDENTIFIED BY 'test'"
|
|
|
|
- "GRANT ALL PRIVILEGES TO user;"
|
|
|
|
|
|
|
|
validation_queries: []
|
2022-08-31 18:14:16 +08:00
|
|
|
|
2022-08-13 01:34:47 +08:00
|
|
|
workloads:
|
|
|
|
- name: "Label-based auth"
|
|
|
|
binary: "tests/e2e/pytest_runner.sh"
|
|
|
|
proc: "tests/e2e/lba_procedures/procedures/"
|
|
|
|
args: ["lba_procedures/lba_procedures.py"]
|
|
|
|
<<: *template_cluster
|
2022-08-31 18:14:16 +08:00
|
|
|
|
|
|
|
- name: "show-privileges"
|
|
|
|
binary: "tests/e2e/pytest_runner.sh"
|
|
|
|
proc: "tests/e2e/lba_procedures/procedures/"
|
|
|
|
args: ["lba_procedures/show_privileges.py"]
|
|
|
|
<<: *show_privileges_cluster
|
2022-09-02 23:12:07 +08:00
|
|
|
|
|
|
|
- name: "read-permission-queries"
|
|
|
|
binary: "tests/e2e/pytest_runner.sh"
|
|
|
|
proc: "tests/e2e/lba_procedures/procedures/"
|
|
|
|
args: ["lba_procedures/read_permission_queries.py"]
|
|
|
|
<<: *read_permission_queries
|
|
|
|
|
|
|
|
- name: "update-permission-queries"
|
|
|
|
binary: "tests/e2e/pytest_runner.sh"
|
|
|
|
proc: "tests/e2e/lba_procedures/procedures/"
|
|
|
|
args: ["lba_procedures/update_permission_queries.py"]
|
|
|
|
<<: *update_permission_queries_cluster
|