57c5ea8825c7179fd93382dbcbb07e828e5aec19 |
|
29-Jan-2018 |
René Genz <liebundartig@freenet.de> |
Fix minor spelling mistakes in tests/cmocka/*
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
50a7a92f92e1584702bf25e61a50cb1c09c7e260 |
|
29-Jul-2016 |
Sumit Bose <sbose@redhat.com> |
SDAP: add enterprise principal strings for user searches
Unfortunately principal aliases with an alternative realm are stored in
IPA as the string representation of an enterprise principal, i.e.
name\@alt.realm@IPA.REALM. To be able to lookup the alternative
principal in LDAP properly the UPN search filter is extended to search
for this type of name as well.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
3432a503c714732407ea18b2dd32f4f432a6c545 |
|
07-Jul-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
TESTS: Fix the nested group tests to cope with FQDNs
Reviewed-by: Sumit Bose <sbose@redhat.com> |
dea636af4d1902a081ee891f1b19ee2f8729d759 |
|
20-Jun-2016 |
Pavel Březina <pbrezina@redhat.com> |
DP: Switch to new interface
Reviewed-by: Sumit Bose <sbose@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
c6bda70d6131b5e8cd760ad690fae001d1765547 |
|
11-Mar-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
tests: Add a unit test for the external groups resolution
Adds a test that tests a complex nested group hierarchy. Also defines
the talloc chunk for group members to 1 to make sure the realloc branch
is always tested.
Unit test for: https://fedorahosted.org/sssd/ticket/2522
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
c32266e79f9d4bebd0c31eaa8d6fa26050e7fb3e |
|
24-Feb-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
LDAP: Use the IPA provider interface to resolve external group members
Resolves:
https://fedorahosted.org/sssd/ticket/2522
Currently the approach is not optimized for performance, because each
external member is resolved in a full transaction to make sure even ID
views and similar information is processed.
In future, we should implement https://fedorahosted.org/sssd/ticket/2943
we will again be able to process all the data in a single transaction.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
50c9d542e8bf641412debaa82a4dcf67ddb72258 |
|
18-Sep-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
tests: Use unique name for TEST_PATH
We had a cases in patch where two tests were using the same TEST_PATH
and therefore they were stepping each other to the same files
which caused failures. These failures are not easy to reproduce.
This patch uses macro BASE_FILE_STEM for unique name. It should prevent
copy&paste problem resulting to intermittent failures.
@see also
https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
429f8454a40b939604e9a96d780661a94a38da2e |
|
15-Jul-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
tests: Move N_ELEMENTS definition to tests/common.h
Avoids code duplication
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
78fb1789e8a5c2c7c51ad9002bbbdf0a1e390bdf |
|
14-Jun-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
TESTS: Move krb5_try_kdcip to nested group test
Avoids duplicate errors during linking.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
28600ab8d160faa24aae379628dd8a58f50d13c6 |
|
14-Jun-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
TESTS: Add a common function to set up sdap_id_ctx
Reduces code duplication between tests.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
d43c9d18fb263b1ea4071b20e93ce4994583f62f |
|
14-Jun-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
TESTS: Add a common mock_be_ctx function
Reduces code duplication between tests.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
4e5e846de22407f825fe3b4040d79606818a2419 |
|
11-Mar-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
tests: convert all unit tests to cmocka 1.0 or later
All tests now use the cmocka-1.0-compatible API.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
2c7a47b6ed9c9dc721af1eac6c53b706bf1769b6 |
|
30-Jan-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
test_nested_groups: Additional unit tests
Unit test for:
https://fedorahosted.org/sssd/ticket/2531
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
be73b26325bbd9c5a9bf34a32acfdf9b15bda531 |
|
30-Jan-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
TESTS: Mock return value of sdap_get_generic_recv
Reviewed-by: Pavel Reichl <preichl@redhat.com> |
cb4742876508a08ba90c82466c9dba708e4bf999 |
|
09-Jan-2015 |
Pavel Březina <pbrezina@redhat.com> |
tests: remove code duplication in single domain cleanup
Reviewed-by: Michal Židek <mzidek@redhat.com> |
8a8618717c99b7331125fa736b45d9155da797d3 |
|
23-Jul-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
Only check GID if ID-mapping
Reviewed-by: Sumit Bose <sbose@redhat.com> |
6b57784f0f175275fd900eca21c77415e3a5ea52 |
|
09-Jul-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
TOOLS: Always debug to stderr
https://fedorahosted.org/sssd/ticket/2348
Programs that are supposed to only be executed on the foreground should
log to stderr automatically.
Reviewed-by: Michal Židek <mzidek@redhat.com> |
be8e3c2eb7619ae1b94fd8941e0f18c8969b2804 |
|
07-Jul-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
TESTS: Do not rely on order of hash items
The nested group test was checking returned elements in a particular
order. That's not reliable because the returned values are fetched from
a hash iterator that doesn't guarantee the same order on different
systems.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
6815772cb5c1c65de6c93090f4fd191ee02527f1 |
|
01-Jul-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
TESTS: Add more tests for nested groups processing
Adds unit test for basic group retrieval functionality as well as for
testing duplicate members in the LDAP group entry.
These unit tests exercise code added in patch
a47cb2e08e4004179d2a6b5f9a9340200270fbd0
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
3b28d617f9af28e002b1d0a63faa90ef9e23e2ef |
|
01-Jul-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
TESTS: Fix group search base
After fixing the confdb initialization I realized the group DN couldn't
be parsed. This patch fixes that.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
9339e19aa015a7a32791cb94f92d1656361c6662 |
|
01-Jul-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
TESTS: Use the right confdb path
The nested group test only worked by accident. Its confdb settings were
not applied because a wrong confdb path was used.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
1d3cb26bfcd482e8b9718933eea1037eba1c49d7 |
|
12-Mar-2014 |
Lukas Slebodnik <lslebodn@redhat.com> |
TESTS: Remove unused macros
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
a95c006f748fa9df0dd81509b51974133d2786af |
|
12-Mar-2014 |
Lukas Slebodnik <lslebodn@redhat.com> |
TEST: Remove unused argument sysdb_path
Name of sysdb file is automatically generated from domain name and db_path
in function sysdb_domain_init.
talloc_asprintf is called with arguments "%s/cache_%s.ldb", db_path, dom->name
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
e046ae03d0f55b1c8b0ec2fa6139bf86a3449adf |
|
18-Feb-2014 |
Pavel Březina <pbrezina@redhat.com> |
tests: nested groups unit test
Resolves: https://fedorahosted.org/sssd/ticket/2024
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |