pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Macros
pcmk__evaluate_rsc_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_rsc_expression_test.c:

Go to the source code of this file.

Macros

#define EXPR_ALL_MATCH
 
#define EXPR_ID_MISSING
 
#define EXPR_ID_EMPTY
 
#define EXPR_FAIL_STANDARD
 
#define EXPR_EMPTY_STANDARD
 
#define EXPR_FAIL_PROVIDER
 
#define EXPR_EMPTY_PROVIDER
 
#define EXPR_FAIL_AGENT
 
#define EXPR_EMPTY_AGENT
 
#define EXPR_NO_STANDARD_MATCHES
 
#define EXPR_NO_PROVIDER_MATCHES
 
#define EXPR_NO_AGENT_MATCHES
 
#define EXPR_NO_CRITERIA_MATCHES   "<" PCMK_XE_RSC_EXPRESSION " " PCMK_XA_ID "='e' />"
 

Macro Definition Documentation

◆ EXPR_ALL_MATCH

#define EXPR_ALL_MATCH
Value:
PCMK_XA_CLASS "='" PCMK_RESOURCE_CLASS_OCF "' " \
PCMK_XA_PROVIDER "='heartbeat' " \
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 53 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_EMPTY_AGENT

#define EXPR_EMPTY_AGENT
Value:
PCMK_XA_CLASS "='" PCMK_RESOURCE_CLASS_OCF "' " \
PCMK_XA_PROVIDER "='heartbeat' " PCMK_XA_TYPE "='' />"
#define PCMK_RESOURCE_CLASS_OCF
Definition: agents.h:27
#define PCMK_XA_TYPE
Definition: xml_names.h:430
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_XE_RSC_EXPRESSION
Definition: xml_names.h:187

Definition at line 152 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_EMPTY_PROVIDER

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

Definition at line 129 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_EMPTY_STANDARD

#define EXPR_EMPTY_STANDARD
Value:
PCMK_XA_CLASS "='' />"
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_XE_RSC_EXPRESSION
Definition: xml_names.h:187

Definition at line 107 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_FAIL_AGENT

#define EXPR_FAIL_AGENT
Value:
PCMK_XA_CLASS "='" PCMK_RESOURCE_CLASS_OCF "' " \
PCMK_XA_PROVIDER "='heartbeat' " \
PCMK_XA_TYPE "='IPaddr3' />"
#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 146 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_FAIL_PROVIDER

#define EXPR_FAIL_PROVIDER
Value:
PCMK_XA_CLASS "='" PCMK_RESOURCE_CLASS_OCF "' " \
PCMK_XA_PROVIDER "='pacemaker' " \
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 123 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_FAIL_STANDARD

#define EXPR_FAIL_STANDARD
Value:
PCMK_XA_CLASS "='" PCMK_RESOURCE_CLASS_LSB "' />"
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_XE_RSC_EXPRESSION
Definition: xml_names.h:187
#define PCMK_RESOURCE_CLASS_LSB
Definition: agents.h:29

Definition at line 103 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_ID_EMPTY

#define EXPR_ID_EMPTY
Value:
PCMK_XA_CLASS "='" PCMK_RESOURCE_CLASS_OCF "' " \
PCMK_XA_PROVIDER "='heartbeat' " \
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 84 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_ID_MISSING

#define EXPR_ID_MISSING
Value:
PCMK_XA_CLASS "='" PCMK_RESOURCE_CLASS_OCF "' " \
PCMK_XA_PROVIDER "='heartbeat' " \
PCMK_XA_TYPE "='IPaddr2' />"
#define PCMK_RESOURCE_CLASS_OCF
Definition: agents.h:27
#define PCMK_XE_RSC_EXPRESSION
Definition: xml_names.h:187

Definition at line 78 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_NO_AGENT_MATCHES

#define EXPR_NO_AGENT_MATCHES
Value:
PCMK_XA_CLASS "='" PCMK_RESOURCE_CLASS_OCF "' " \
PCMK_XA_PROVIDER "='heartbeat' />"
#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 191 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_NO_CRITERIA_MATCHES

#define EXPR_NO_CRITERIA_MATCHES   "<" PCMK_XE_RSC_EXPRESSION " " PCMK_XA_ID "='e' />"

Definition at line 202 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_NO_PROVIDER_MATCHES

#define EXPR_NO_PROVIDER_MATCHES
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 180 of file pcmk__evaluate_rsc_expression_test.c.

◆ EXPR_NO_STANDARD_MATCHES

#define EXPR_NO_STANDARD_MATCHES
Value:
PCMK_XA_PROVIDER "='heartbeat' " \
PCMK_XA_TYPE "='IPaddr2' />"
#define PCMK_XA_ID
Definition: xml_names.h:301
#define PCMK_XE_RSC_EXPRESSION
Definition: xml_names.h:187

Definition at line 169 of file pcmk__evaluate_rsc_expression_test.c.