Lukas Slebodnik
73058af717
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 >
2015-11-18 12:55:42 +01:00
Lukas Slebodnik
75c26f9ec8
cmocka_tests: Do not use deprecated cmocka interface
...
The cmocka-1.0 introduced new interface for tests
which is not compatible with the old one.
And the old interface is deprecated which caused compiled warnings.
Reviewed-By: Martin Basti <mbasti@redhat.com >
2015-11-18 12:54:43 +01:00
Lukas Slebodnik
2735db0d0e
ipa_kdb_tests: Fix warning Wmissing-braces
...
tests/ipa_kdb_tests.c:254:9: warning: missing braces around initializer [-Wmissing-braces]
{3, {BLACKLIST_SID"-1000", BLACKLIST_SID"-1001", BLACKLIST_SID"-1002"},
^
tests/ipa_kdb_tests.c:254:9: note: (near initialization for ‘test_data[6]’)
tests/ipa_kdb_tests.c:256:9: warning: missing braces around initializer [-Wmissing-braces]
{0, NULL, 0 , NULL}
^
tests/ipa_kdb_tests.c:256:9: note: (near initialization for ‘test_data[7]’)
tests/ipa_kdb_tests.c:234:21: warning: missing braces around initializer [-Wmissing-braces]
} test_data[] = {
^
Reviewed-By: Martin Basti <mbasti@redhat.com >
2015-11-13 18:37:23 +01:00
Lukas Slebodnik
681afc4914
ipa_kdb_tests: Remove unused variables
...
Reviewed-By: Martin Basti <mbasti@redhat.com >
2015-11-13 18:37:23 +01:00
Sumit Bose
5017726eba
ipa-kdb: add unit_tests for string_to_sid() and dom_sid_string()
...
Reviewed-By: Tomas Babej <tbabej@redhat.com >
2015-07-08 01:56:52 +02:00
Sumit Bose
7a1b4dcafc
ipa-kdb: add unit-test for filter_logon_info()
...
Reviewed-By: Tomas Babej <tbabej@redhat.com >
2015-07-08 01:56:52 +02:00
Sumit Bose
9d026ba824
ipa-kdb: convert test to cmocka
...
Reviewed-By: Tomas Babej <tbabej@redhat.com >
2015-07-08 01:56:52 +02:00
Sumit Bose
757272a3f8
ipa-kdb: fix unit tests
...
Reviewed-By: Jakub Hrozek <jhrozek@redhat.com >
2014-09-26 11:28:26 +02:00
Sumit Bose
efd4d80827
Add unit test for get_authz_data_types()
...
https://fedorahosted.org/freeipa/ticket/2960
2013-03-08 10:46:00 +01:00