16 all_params_null(
void **state) {
24 no_prov_or_type(
void **state) {
31 no_type(
void **state) {
36 get_std_and_ty(
void **state) {
42 assert_string_equal(std,
"stonith");
44 assert_string_equal(ty,
"fence_xvm");
51 get_all_values(
void **state) {
57 assert_string_equal(std,
"ocf");
58 assert_string_equal(prov,
"pacemaker");
59 assert_string_equal(ty,
"ping");
67 get_systemd_values(
void **state) {
73 assert_string_equal(std,
"systemd");
75 assert_string_equal(ty,
"UNIT@A:B");
82 cmocka_unit_test(all_params_null),
83 cmocka_unit_test(no_prov_or_type),
84 cmocka_unit_test(no_type),
85 cmocka_unit_test(get_std_and_ty),
86 cmocka_unit_test(get_all_values),
87 cmocka_unit_test(get_systemd_values))
API related to resource agents.
PCMK__UNIT_TEST(NULL, NULL, cmocka_unit_test(bad_input), cmocka_unit_test(not_found), cmocka_unit_test(find_attrB), cmocka_unit_test(find_attrA_matching))
int crm_parse_agent_spec(const char *spec, char **standard, char **provider, char **type)
Parse a "standard[:provider]:type" agent specification.