From: Joseph Sutton Date: Mon, 18 Dec 2023 20:37:40 +0000 (+1300) Subject: tests/krb5: Check properties of current GKDI key X-Git-Tag: talloc-2.4.2~191 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd3091dfc545cb50734f7c9108be41f5cd4059b6;p=thirdparty%2Fsamba.git tests/krb5: Check properties of current GKDI key Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/krb5/gkdi_tests.py b/python/samba/tests/krb5/gkdi_tests.py index 51d70a90bc4..b94447de993 100755 --- a/python/samba/tests/krb5/gkdi_tests.py +++ b/python/samba/tests/krb5/gkdi_tests.py @@ -113,7 +113,11 @@ class GkdiExplicitRootKeyTests(GkdiKdcBaseTest): # It actually doesn’t matter what we specify for the L1 and L2 indices. # We’ll 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."""