20 op_is_probe_test(
void **state)
30 node =
string2xml(
"<lrm_rsc_op operation_key=\"blah\" interval=\"30s\"/>");
34 node =
string2xml(
"<lrm_rsc_op operation=\"monitor\" interval=\"30s\"/>");
38 node =
string2xml(
"<lrm_rsc_op operation=\"start\" interval=\"0\"/>");
42 node =
string2xml(
"<lrm_rsc_op operation=\"monitor\" interval=\"0\"/>");
47 int main(
int argc,
char **argv)
49 const struct CMUnitTest tests[] = {
50 cmocka_unit_test(op_is_probe_test),
53 cmocka_set_message_output(CM_OUTPUT_TAP);
54 return cmocka_run_group_tests(tests, NULL, NULL);
xmlNode * string2xml(const char *input)
int main(int argc, char **argv)
void free_xml(xmlNode *child)
bool pcmk_xe_is_probe(xmlNode *xml_op)