Skip to content

Commit

Permalink
Update inspect ticket tests to use the local timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-r7 committed Feb 23, 2023
1 parent fd5d10e commit 65c11bd
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions spec/modules/auxiliary/admin/kerberos/inspect_ticket_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,10 @@
Addresses: 0
Authdatas: 0
Times:
Auth time: #{Time.parse('2023-01-13 14:31:25 +0000').to_time}
Start time: #{Time.parse('2023-01-13 14:31:25 +0000').to_time}
End time: #{Time.parse('2033-01-10 14:31:25 +0000').to_time}
Renew Till: #{Time.parse('2033-01-10 14:31:25 +0000').to_time}
Auth time: #{Time.parse('2023-01-13 14:31:25 +0000').localtime}
Start time: #{Time.parse('2023-01-13 14:31:25 +0000').localtime}
End time: #{Time.parse('2033-01-10 14:31:25 +0000').localtime}
Renew Till: #{Time.parse('2033-01-10 14:31:25 +0000').localtime}
Ticket:
Ticket Version Number: 5
Realm: WINDOMAIN.LOCAL
Expand All @@ -488,10 +488,10 @@
Key Version Number: 2
Decrypted (with key: 4b912be0366a6f37f4a7d571bee18b1173d93195ef76f8d1e3e81ef6172ab326):
Times:
Auth time: #{Time.parse('2023-01-13 14:31:25 +0000').to_time}
Start time: #{Time.parse('2023-01-13 14:31:25 +0000').to_time}
End time: #{Time.parse('2033-01-10 14:31:25 +0000').to_time}
Renew Till: #{Time.parse('2033-01-10 14:31:25 +0000').to_time}
Auth time: #{Time.parse('2023-01-13 14:31:25 +0000').localtime}
Start time: #{Time.parse('2023-01-13 14:31:25 +0000').localtime}
End time: #{Time.parse('2033-01-10 14:31:25 +0000').localtime}
Renew Till: #{Time.parse('2033-01-10 14:31:25 +0000').localtime}
Client Addresses: 0
Transited: tr_type: 0, Contents: ""
Client Name: 'Administrator'
Expand All @@ -501,7 +501,7 @@
Flags: 0x50a00000 (FORWARDABLE, PROXIABLE, RENEWABLE, PRE_AUTHENT)
PAC:
Validation Info:
Logon Time: #{Time.parse('2023-01-13 14:31:25 +0000').to_time}
Logon Time: #{Time.parse('2023-01-13 14:31:25 +0000').localtime}
Logoff Time: Never Expires (inf)
Kick Off Time: Never Expires (inf)
Password Last Set: No Time Set (0)
Expand Down Expand Up @@ -538,7 +538,7 @@
Logon Domain Name: 'WINDOMAIN.LOCAL'
Client Info:
Name: 'Administrator'
Client ID: #{Time.parse('2023-01-13 14:31:25 +0000').to_time}
Client ID: #{Time.parse('2023-01-13 14:31:25 +0000').localtime}
Pac Server Checksum:
Signature: 81a20da731b3b9bdd2e756dc
Pac Privilege Server Checksum:
Expand Down Expand Up @@ -566,10 +566,10 @@
Addresses: 0
Authdatas: 0
Times:
Auth time: #{Time.parse('2023-01-13 14:31:25 +0000').to_time}
Start time: #{Time.parse('2023-01-13 14:31:25 +0000').to_time}
End time: #{Time.parse('2033-01-10 14:31:25 +0000').to_time}
Renew Till: #{Time.parse('2033-01-10 14:31:25 +0000').to_time}
Auth time: #{Time.parse('2023-01-13 14:31:25 +0000').localtime}
Start time: #{Time.parse('2023-01-13 14:31:25 +0000').localtime}
End time: #{Time.parse('2033-01-10 14:31:25 +0000').localtime}
Renew Till: #{Time.parse('2033-01-10 14:31:25 +0000').localtime}
Ticket:
Ticket Version Number: 5
Realm: WINDOMAIN.LOCAL
Expand Down Expand Up @@ -601,10 +601,10 @@
Addresses: 0
Authdatas: 0
Times:
Auth time: #{Time.parse('2023-01-13 14:36:39 +0000').to_time}
Start time: #{Time.parse('2023-01-13 14:36:39 +0000').to_time}
End time: #{Time.parse('2033-01-10 14:36:39 +0000').to_time}
Renew Till: #{Time.parse('2033-01-10 14:36:39 +0000').to_time}
Auth time: #{Time.parse('2023-01-13 14:36:39 +0000').localtime}
Start time: #{Time.parse('2023-01-13 14:36:39 +0000').localtime}
End time: #{Time.parse('2033-01-10 14:36:39 +0000').localtime}
Renew Till: #{Time.parse('2033-01-10 14:36:39 +0000').localtime}
Ticket:
Ticket Version Number: 5
Realm: WINDOMAIN.LOCAL
Expand All @@ -614,10 +614,10 @@
Key Version Number: 2
Decrypted (with key: 88e4d9fabaecf3dec18dd80905521b29):
Times:
Auth time: #{Time.parse('2023-01-13 14:36:39 +0000').to_time}
Start time: #{Time.parse('2023-01-13 14:36:39 +0000').to_time}
End time: #{Time.parse('2033-01-10 14:36:39 +0000').to_time}
Renew Till: #{Time.parse('2033-01-10 14:36:39 +0000').to_time}
Auth time: #{Time.parse('2023-01-13 14:36:39 +0000').localtime}
Start time: #{Time.parse('2023-01-13 14:36:39 +0000').localtime}
End time: #{Time.parse('2033-01-10 14:36:39 +0000').localtime}
Renew Till: #{Time.parse('2033-01-10 14:36:39 +0000').localtime}
Client Addresses: 0
Transited: tr_type: 0, Contents: ""
Client Name: 'Administrator'
Expand All @@ -627,7 +627,7 @@
Flags: 0x50a00000 (FORWARDABLE, PROXIABLE, RENEWABLE, PRE_AUTHENT)
PAC:
Validation Info:
Logon Time: #{Time.parse('2023-01-13 14:36:39 +0000').to_time}
Logon Time: #{Time.parse('2023-01-13 14:36:39 +0000').localtime}
Logoff Time: Never Expires (inf)
Kick Off Time: Never Expires (inf)
Password Last Set: No Time Set (0)
Expand Down Expand Up @@ -664,7 +664,7 @@
Logon Domain Name: 'WINDOMAIN.LOCAL'
Client Info:
Name: 'Administrator'
Client ID: #{Time.parse('2023-01-13 14:36:39 +0000').to_time}
Client ID: #{Time.parse('2023-01-13 14:36:39 +0000').localtime}
Pac Server Checksum:
Signature: 1a038d8dd257a7d9b875280259ab0e4a
Pac Privilege Server Checksum:
Expand Down Expand Up @@ -692,10 +692,10 @@
Addresses: 0
Authdatas: 0
Times:
Auth time: #{Time.parse('2023-01-13 14:36:39 +0000').to_time}
Start time: #{Time.parse('2023-01-13 14:36:39 +0000').to_time}
End time: #{Time.parse('2033-01-10 14:36:39 +0000').to_time}
Renew Till: #{Time.parse('2033-01-10 14:36:39 +0000').to_time}
Auth time: #{Time.parse('2023-01-13 14:36:39 +0000').localtime}
Start time: #{Time.parse('2023-01-13 14:36:39 +0000').localtime}
End time: #{Time.parse('2033-01-10 14:36:39 +0000').localtime}
Renew Till: #{Time.parse('2033-01-10 14:36:39 +0000').localtime}
Ticket:
Ticket Version Number: 5
Realm: WINDOMAIN.LOCAL
Expand Down

0 comments on commit 65c11bd

Please sign in to comment.