Skip to content

Commit

Permalink
make test reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
reguero committed Apr 13, 2023
1 parent d00ed3d commit 337d850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/krb5conf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func TestLoadinc(t *testing.T) {
assert.Equal(t, time.Duration(24)*time.Hour, c.LibDefaults.TicketLifetime, "[libdefaults] Ticket lifetime not as expected")
assert.Equal(t, true, c.LibDefaults.Forwardable, "[libdefaults] forwardable not as expected")
assert.Equal(t, "/etc/krb5.keytab", c.LibDefaults.DefaultKeytabName, "[libdefaults] default_keytab_name not as expected")
assert.Equal(t, "/usr/local/var/krb5/user/1450/client.keytab", c.LibDefaults.DefaultClientKeytabName, "[libdefaults] default_client_keytab_name not as expected")
assert.Equal(t, "FILE:/home/gokrb5/client.keytab", c.LibDefaults.DefaultClientKeytabName, "[libdefaults] default_client_keytab_name not as expected")
assert.Equal(t, []string{"aes256-cts-hmac-sha1-96", "aes128-cts-hmac-sha1-96", "des3-cbc-sha1", "arcfour-hmac-md5", "camellia256-cts-cmac", "camellia128-cts-cmac", "des-cbc-crc", "des-cbc-md5", "des-cbc-md4"}, c.LibDefaults.DefaultTktEnctypes, "[libdefaults] default_tkt_enctypes not as expected")
assert.Equal(t, 7, len(c.Realms), "Number of realms not as expected")
assert.Equal(t, "TEST.GOKRB5", c.Realms[6].Realm, "[realm] realm name not as expectd")
Expand Down
1 change: 1 addition & 0 deletions config/testkrb5.conf.d/test-defaults-testgokrb5.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
renew_lifetime = 120h
proxiable = true
rdns = true
default_client_keytab_name = FILE:/home/gokrb5/client.keytab

[domain_realm]
.test.gokrb5 = TEST.GOKRB5
Expand Down

0 comments on commit 337d850

Please sign in to comment.