# Ensure the system tenant can issue any request, regardless of capabilities.

has-capability-for-batch ten=system cmds=(AdminSplit, Scan, ConditionalPut)
----
ok

has-capability-for-batch ten=system cmds=(Scan, ConditionalPut)
----
ok

has-capability-for-batch ten=system cmds=(AdminSplit)
----
ok

upsert ten=system can_admin_split=false
----
ok

# tenant capabilities should not apply to the system tenant.
# TODO(arul): this is likely to change, but is contingent on a migration to seed
# things properly. For now, we test this case explicitly to ensure nothing
# breaks.

has-capability-for-batch ten=system cmds=(AdminSplit)
----
ok

# service mode check does not apply to the system tenant.
upsert ten=system can_admin_split=false service=none
----
ok

has-capability-for-batch ten=system cmds=(AdminSplit)
----
ok
