tests/posixacl: derive a new testcase to run same tests with session
authorJoe Guo <joeg@catalyst.net.nz>
Thu, 5 Jul 2018 22:36:54 +0000 (10:36 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Jul 2018 02:32:04 +0000 (04:32 +0200)
commita8a9bb553c8195425f385eee1cc8efab8cd889e9
tree2a257e9c947527a33427119715340475b781e111
parent1c09fc2de3cb4cb18cba35ea410fb74742cd9065
tests/posixacl: derive a new testcase to run same tests with session

1. existing tests still run with session_info=None
2. new class override `get_session_info` to return a session, so same
set of tests will run again, but with session.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13521

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
python/samba/tests/posixacl.py