Searched refs:expected (Results 1 - 17 of 17) sorted by relevance

/sssd-io/src/tests/cmocka/
H A Dtest_ad_access_filter.c73 struct filter_parse_result *expected)
79 assert_non_null(expected);
87 assert_int_equal(ret, expected->result);
88 if (expected->result != EOK) {
92 if (expected->best_match != NULL) {
93 assert_string_equal(best_match, expected->best_match);
108 struct filter_parse_result expected = { local
113 test_parse_filter_generic(NULL, &expected);
120 struct filter_parse_result expected = { local
125 test_parse_filter_generic("name=foo", &expected);
72 test_parse_filter_generic(const char *filter_in, struct filter_parse_result *expected) argument
134 struct filter_parse_result expected = { local
149 struct filter_parse_result expected = { local
177 test_parse_generic(const char *filter_in, struct parse_result *expected) argument
221 struct parse_result expected = { local
233 struct parse_result expected = { local
255 struct parse_result expected = { local
267 struct parse_result expected = { local
280 struct parse_result expected = { local
[all...]
H A Dtest_ad_gpo.c72 struct som_list_result *expected)
90 assert_int_equal(ret, expected->result);
95 assert_int_equal(num_soms, expected->num_soms);
97 for (i=0; i<expected->num_soms; i++){
100 expected->som_dns[i],
101 strlen(expected->som_dns[i])) != 0) {
123 struct som_list_result expected = { local
130 &expected);
135 struct som_list_result expected = { local
139 test_populate_som_list("malformed target dn", &expected);
71 test_populate_som_list(const char *target_dn, struct som_list_result *expected) argument
152 test_populate_gplink_list(const char *input_gplink_value, bool allow_enforced_only, struct gplink_list_result *expected) argument
208 struct gplink_list_result expected = { local
225 struct gplink_list_result expected = { local
242 struct gplink_list_result expected = { local
256 struct gplink_list_result expected = { local
269 test_ad_gpo_ace_includes_client_sid(const char *user_sid, const char **group_sids, int group_size, struct dom_sid ace_dom_sid, bool expected) argument
[all...]
H A Dtest_sbus_opath.c125 const char **expected)
130 assert_non_null(expected);
134 assert_non_null(expected[i]);
135 assert_string_equal(input[i], expected[i]);
139 assert_null(expected[i]);
144 const char **expected,
148 check_opath_components(input, expected);
154 const char *expected[] = {"object", "path", "parts", NULL}; local
155 size_t expected_len = sizeof(expected) / sizeof(char *) - 1;
162 check_opath_components_and_length(components, len, expected, expected_le
124 check_opath_components(char **input, const char **expected) argument
142 check_opath_components_and_length(char **input, size_t input_len, const char **expected, size_t expected_len) argument
169 const char *expected[] = {"parts", NULL}; local
184 const char *expected[] = {"parts", NULL}; local
210 const char *expected[] = {"object", "redhat.com", NULL}; local
225 const char *expected[] = {"object", "path", "parts", NULL}; local
[all...]
H A Dsbus_internal_tests.c39 int64_t expected; member in struct:sbus_get_id_ctx
151 assert_int_equal(uid, test_ctx->expected);
164 test_ctx->expected = 42;
165 uid = test_ctx->expected;
212 test_ctx->expected = -1;
H A Dtest_ifp.c221 static void attr_parse_test(const char *expected[], const char *input) argument
231 if (expected) {
234 assert_string_list_equal(res, expected);
243 static void attr_parse_test_ex(const char *expected[], const char *input, argument
254 if (expected) {
257 assert_string_list_equal(res, expected);
H A Dtest_nested_groups.c190 const char * expected[] = { "user1", local
233 assert_int_equal(test_ctx->num_users, N_ELEMENTS(expected));
237 expected, N_ELEMENTS(expected));
313 const char * expected[] = { "rootgroup", local
359 assert_int_equal(test_ctx->num_groups, N_ELEMENTS(expected));
362 expected, N_ELEMENTS(expected));
377 const char * expected[] = { "rootgroup", local
421 assert_int_equal(test_ctx->num_groups, N_ELEMENTS(expected));
[all...]
H A Dtest_nss_srv.c607 static void assert_groups_equal(struct group *expected, argument
612 assert_int_equal(gr->gr_gid, expected->gr_gid);
613 assert_string_equal(gr->gr_name, expected->gr_name);
614 assert_string_equal(gr->gr_passwd, expected->gr_passwd);
617 order_string_array(expected->gr_mem, nmem);
620 assert_string_equal(gr->gr_mem[i], expected->gr_mem[i]);
1541 struct group expected = { local
1554 assert_groups_equal(&expected, &gr, nmem);
1615 struct group expected = { local
1632 expected
1716 struct group expected = { local
1805 struct group expected = { local
1898 struct group expected = { local
2016 struct group expected = { local
[all...]
/sssd-io/src/tests/
H A Dstrtonum-tests.c39 #define CHECK_RESULT(expected, actual) \
41 fail_unless(actual == expected, "Expected %ld, got %ld", \
42 expected, actual); \
45 #define CHECK_ERRNO(expected, actual) \
47 fail_unless(actual == expected, "Expected errno %d[%s], got %d[%s]", \
48 expected, strerror(expected), \
52 #define CHECK_ENDPTR(expected, actual) \
54 fail_unless(actual == expected, "Expected endptr %p, got %p", \
55 expected, actua
72 int32_t expected = 123; local
89 int32_t expected = -123; local
106 int32_t expected = INT32_MAX; local
123 int32_t expected = INT32_MIN; local
140 int32_t expected = INT32_MAX; local
157 int32_t expected = INT32_MIN; local
174 int32_t expected = 12; local
192 int32_t expected = 0; local
210 int32_t expected = 0; local
228 int32_t expected = 0; local
251 uint32_t expected = 123; local
268 uint32_t expected = UINT32_MAX; local
285 uint32_t expected = UINT32_MAX; local
303 uint32_t expected = UINT32_MAX; local
320 uint32_t expected = 12; local
338 uint32_t expected = 0; local
356 uint32_t expected = 0; local
374 uint32_t expected = 0; local
393 uint16_t expected = 123; local
410 uint32_t expected = UINT16_MAX; local
427 uint32_t expected = UINT16_MAX; local
445 uint32_t expected = UINT16_MAX; local
462 uint32_t expected = 12; local
480 uint32_t expected = 0; local
498 uint32_t expected = 0; local
516 uint32_t expected = 0; local
[all...]
H A Dcrypto-tests.c61 int expected; local
64 expected = EOK;
76 fail_if(ret != expected);
79 fail_if(ret != expected);
106 int ret, expected; local
110 expected = EOK;
119 fail_if(ret != expected);
128 const char expected[] = "dGVzdA=="; local
136 fail_if(strcmp(obfpwd,expected) != 0);
147 const unsigned char expected[] local
[all...]
H A Dkrb5_utils-tests.c87 "expected [%d], got [%d].",
90 "expected [%d], got [%d].",
94 "expected [%o], got [%o].", dirname,
337 const char *expected)
348 fail_unless(strcmp(result, expected) == 0,
349 "Expansion failed, result [%s], expected [%s].",
350 result, expected); local
385 "Expansion failed, result [%s], expected [%s].",
392 "Expansion failed, result [%s], expected [%s].",
506 "Expansion failed, result [%s], expected [
336 do_test(const char *file_template, const char *dir_template, const char *expected) argument
515 const char *expected; local
524 result, expected); local
533 result, expected); local
648 const char *expected[] = { "pája@testdomain", "preichl@" DOMAIN_NAME, local
[all...]
H A Dutil-tests.c178 fail_unless(only_ret[0] == NULL, "The parser returned more data than expected\n");
179 fail_unless(only_exp[0] == NULL, "The parser returned less data than expected\n");
654 "Read %d bytes expected %d\n", numread, bufsize);
676 "Wrote %d bytes expected %d\n", numwritten, wsize);
687 "Read %d bytes expected %d\n", numread, numwritten);
709 "Wrote %d bytes expected %d\n", numwritten, wsize);
726 "Read %d bytes expected %d\n", numread, numwritten);
747 "Wrote %d bytes expected %d\n", numwritten, wsize);
758 "Read %d bytes expected %d\n", numread, numwritten);
789 "Read %d bytes expected
1011 bool expected; member in struct:__anon58
[all...]
H A Dsysdb-tests.c1059 /* Check the user was found with the expected FQDN and UID */
1061 fail_unless(uid == _i, "Did not find the expected UID");
1135 "Did not find the expected GID (found %d expected %d)",
1185 "Did not find the expected groupname (found %s expected %s)",
1212 fail_if(count != 1, "Did not find the expected group\n");
1252 "Did not find the expected username (found %s expected %s)",
1373 fail_if(count != 1, "Did not find the expected use
3332 char *expected; local
6367 const int expected = 10; local
6425 const int expected = 10; local
[all...]
/sssd-io/src/tests/intg/
H A Dtest_infopipe.py435 expected = dict(name='usr\\001', uidNumber='181818', gidNumber='181818',
450 assert user_attrs[attr][0] == expected[attr]
479 expected = dict(name='user1', uidNumber='1001', gidNumber='2001',
494 assert user_attrs[attr][0] == expected[attr]
/sssd-io/src/providers/data_provider/
H A Ddp_request.c54 static bool check_data_type(const char *expected, argument
61 tmp = talloc_check_name(ptr, expected);
67 "got [%s].\n", description, expected, talloc_get_name(ptr));
/sssd-io/src/sbus/
H A Dsssd_dbus.h238 size_t expected,
390 * If the method call does not match the expected arguments, then a
392 * expected.
H A Dsssd_dbus_interface.c426 size_t expected,
439 if (len != expected) {
423 sbus_opath_decompose_exact(TALLOC_CTX *mem_ctx, const char *object_path, const char *prefix, size_t expected, char ***_components) argument
/sssd-io/src/db/
H A Dsysdb_init.c281 sysdb_version_check(const char *expected, argument
287 if (strcmp(received, expected) == 0) {
291 ret = sscanf(expected, "%u.%u", &exp_major, &exp_minor);
760 "DB version too old [%s], expected [%s] for domain %s!\n",
801 "DB version too new [%s], expected [%s] for domain %s!\n",
840 "DB version too old [%s], expected [%s] for domain %s!\n",
879 "DB version too new [%s], expected [%s] for domain %s!\n",

Completed in 49 milliseconds