Fix broken SQL security test
Used the wrong user. Original commit: elastic/x-pack-elasticsearch@334955fbfa
This commit is contained in:
parent
33f4a8317c
commit
2b2bf89fb1
|
@ -252,11 +252,11 @@ public class JdbcSecurityIT extends SqlSecurityTestCase {
|
||||||
|
|
||||||
expectActionMatchesAdmin(
|
expectActionMatchesAdmin(
|
||||||
con -> con.getMetaData().getColumns("%", "%", "not_created", "%"),
|
con -> con.getMetaData().getColumns("%", "%", "not_created", "%"),
|
||||||
"read_bort",
|
"wrong_access",
|
||||||
con -> con.getMetaData().getColumns("%", "%", "test", "%"));
|
con -> con.getMetaData().getColumns("%", "%", "test", "%"));
|
||||||
new AuditLogAsserter()
|
new AuditLogAsserter()
|
||||||
.expect(true, SQL_INDICES_ACTION_NAME, "test_admin", contains("*", "-*"))
|
.expect(true, SQL_INDICES_ACTION_NAME, "test_admin", contains("*", "-*"))
|
||||||
.expect(true, SQL_INDICES_ACTION_NAME, "read_bort", contains("*", "-*"))
|
.expect(true, SQL_INDICES_ACTION_NAME, "wrong_access", contains("*", "-*"))
|
||||||
.assertLogs();
|
.assertLogs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue