Skip to content

Commit

Permalink
Dev: behave: Add functional test for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Jan 27, 2025
1 parent 4d7234e commit 6e804bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/features/resource_set.feature
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,10 @@ Feature: Use "crm configure set" to update attributes and operations
And Run "crm configure load xml update /tmp/d.xml" on "hanode1"
And Try "crm configure show|grep -E "^xml <primitive""
Then Expected return code is "1"
@clean
Scenario: Prevent adding unknown operation (bsc#1236442)
When Try "crm configure primitive stateful-1 ocf:pacemaker:Stateful op monitor_Slave interval=10s op monitor_Master interval=5s" on "hanode1"
Then Expected "not found in Resource Agent meta-data" in stderr
When Try "crm configure show stateful-1" on "hanode1"
Then Expected "object stateful-1 does not exist" in stderr

0 comments on commit 6e804bf

Please sign in to comment.