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.

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Lukas Slebodnik 2015-11-12 19:22:56 +00:00 committed by Martin Basti
parent 75c26f9ec8
commit 73058af717

View File

@ -82,6 +82,10 @@ static int 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);