pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Macros
pcmk__evaluate_condition_test.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <glib.h>
#include <crm/common/xml.h>
#include <crm/common/rules_internal.h>
#include <crm/common/unittest_internal.h>
Include dependency graph for pcmk__evaluate_condition_test.c:

Go to the source code of this file.

Macros

#define EXPR_ATTRIBUTE
 
#define EXPR_INVALID   "<not_an_expression " PCMK_XA_ID "='e' />"
 
#define EXPR_LOCATION
 
#define EXPR_DATE
 
#define EXPR_RESOURCE
 
#define EXPR_OP
 
#define EXPR_SUBRULE
 

Macro Definition Documentation

◆ EXPR_ATTRIBUTE

#define EXPR_ATTRIBUTE
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='bar' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 36 of file pcmk__evaluate_condition_test.c.

◆ EXPR_DATE

#define EXPR_DATE
Value:
PCMK_XA_OPERATION "='" PCMK_VALUE_IN_RANGE "' " \
PCMK_XA_START "='2024-02-01 12:00:00' " \
PCMK_XA_END "='2024-02-01 15:00:00' />"
#define PCMK_XE_DATE_EXPRESSION
Definition: xml_names.h:96
#define PCMK_VALUE_IN_RANGE
Definition: options.h:162
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 119 of file pcmk__evaluate_condition_test.c.

◆ EXPR_INVALID

#define EXPR_INVALID   "<not_an_expression " PCMK_XA_ID "='e' />"

Definition at line 61 of file pcmk__evaluate_condition_test.c.

◆ EXPR_LOCATION

#define EXPR_LOCATION
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='" CRM_ATTR_UNAME "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='node1' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define CRM_ATTR_UNAME
Definition: crm.h:99
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 97 of file pcmk__evaluate_condition_test.c.

◆ EXPR_OP

#define EXPR_OP
Value:
PCMK_XA_NAME "='" PCMK_ACTION_MONITOR "' " \
PCMK_XA_INTERVAL "='10s' />"
#define PCMK_ACTION_MONITOR
Definition: actions.h:60
#define PCMK_XE_OP_EXPRESSION
Definition: xml_names.h:148
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 159 of file pcmk__evaluate_condition_test.c.

◆ EXPR_RESOURCE

#define EXPR_RESOURCE
Value:
PCMK_XA_CLASS "='" PCMK_RESOURCE_CLASS_OCF "' " \
PCMK_XA_TYPE "='IPaddr2' />"
#define PCMK_RESOURCE_CLASS_OCF
Definition: agents.h:27
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_XE_RSC_EXPRESSION
Definition: xml_names.h:187

Definition at line 144 of file pcmk__evaluate_condition_test.c.

◆ EXPR_SUBRULE

#define EXPR_SUBRULE
Value:
"<" PCMK_XE_RULE " " PCMK_XA_ID "='r' " \
" <" PCMK_XE_OP_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_NAME "='" PCMK_ACTION_MONITOR "' " \
PCMK_XA_INTERVAL "='10s' /> />"
#define PCMK_ACTION_MONITOR
Definition: actions.h:60
#define PCMK_XE_OP_EXPRESSION
Definition: xml_names.h:148
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_XE_RULE
Definition: xml_names.h:191

Definition at line 174 of file pcmk__evaluate_condition_test.c.