Example #1
0
 def test_minimal_success(self):
     self.config.env.push_cib(resources=self.expected_cib)
     stonith.create(self.env_assist.get_env(),
                    self.instance_name,
                    self.agent_name,
                    operations=[],
                    meta_attributes={},
                    instance_attributes={"must-set": "value"})
Example #2
0
 def test_minimal_wait_ok_run_ok(self):
     (self.config.runner.pcmk.can_wait(
         before="runner.cib.load").env.push_cib(
             resources=self.expected_cib,
             wait=self.timeout).runner.pcmk.load_state(
                 resources=self.expected_status))
     stonith.create(self.env_assist.get_env(),
                    self.instance_name,
                    self.agent_name,
                    operations=[],
                    meta_attributes={},
                    instance_attributes={"must-set": "value"},
                    wait=self.timeout)
     self.env_assist.assert_reports([
         fixture.info(
             report_codes.RESOURCE_RUNNING_ON_NODES,
             roles_with_nodes={"Started": ["node1"]},
             resource_id=self.instance_name,
         ),
     ])