mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-kdb: fix unit tests
Reviewed-By: Jakub Hrozek <jhrozek@redhat.com>
This commit is contained in:
parent
179423761e
commit
cfa2f2146d
@ -79,6 +79,7 @@ ipa_kdb_tests_LDADD = \
|
|||||||
$(KRB5_LIBS) \
|
$(KRB5_LIBS) \
|
||||||
$(LDAP_LIBS) \
|
$(LDAP_LIBS) \
|
||||||
$(NDRPAC_LIBS) \
|
$(NDRPAC_LIBS) \
|
||||||
|
$(UNISTRING_LIBS) \
|
||||||
$(NSS_LIBS) \
|
$(NSS_LIBS) \
|
||||||
-lkdb5 \
|
-lkdb5 \
|
||||||
-lsss_idmap \
|
-lsss_idmap \
|
||||||
|
@ -174,7 +174,9 @@ START_TEST(test_get_authz_data_types)
|
|||||||
for (c = 0; test_set[c].authz_data != NULL ||
|
for (c = 0; test_set[c].authz_data != NULL ||
|
||||||
test_set[c].global_authz_data != NULL; c++) {
|
test_set[c].global_authz_data != NULL; c++) {
|
||||||
ied->authz_data = test_set[c].authz_data;
|
ied->authz_data = test_set[c].authz_data;
|
||||||
ipa_ctx->authz_data = test_set[c].global_authz_data;
|
ipa_ctx->config.authz_data = test_set[c].global_authz_data;
|
||||||
|
/* Set last_update to avoid LDAP lookups during tests */
|
||||||
|
ipa_ctx->config.last_update = time(NULL);
|
||||||
entry->princ = test_set[c].princ;
|
entry->princ = test_set[c].princ;
|
||||||
get_authz_data_types(krb5_ctx, entry, &with_pac, &with_pad);
|
get_authz_data_types(krb5_ctx, entry, &with_pac, &with_pad);
|
||||||
fail_unless(with_pad == test_set[c].exp_with_pad, "with_pad not %s %s.",
|
fail_unless(with_pad == test_set[c].exp_with_pad, "with_pad not %s %s.",
|
||||||
|
Loading…
Reference in New Issue
Block a user