Skip to content

Commit

Permalink
Dev: unittest: Adjust unit test based on previous changes
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Oct 24, 2022
1 parent 91879fb commit fa26e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unittests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,11 @@ def test_configs(self, mock_error):
b = [
'<node uname="node1"><instance_attributes><nvpair name="mem" value="16G"/></instance_attributes></node>',
'<node uname="node2"><utilization><nvpair name="cpu" value="4"/></utilization></node>',
'<primitive id="st" class="stonith" type="ssh"><instance_attributes><nvpair name="hostlist" value="node1 node2"/></instance_attributes><meta_attributes><nvpair name="target-role" value="Started"/><nvpair name="requires" value="nothing"/></meta_attributes><operations><op name="start" timeout="60s" interval="0"/><op name="monitor" interval="60m" timeout="60s"/></operations></primitive>',
'<primitive id="st" class="stonith" type="ssh"><instance_attributes><nvpair name="hostlist" value="node1 node2"/></instance_attributes><meta_attributes><nvpair name="target-role" value="Started"/><nvpair name="requires" value="nothing"/></meta_attributes><operations><op name="start" timeout="60s" interval="0s"/><op name="monitor" interval="60m" timeout="60s"/></operations></primitive>',
'<primitive id="st2" class="stonith" type="ssh"><instance_attributes><nvpair name="hostlist" value="node1 node2"/></instance_attributes></primitive>',
'<primitive id="d1" class="ocf" provider="pacemaker" type="Dummy"><operations id="d1-ops"><op name="monitor" interval="60m"/><op name="monitor" interval="120m"><instance_attributes><nvpair name="OCF_CHECK_LEVEL" value="10"/></instance_attributes></op></operations></primitive>',
'<op name="monitor" rsc="d1" interval="60s" timeout="30s"/>',
'<primitive id="d2" class="ocf" provider="heartbeat" type="Delay"><instance_attributes><nvpair name="mondelay" value="60"/></instance_attributes><operations><op name="start" timeout="60s" interval="0"/><op name="stop" timeout="60s" interval="0"/></operations></primitive>',
'<primitive id="d2" class="ocf" provider="heartbeat" type="Delay"><instance_attributes><nvpair name="mondelay" value="60"/></instance_attributes><operations><op name="start" timeout="60s" interval="0s"/><op name="stop" timeout="60s" interval="0s"/></operations></primitive>',
'<op name="monitor" role="Started" rsc="d2" interval="60s" timeout="30s"/>',
'<group id="g1"><crmsh-ref id="d1"/><crmsh-ref id="d2"/></group>',
'<primitive id="d3" class="ocf" provider="pacemaker" type="Dummy"/>',
Expand Down

0 comments on commit fa26e39

Please sign in to comment.