HBASE-13563 Add missing table owner to AC tests.
This commit is contained in:
parent
807142024f
commit
75507af9f8
|
@ -1967,10 +1967,10 @@ public class TestAccessController extends SecureTestUtil {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
verifyAllowed(listTablesAction, SUPERUSER, USER_ADMIN, USER_CREATE, TABLE_ADMIN);
|
verifyAllowed(listTablesAction, SUPERUSER, USER_ADMIN, USER_CREATE, USER_OWNER, TABLE_ADMIN);
|
||||||
verifyIfEmptyList(listTablesAction, USER_RW, USER_RO, USER_NONE);
|
verifyIfEmptyList(listTablesAction, USER_RW, USER_RO, USER_NONE);
|
||||||
|
|
||||||
verifyAllowed(getTableDescAction, SUPERUSER, USER_ADMIN, USER_CREATE, TABLE_ADMIN);
|
verifyAllowed(getTableDescAction, SUPERUSER, USER_ADMIN, USER_CREATE, USER_OWNER, TABLE_ADMIN);
|
||||||
verifyDenied(getTableDescAction, USER_RW, USER_RO, USER_NONE);
|
verifyDenied(getTableDescAction, USER_RW, USER_RO, USER_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1991,7 +1991,8 @@ public class TestAccessController extends SecureTestUtil {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
verifyAllowed(listTablesAction, SUPERUSER, USER_ADMIN, USER_CREATE, USER_RW, USER_RO);
|
verifyAllowed(listTablesAction, SUPERUSER, USER_ADMIN, USER_CREATE, USER_OWNER,
|
||||||
|
USER_RW, USER_RO);
|
||||||
verifyIfEmptyList(listTablesAction, USER_NONE);
|
verifyIfEmptyList(listTablesAction, USER_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue