16 all_params_null(
void **state) {
24 no_prov_or_type(
void **state) {
35 no_type(
void **state) {
44 get_std_and_ty(
void **state) {
50 assert_string_equal(std,
"stonith");
52 assert_string_equal(ty,
"fence_xvm");
59 get_all_values(
void **state) {
65 assert_string_equal(std,
"ocf");
66 assert_string_equal(prov,
"pacemaker");
67 assert_string_equal(ty,
"ping");
75 get_systemd_values(
void **state) {
81 assert_string_equal(std,
"systemd");
83 assert_string_equal(ty,
"UNIT@A:B");
90 cmocka_unit_test(all_params_null),
91 cmocka_unit_test(no_prov_or_type),
92 cmocka_unit_test(no_type),
93 cmocka_unit_test(get_std_and_ty),
94 cmocka_unit_test(get_all_values),
95 cmocka_unit_test(get_systemd_values))
API related to resource agents.
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
int crm_parse_agent_spec(const char *spec, char **standard, char **provider, char **type)
Parse a "standard[:provider]:type" agent specification.