This source file includes following definitions.
- is_pcmk_acl_required
1
2
3
4
5
6
7
8
9
10 #include <crm_internal.h>
11
12 #include <crm/common/unittest_internal.h>
13 #include <crm/common/acl.h>
14
15 static void
16 is_pcmk_acl_required(void **state)
17 {
18 assert_false(pcmk_acl_required(NULL));
19 assert_false(pcmk_acl_required(""));
20 assert_true(pcmk_acl_required("123"));
21 assert_false(pcmk_acl_required(CRM_DAEMON_USER));
22 assert_false(pcmk_acl_required("root"));
23 }
24
25 PCMK__UNIT_TEST(NULL, NULL,
26 cmocka_unit_test(is_pcmk_acl_required))