Fix broken SQL security test

Used the wrong user.

Original commit: elastic/x-pack-elasticsearch@334955fbfa
This commit is contained in:
Nik Everett 2017-11-01 21:48:46 -04:00
parent 33f4a8317c
commit 2b2bf89fb1
1 changed files with 2 additions and 2 deletions

View File

@ -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();
} }