示例#1
0
        def before_all(self):
            target = create_target()
            self.targets = [target]

            action = Action(targets=self.targets, action_type='soft-reboot')
            self.actions = [action]

            self.job = Job(tenant_id='123',
                           name='do_stuff',
                           actions=self.actions,
                           job_id='12345')
示例#2
0
文件: job.py 项目: CloudRift/Rift
        def before_all(self):
            target = create_target()
            self.targets = [target]

            action = Action(targets=self.targets, action_type='soft-reboot')
            self.actions = [action]

            self.job = Job(
                tenant_id='123',
                name='do_stuff',
                actions=self.actions,
                job_id='12345'
            )
示例#3
0
文件: action.py 项目: CloudRift/Rift
 def before_all(self):
     self.example_target = create_target()
     self.example_action = Action(targets=[self.example_target],
                                  action_type='soft-reboot')
示例#4
0
 def before_all(self):
     self.example_target = create_target()
     self.example_action = Action(targets=[self.example_target],
                                  action_type='soft-reboot')
示例#5
0
 def before_all(self):
     self.target = create_target()
     self.example_dict = example_target_dict()