pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Macros
pcmk__evaluate_attr_expression_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 "crmcommon_private.h"
Include dependency graph for pcmk__evaluate_attr_expression_test.c:

Go to the source code of this file.

Macros

#define MATCHED_STRING   "server-north"
 
#define EXPR_SOURCE_LITERAL_PASSES
 
#define EXPR_ID_MISSING
 
#define EXPR_ATTR_MISSING
 
#define EXPR_ATTR_SUBMATCH_PASSES
 
#define EXPR_ATTR_SUBMATCH_FAILS
 
#define EXPR_SOURCE_MISSING
 
#define EXPR_SOURCE_INVALID
 
#define EXPR_SOURCE_LITERAL_VALUE_FAILS
 
#define EXPR_SOURCE_LITERAL_ATTR_FAILS
 
#define EXPR_SOURCE_PARAM_MISSING
 
#define EXPR_SOURCE_PARAM_PASSES
 
#define EXPR_SOURCE_PARAM_FAILS
 
#define EXPR_SOURCE_META_MISSING
 
#define EXPR_SOURCE_META_PASSES
 
#define EXPR_SOURCE_META_FAILS
 
#define EXPR_TYPE_DEFAULT_NUMBER
 
#define EXPR_TYPE_DEFAULT_INT
 
#define EXPR_TYPE_STRING_PASSES
 
#define EXPR_TYPE_STRING_FAILS
 
#define EXPR_TYPE_INTEGER_PASSES
 
#define EXPR_TYPE_INTEGER_FAILS
 
#define EXPR_TYPE_INTEGER_TRUNCATION
 
#define EXPR_TYPE_NUMBER_PASSES
 
#define EXPR_TYPE_NUMBER_FAILS
 
#define EXPR_TYPE_VERSION_PASSES
 
#define EXPR_TYPE_VERSION_EQUALITY
 
#define EXPR_TYPE_VERSION_FAILS
 
#define EXPR_OP_MISSING
 
#define EXPR_OP_INVALID
 
#define EXPR_OP_LT_PASSES
 
#define EXPR_OP_LT_FAILS
 
#define EXPR_OP_GT_PASSES
 
#define EXPR_OP_GT_FAILS
 
#define EXPR_OP_LTE_LT_PASSES
 
#define EXPR_OP_LTE_EQ_PASSES
 
#define EXPR_OP_LTE_FAILS
 
#define EXPR_OP_GTE_GT_PASSES
 
#define EXPR_OP_GTE_EQ_PASSES
 
#define EXPR_OP_GTE_FAILS
 
#define EXPR_OP_EQ_PASSES
 
#define EXPR_OP_EQ_FAILS
 
#define EXPR_OP_NE_PASSES
 
#define EXPR_OP_NE_FAILS
 
#define EXPR_OP_DEFINED_PASSES
 
#define EXPR_OP_DEFINED_FAILS
 
#define EXPR_OP_DEFINED_WITH_VALUE
 
#define EXPR_OP_UNDEFINED_PASSES
 
#define EXPR_OP_UNDEFINED_FAILS
 
#define EXPR_VALUE_MISSING_DEFINED_OK
 
#define EXPR_VALUE_MISSING_EQ_OK
 
#define expr_test(f)   cmocka_unit_test_setup_teardown(f, setup, teardown)
 

Macro Definition Documentation

◆ EXPR_ATTR_MISSING

#define EXPR_ATTR_MISSING
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
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 142 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_ATTR_SUBMATCH_FAILS

#define EXPR_ATTR_SUBMATCH_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='undefined-%1' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_DEFINED "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_DEFINED
Definition: options.h:143

Definition at line 164 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_ATTR_SUBMATCH_PASSES

#define EXPR_ATTR_SUBMATCH_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='prefer-%1' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_DEFINED "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_DEFINED
Definition: options.h:143

Definition at line 153 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_ID_MISSING

#define EXPR_ID_MISSING
Value:
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

Definition at line 124 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_DEFINED_FAILS

#define EXPR_OP_DEFINED_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='boo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_DEFINED "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_DEFINED
Definition: options.h:143

Definition at line 703 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_DEFINED_PASSES

#define EXPR_OP_DEFINED_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_DEFINED "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_DEFINED
Definition: options.h:143

Definition at line 692 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_DEFINED_WITH_VALUE

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

Definition at line 714 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_EQ_FAILS

#define EXPR_OP_EQ_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_ATTRIBUTE "='num' " \
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
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 652 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_EQ_PASSES

#define EXPR_OP_EQ_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_NUMBER "' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='bar' " \
PCMK_XA_VALUE_SOURCE "='" PCMK_VALUE_LITERAL "' />"
#define PCMK_VALUE_NUMBER
Definition: options.h:182
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define PCMK_VALUE_LITERAL
Definition: options.h:165
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 638 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_GT_FAILS

