diff options
author | Pavel Reichl <preichl@redhat.com> | 2015-07-29 03:57:46 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-07-31 10:16:59 +0200 |
commit | 4b1a46396caf656095e5f5e90d43996bdeaba0f3 (patch) | |
tree | 066b22a5e887fa99d5b88e3794c97c8dfc1ddc2a /src/tests/cmocka/test_sdap.c | |
parent | 4de84af23db74e13e867985c9093f394c9fa8d51 (diff) | |
download | sssd-4b1a46396caf656095e5f5e90d43996bdeaba0f3.tar.gz sssd-4b1a46396caf656095e5f5e90d43996bdeaba0f3.tar.xz sssd-4b1a46396caf656095e5f5e90d43996bdeaba0f3.zip |
SDAP: rename SDAP_CACHE_PURGE_TIMEOUT
Enum member SDAP_CACHE_PURGE_TIMEOUT has counter-intuitive name as it's used
to access 'ldap_purge_cache_timeout' option.
SDAP_CACHE_PURGE_TIMEOUT is more fitting name.
Reviewed-by: Petr Cech <pcech@redhat.com>
Diffstat (limited to 'src/tests/cmocka/test_sdap.c')
-rw-r--r-- | src/tests/cmocka/test_sdap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tests/cmocka/test_sdap.c b/src/tests/cmocka/test_sdap.c index cb3265f2c..75fc34504 100644 --- a/src/tests/cmocka/test_sdap.c +++ b/src/tests/cmocka/test_sdap.c @@ -841,7 +841,7 @@ static int test_sdap_inherit_option_setup(void **state) discard_const("test_princ"); ret = dp_opt_set_int(test_ctx->parent_sdap_opts->basic, - SDAP_CACHE_PURGE_TIMEOUT, 123); + SDAP_PURGE_CACHE_TIMEOUT, 123); assert_int_equal(ret, EOK); *state = test_ctx; @@ -865,7 +865,7 @@ static void test_sdap_inherit_option_null(void **state) int val; val = dp_opt_get_int(test_ctx->child_sdap_opts->basic, - SDAP_CACHE_PURGE_TIMEOUT); + SDAP_PURGE_CACHE_TIMEOUT); assert_int_equal(val, 0); sdap_inherit_options(NULL, @@ -873,7 +873,7 @@ static void test_sdap_inherit_option_null(void **state) test_ctx->child_sdap_opts); val = dp_opt_get_int(test_ctx->child_sdap_opts->basic, - SDAP_CACHE_PURGE_TIMEOUT); + SDAP_PURGE_CACHE_TIMEOUT); assert_int_equal(val, 0); } @@ -885,7 +885,7 @@ static void test_sdap_inherit_option_notset(void **state) const char *inherit_options[] = { "ldap_use_tokengroups", NULL }; val = dp_opt_get_int(test_ctx->child_sdap_opts->basic, - SDAP_CACHE_PURGE_TIMEOUT); + SDAP_PURGE_CACHE_TIMEOUT); assert_int_equal(val, 0); /* parent has nondefault, but it's not supposed to be inherited */ @@ -894,7 +894,7 @@ static void test_sdap_inherit_option_notset(void **state) test_ctx->child_sdap_opts); val = dp_opt_get_int(test_ctx->child_sdap_opts->basic, - SDAP_CACHE_PURGE_TIMEOUT); + SDAP_PURGE_CACHE_TIMEOUT); assert_int_equal(val, 0); } @@ -906,7 +906,7 @@ static void test_sdap_inherit_option_basic(void **state) const char *inherit_options[] = { "ldap_purge_cache_timeout", NULL }; val = dp_opt_get_int(test_ctx->child_sdap_opts->basic, - SDAP_CACHE_PURGE_TIMEOUT); + SDAP_PURGE_CACHE_TIMEOUT); assert_int_equal(val, 0); /* parent has nondefault, but it's not supposed to be inherited */ @@ -915,7 +915,7 @@ static void test_sdap_inherit_option_basic(void **state) test_ctx->child_sdap_opts); val = dp_opt_get_int(test_ctx->child_sdap_opts->basic, - SDAP_CACHE_PURGE_TIMEOUT); + SDAP_PURGE_CACHE_TIMEOUT); assert_int_equal(val, 123); } |