mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 21:18:31 +00:00
b91bae30b1
Move the JDBC functionality integration tests from `:sql:qa` to a separate module `:sql:qa:jdbc`. This way the tests are isolated from the rest of the integration tests and they only depend to the `:sql:jdbc` module, thus removing the danger of accidentally pulling in some dependency that may hide bugs. Moreover this is a preparation for #56722, so that we can run those tests between different JDBC and ES node versions and ensure forward compatibility. Move the rest of existing tests inside a new `:sql:qa:server` project, so that the `:sql:qa` becomes the parent project for both and one can run all the integration tests by using this parent project. (cherry picked from commit c09f4a04484b8a43934fe58fbc41bd90b7dbcc76)
92 lines
1.7 KiB
YAML
92 lines
1.7 KiB
YAML
# tag::rest
|
|
rest_minimal:
|
|
indices:
|
|
- names: test
|
|
privileges: [read, "indices:admin/get"]
|
|
- names: bort
|
|
privileges: [read, "indices:admin/get"]
|
|
# end::rest
|
|
|
|
# tag::cli_drivers
|
|
cli_or_drivers_minimal:
|
|
cluster:
|
|
- "cluster:monitor/main"
|
|
indices:
|
|
- names: test
|
|
privileges: [read, "indices:admin/get"]
|
|
- names: bort
|
|
privileges: [read, "indices:admin/get"]
|
|
# end::cli_drivers
|
|
|
|
read_nothing:
|
|
cluster:
|
|
- "cluster:monitor/main"
|
|
|
|
read_something_else:
|
|
cluster:
|
|
- "cluster:monitor/main"
|
|
indices:
|
|
- names: something_that_isnt_test
|
|
privileges: [read, "indices:admin/get"]
|
|
|
|
read_test_a:
|
|
cluster:
|
|
- "cluster:monitor/main"
|
|
indices:
|
|
- names: test
|
|
privileges: [read, "indices:admin/get"]
|
|
field_security:
|
|
grant: [a]
|
|
|
|
read_test_a_and_b:
|
|
cluster:
|
|
- "cluster:monitor/main"
|
|
indices:
|
|
- names: test
|
|
privileges: [read, "indices:admin/get"]
|
|
field_security:
|
|
grant: ["*"]
|
|
except: [c]
|
|
|
|
read_test_without_c_3:
|
|
cluster:
|
|
- "cluster:monitor/main"
|
|
indices:
|
|
- names: test
|
|
privileges: [read, "indices:admin/get"]
|
|
query: |
|
|
{
|
|
"bool": {
|
|
"must_not": [
|
|
{
|
|
"match": {
|
|
"c": 3
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
read_bort:
|
|
cluster:
|
|
- "cluster:monitor/main"
|
|
indices:
|
|
- names: bort
|
|
privileges: [read, "indices:admin/get"]
|
|
|
|
no_monitor_main:
|
|
indices:
|
|
- names: test
|
|
privileges: [read, "indices:admin/get"]
|
|
- names: bort
|
|
privileges: [read, "indices:admin/get"]
|
|
|
|
no_get_index:
|
|
cluster:
|
|
- "cluster:monitor/main"
|
|
indices:
|
|
- names: test
|
|
privileges: [monitor]
|
|
- names: bort
|
|
privileges: [monitor]
|