#define EXPR_OP_GT_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_GT "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='20' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_GT
Definition: options.h:158
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 546 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_GT_PASSES

#define EXPR_OP_GT_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_GT "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='2' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_GT
Definition: options.h:158
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 533 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_GTE_EQ_PASSES

#define EXPR_OP_GTE_EQ_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_GTE "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='10' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_GTE
Definition: options.h:159
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 611 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_GTE_FAILS

#define EXPR_OP_GTE_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_GTE "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='11' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_GTE
Definition: options.h:159
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 624 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_GTE_GT_PASSES

#define EXPR_OP_GTE_GT_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_GTE "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='1' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_GTE
Definition: options.h:159
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 598 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_INVALID

#define EXPR_OP_INVALID
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='not-an-operation' " \
PCMK_XA_VALUE "='bar' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 495 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_LT_FAILS

#define EXPR_OP_LT_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_LT "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='2' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_LT
Definition: options.h:166
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 520 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_LT_PASSES

#define EXPR_OP_LT_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_LT "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='20' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_LT
Definition: options.h:166
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 507 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_LTE_EQ_PASSES

#define EXPR_OP_LTE_EQ_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_LTE "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='10' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_LTE
Definition: options.h:167
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 572 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_LTE_FAILS

#define EXPR_OP_LTE_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_LTE "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='9' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_LTE
Definition: options.h:167
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 585 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_LTE_LT_PASSES

#define EXPR_OP_LTE_LT_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_LTE "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='20' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_LTE
Definition: options.h:167
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 559 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_MISSING

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

Definition at line 484 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_NE_FAILS

#define EXPR_OP_NE_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_NE "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='10' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_INTEGER
Definition: options.h:164
#define PCMK_VALUE_NE
Definition: options.h:176

Definition at line 679 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_NE_PASSES

#define EXPR_OP_NE_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_STRING "' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_NE "' " \
PCMK_XA_VALUE "='bat' " \
PCMK_XA_VALUE_SOURCE "='" PCMK_VALUE_LITERAL "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_LITERAL
Definition: options.h:165
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_STRING
Definition: options.h:208
#define PCMK_VALUE_NE
Definition: options.h:176

Definition at line 665 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_UNDEFINED_FAILS

#define EXPR_OP_UNDEFINED_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_NOT_DEFINED "' />"
#define PCMK_VALUE_NOT_DEFINED
Definition: options.h:180
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 738 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_OP_UNDEFINED_PASSES

#define EXPR_OP_UNDEFINED_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='boo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_NOT_DEFINED "' />"
#define PCMK_VALUE_NOT_DEFINED
Definition: options.h:180
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 727 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_INVALID

#define EXPR_SOURCE_INVALID
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='bar' " \
PCMK_XA_VALUE_SOURCE "='not-a-source' />"
#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 193 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_LITERAL_ATTR_FAILS

#define EXPR_SOURCE_LITERAL_ATTR_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='not-an-attribute' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='bar' " \
PCMK_XA_VALUE_SOURCE "='" PCMK_VALUE_LITERAL "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define PCMK_VALUE_LITERAL
Definition: options.h:165
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 227 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_LITERAL_PASSES

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

Definition at line 100 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_LITERAL_VALUE_FAILS

#define EXPR_SOURCE_LITERAL_VALUE_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='wrong-value' " \
PCMK_XA_VALUE_SOURCE "='" PCMK_VALUE_LITERAL "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define PCMK_VALUE_LITERAL
Definition: options.h:165
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 213 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_META_FAILS

#define EXPR_SOURCE_META_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='mymeta' " \
PCMK_XA_VALUE_SOURCE "='" PCMK_VALUE_META "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define PCMK_VALUE_META
Definition: options.h:170
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 306 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_META_MISSING

#define EXPR_SOURCE_META_MISSING
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='not-a-meta' " \
PCMK_XA_VALUE_SOURCE "='" PCMK_VALUE_META "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define PCMK_VALUE_META
Definition: options.h:170
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 280 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_META_PASSES

#define EXPR_SOURCE_META_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='foo-meta' " \
PCMK_XA_VALUE_SOURCE "='" PCMK_VALUE_META "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define PCMK_VALUE_META
Definition: options.h:170
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 293 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_MISSING

#define EXPR_SOURCE_MISSING
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_ATTRIBUTE "='foo' " \
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 180 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_PARAM_FAILS

#define EXPR_SOURCE_PARAM_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='myparam' " \
PCMK_XA_VALUE_SOURCE "='" PCMK_VALUE_PARAM "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define PCMK_VALUE_PARAM
Definition: options.h:189
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 267 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_PARAM_MISSING

