ehlo,

ipa_kdb_tests test failed for me on minimal f23.

LS
>From ba5ecf13cac1b4822651987ba5db9ed16214cb8f Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lsleb...@redhat.com>
Date: Thu, 12 Nov 2015 19:22:56 +0000
Subject: [PATCH 1/8] ipa_kdb_tests: Fix test with default krb5.conf

Default krb5.conf needn't have defined default_realm.
Unit tests should not rely on existing default value.
---
 daemons/ipa-kdb/tests/ipa_kdb_tests.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/daemons/ipa-kdb/tests/ipa_kdb_tests.c 
b/daemons/ipa-kdb/tests/ipa_kdb_tests.c
index 
edd4ae0975628d6b3abe9bab2852c990c9a8c590..9f577529c7f8a22da2bb1a01898e804b6bc6d259
 100644
--- a/daemons/ipa-kdb/tests/ipa_kdb_tests.c
+++ b/daemons/ipa-kdb/tests/ipa_kdb_tests.c
@@ -82,6 +82,10 @@ void setup(void **state)
 
     kerr = krb5_init_context(&krb5_ctx);
     assert_int_equal(kerr, 0);
+
+    kerr = krb5_set_default_realm(krb5_ctx, "EXAMPLE.COM");
+    assert_int_equal(kerr, 0);
+
     kerr = krb5_db_setup_lib_handle(krb5_ctx);
     assert_int_equal(kerr, 0);
 
-- 
2.5.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to