Skip to content

Commit

Permalink
[tests] Allow clockskew in server context expiration time check
Browse files Browse the repository at this point in the history
krb5 >= 1.14 adds the clockskew to the server context lifetime.  Allow
this behavior in test_high_level.py.
  • Loading branch information
frozencemetery committed Sep 13, 2017
1 parent 7cec5e0 commit 9ad0ad1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gssapi/tests/test_high_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,8 @@ def test_complete_on_partially_completed(self):
def test_initiate_accept_steps(self):
client_ctx, server_ctx = self._create_completed_contexts()

server_ctx.lifetime.should_be_at_most(400)
# KDC may allow for clockskew by increasing acceptor context lifetime
server_ctx.lifetime.should_be_at_most(400 + 300)
server_ctx.initiator_name.should_be(client_ctx.initiator_name)
server_ctx.mech.should_be_a(gb.OID)
server_ctx.actual_flags.should_be_a(gb.IntEnumFlagSet)
Expand Down

0 comments on commit 9ad0ad1

Please sign in to comment.