13 #include <libxml/tree.h> 21 "<" PCMK_XE_STATUS ">" \ 22 "<" PCMK__XE_NODE_STATE " " PCMK_XA_UNAME "='node1'>" \ 23 "<" PCMK__XE_TRANSIENT_ATTRIBUTES ">" \ 24 "<" PCMK_XE_INSTANCE_ATTRIBUTES ">" \ 25 "<" PCMK_XE_NVPAIR " " \ 26 PCMK_XA_NAME "='" PCMK__NODE_ATTR_SHUTDOWN "' " \ 27 PCMK_XA_VALUE "='999'/>" \ 28 "</" PCMK_XE_INSTANCE_ATTRIBUTES ">" \ 29 "</" PCMK__XE_TRANSIENT_ATTRIBUTES ">" \ 30 "</" PCMK__XE_NODE_STATE ">" \ 31 "</" PCMK_XE_STATUS ">" \ 35 null_args(
void **state)
47 shutdown_absent(
void **state)
58 shutdown_present(
void **state)
68 cmocka_unit_test(null_args),
69 cmocka_unit_test(shutdown_absent),
70 cmocka_unit_test(shutdown_present))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
const char * pcmk_cib_node_shutdown(xmlNode *cib, const char *node)
Get value of a node's shutdown attribute from CIB, if present.
void free_xml(xmlNode *child)
xmlNode * pcmk__xml_parse(const char *input)