def create_backup(self):
     url = self.backup_options['url'].format(self.server_id)
     job_id = backup_utils.create_backup_job(self.tester, url,
                                             self.backup_options['params'],
                                             self.assertEqual)
     self.backup_file = backup_utils.run_backup_job(
         self.tester, job_id, self.backup_options['expected_params'],
         self.assertIn, self.assertNotIn, self.assertEqual)
Exemplo n.º 2
0
 def create_backup(self):
     url = self.backup_options['url'].format(self.server_id)
     job_id = backup_utils.create_backup_job(self.tester, url,
                                             self.backup_options['params'],
                                             self.assertEqual)
     self.backup_file = backup_utils.run_backup_job(
         self.tester,
         job_id,
         self.backup_options['expected_params'],
         self.assertIn,
         self.assertNotIn,
         self.assertEqual
     )
Exemplo n.º 3
0
    def runTest(self):
        self.server_id = parent_node_dict["server"][-1]["server_id"]
        url = self.url.format(self.server_id)

        # Create the backup job
        job_id = backup_utils.create_backup_job(self.tester, url, self.params,
                                                self.assertEqual)
        backup_file = backup_utils.run_backup_job(self.tester, job_id,
                                                  self.expected_params,
                                                  self.assertIn,
                                                  self.assertNotIn,
                                                  self.assertEqual)

        if backup_file is not None:
            if os.path.isfile(backup_file):
                os.remove(backup_file)
Exemplo n.º 4
0
    def runTest(self):
        self.server_id = parent_node_dict["server"][-1]["server_id"]
        url = self.url.format(self.server_id)

        # Create the backup job
        job_id = backup_utils.create_backup_job(self.tester, url, self.params,
                                                self.assertEqual)
        backup_file = backup_utils.run_backup_job(self.tester,
                                                  job_id,
                                                  self.expected_params,
                                                  self.assertIn,
                                                  self.assertNotIn,
                                                  self.assertEqual
                                                  )

        if backup_file is not None:
            if os.path.isfile(backup_file):
                os.remove(backup_file)