From f0387807a3bfe98dff59b962bb7d5a4422ec047c Mon Sep 17 00:00:00 2001 From: liangxin1300 Date: Wed, 25 Aug 2021 09:21:01 +0800 Subject: [PATCH] Dev: testcases: origin testcases change for using logging in crmsh --- test/crm-interface | 4 ++-- test/testcases/common.excl | 2 +- test/testcases/edit.exp | 6 +++--- test/testcases/scripts.exp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/crm-interface b/test/crm-interface index 96e74c402e..8f97d6fcf8 100644 --- a/test/crm-interface +++ b/test/crm-interface @@ -17,11 +17,11 @@ crm_setup() { $CRM_NO_REG options reset $CRM_NO_REG options check-frequency on-verify $CRM_NO_REG options check-mode relaxed - $CRM_NO_REG cib delete $CIB 2>/dev/null + $CRM_NO_REG cib delete $CIB >/dev/null 2>&1 } crm_mksample() { - $CRM_NO_REG cib new $CIB empty 2>/dev/null + $CRM_NO_REG cib new $CIB empty >/dev/null 2>&1 $CRM_NO_REG -c $CIB<> -OK: 10: Configure cluster resources +INFO: 10: Configure cluster resources .INP: json '["show", "mailto"]' {"category": "basic", "longdesc": "Notifies recipient by e-mail in the event of a resource takeover.", "name": "mailto", "shortdesc": "E-Mail", "steps": [{"longdesc": " This is a resource agent for MailTo. It sends email to a sysadmin\nwhenever a takeover occurs.", "parameters": [{"advanced": false, "longdesc": "", "name": "id", "required": true, "shortdesc": "Identifier for the cluster resource", "type": "resource", "unique": true}, {"advanced": false, "example": "", "longdesc": " The email address of sysadmin.", "name": "email", "required": true, "shortdesc": "Email address", "type": "email", "unique": false}, {"advanced": false, "example": "Resource Group", "longdesc": " The subject of the email.", "name": "subject", "required": false, "shortdesc": "Subject", "type": "string", "unique": false}], "required": true, "shortdesc": "Notifies recipients by email in the event of resource takeover"}]} .INP: json '["verify", "mailto", {"id":"foo", "email":"test@example.com", "subject":"hello"}]'