1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

tests/krb5: Check properties of current GKDI key

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-12-19 09:37:40 +13:00 committed by Andrew Bartlett
parent b4563a2490
commit bd3091dfc5

View File

@ -113,7 +113,11 @@ class GkdiExplicitRootKeyTests(GkdiKdcBaseTest):
# It actually doesnt matter what we specify for the L1 and L2 indices.
# Well get the same result regardless — they just cannot specify a key
# from the future.
self.check_rpc_get_key(root_key_id, self.current_gkid())
current_gkid = self.current_gkid()
key = self.check_rpc_get_key(root_key_id, current_gkid)
self.assertEqual(current_gkid, key.gkid)
self.assertEqual(root_key_id, key.root_key_id)
def test_previous_l0_idx(self):
"""Request a key with a previous L0 index."""