34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
|
From 08bba3a6e3e4e21f2e20b71cca463d50420aa9ee Mon Sep 17 00:00:00 2001
|
||
|
From: Sumit Bose <sbose@redhat.com>
|
||
|
Date: Thu, 22 Nov 2018 11:36:57 +0100
|
||
|
Subject: [PATCH] tests: fix mocking krb5_creds in test_copy_ccache
|
||
|
|
||
|
To just test some ccache related functionality without talking to an
|
||
|
actual KDC to get the tickets some needed libkrb5 structs were mocked
|
||
|
based on tests from the MIT Kerberos source code. One struct member
|
||
|
(is_skey) was so far not regarded by libkrb5 for out test case. But a
|
||
|
recent fix for http://krbdev.mit.edu/rt/Ticket/Display.html?id=8718
|
||
|
changed this and we have to change the mocking.
|
||
|
|
||
|
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
||
|
---
|
||
|
src/tests/cmocka/test_copy_ccache.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/tests/cmocka/test_copy_ccache.c b/src/tests/cmocka/test_copy_ccache.c
|
||
|
index 84225b6bf..7c76c00e8 100644
|
||
|
--- a/src/tests/cmocka/test_copy_ccache.c
|
||
|
+++ b/src/tests/cmocka/test_copy_ccache.c
|
||
|
@@ -88,7 +88,7 @@ static int setup_ccache(void **state)
|
||
|
test_creds.times.starttime = 2222;
|
||
|
test_creds.times.endtime = 3333;
|
||
|
test_creds.times.renew_till = 4444;
|
||
|
- test_creds.is_skey = 1;
|
||
|
+ test_creds.is_skey = 0;
|
||
|
test_creds.ticket_flags = 5555;
|
||
|
test_creds.addresses = addrs;
|
||
|
|
||
|
--
|
||
|
2.20.0
|
||
|
|