Skip to content

Commit

Permalink
Add self-test for ticket expiration
Browse files Browse the repository at this point in the history
*  Added test_get_ticket_expiration()
*  Format with clang-format

Tests: Tested on AL2 and Ubuntu with 2 digit and 4 digit year formats in klist

klist with 4 digit year:
	Ticket cache: KEYRING:persistent:1000:1000
	Default principal: admin@CUSTOMERTEST.LOCAL

	Valid starting       Expires              Service principal
	12/04/2023 19:39:06  12/05/2023 05:39:06  krbtgt/CUSTOMERTEST.LOCAL@CUSTOMERTEST.LOCAL
	renew until 12/11/2023 19:39:04

klist with 4 digit year:
	Ticket cache: FILE:/tmp/krb5cc_2001112
	Default principal: Admin@CUSTOMERTEST.LOCAL

	Valid starting     Expires            Service principal
	12/04/23 21:58:51  12/05/23 07:58:51  krbtgt/CUSTOMERTEST.LOCAL@CUSTOMERTEST.LOCAL
	renew until 12/11/23 21:58:51
	12/04/23 21:58:51  12/05/23 07:58:51  EC2AMAZ-4MQOKF$@CUSTOMERTEST.LOCAL
  • Loading branch information
smhmhmd committed Dec 4, 2023
1 parent 2964ee1 commit d3bbfee
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 75 deletions.
Loading

0 comments on commit d3bbfee

Please sign in to comment.