#define EXPR_SOURCE_PARAM_MISSING
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='not-a-param' " \
PCMK_XA_VALUE_SOURCE "='" PCMK_VALUE_PARAM "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define PCMK_VALUE_PARAM
Definition: options.h:189
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 241 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_SOURCE_PARAM_PASSES

#define EXPR_SOURCE_PARAM_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_VALUE "='foo-param' " \
PCMK_XA_VALUE_SOURCE "='" PCMK_VALUE_PARAM "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_EQ
Definition: options.h:149
#define PCMK_VALUE_PARAM
Definition: options.h:189
#define PCMK_XA_ID
Definition: xml_names.h:301

Definition at line 254 of file pcmk__evaluate_attr_expression_test.c.

◆ expr_test

#define expr_test (   f)    cmocka_unit_test_setup_teardown(f, setup, teardown)

Definition at line 778 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_DEFAULT_INT

#define EXPR_TYPE_DEFAULT_INT
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_GT "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='2' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_GT
Definition: options.h:158

Definition at line 337 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_DEFAULT_NUMBER

#define EXPR_TYPE_DEFAULT_NUMBER
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_GT "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='2.5' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_GT
Definition: options.h:158

Definition at line 324 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_INTEGER_FAILS

#define EXPR_TYPE_INTEGER_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='11' />"
#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
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 389 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_INTEGER_PASSES

#define EXPR_TYPE_INTEGER_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='10' />"
#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
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 376 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_INTEGER_TRUNCATION

#define EXPR_TYPE_INTEGER_TRUNCATION
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_INTEGER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='10.5' />"
#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
#define PCMK_VALUE_INTEGER
Definition: options.h:164

Definition at line 402 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_NUMBER_FAILS

#define EXPR_TYPE_NUMBER_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_NUMBER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='10.1' />"
#define PCMK_VALUE_NUMBER
Definition: options.h:182
#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 428 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_NUMBER_PASSES

#define EXPR_TYPE_NUMBER_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_NUMBER "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_VALUE "='10.0' />"
#define PCMK_VALUE_NUMBER
Definition: options.h:182
#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 415 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_STRING_FAILS

#define EXPR_TYPE_STRING_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_STRING "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_ATTRIBUTE "='foo' " \
PCMK_XA_VALUE "='bat' />"
#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
#define PCMK_VALUE_STRING
Definition: options.h:208

Definition at line 363 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_STRING_PASSES

#define EXPR_TYPE_STRING_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_STRING "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_ATTRIBUTE "='foo' " \
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
#define PCMK_VALUE_STRING
Definition: options.h:208

Definition at line 350 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_VERSION_EQUALITY

#define EXPR_TYPE_VERSION_EQUALITY
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_VERSION "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' " \
PCMK_XA_ATTRIBUTE "='ver' " \
PCMK_XA_VALUE "='3.5' />"
#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
#define PCMK_VALUE_VERSION
Definition: options.h:219

Definition at line 454 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_VERSION_FAILS

#define EXPR_TYPE_VERSION_FAILS
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_VERSION "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_GTE "' " \
PCMK_XA_ATTRIBUTE "='ver' " \
PCMK_XA_VALUE "='4.0' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_VALUE_GTE
Definition: options.h:159
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_VERSION
Definition: options.h:219

Definition at line 467 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_TYPE_VERSION_PASSES

#define EXPR_TYPE_VERSION_PASSES
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_TYPE "='" PCMK_VALUE_VERSION "' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_GT "' " \
PCMK_XA_ATTRIBUTE "='ver' " \
PCMK_XA_VALUE "='3.4.9' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_GT
Definition: options.h:158
#define PCMK_VALUE_VERSION
Definition: options.h:219

Definition at line 441 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_VALUE_MISSING_DEFINED_OK

#define EXPR_VALUE_MISSING_DEFINED_OK
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='num' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_DEFINED "' />"
#define PCMK_XE_EXPRESSION
Definition: xml_names.h:109
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_VALUE_DEFINED
Definition: options.h:143

Definition at line 754 of file pcmk__evaluate_attr_expression_test.c.

◆ EXPR_VALUE_MISSING_EQ_OK

#define EXPR_VALUE_MISSING_EQ_OK
Value:
"<" PCMK_XE_EXPRESSION " " PCMK_XA_ID "='e' " \
PCMK_XA_ATTRIBUTE "='not-an-attr' " \
PCMK_XA_OPERATION "='" PCMK_VALUE_EQ "' />"
#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 765 of file pcmk__evaluate_attr_expression_test.c.

◆ MATCHED_STRING

#define MATCHED_STRING   "server-north"

Definition at line 24 of file pcmk__evaluate_attr_expression_test.c.