Example #1
0
    def test_status_changed_to_resize(self):
        self.log_current_users()
        self.obtain_flavor_ids()
        self.dbaas.instances.resize_instance(
            self.instance_id,
            self.get_flavor_href(flavor_id=self.expected_new_flavor_id))
        assert_equal(202, self.dbaas.last_http_code)

        #(WARNING) IF THE RESIZE IS WAY TOO FAST THIS WILL FAIL
        assert_unprocessable(
            self.dbaas.instances.resize_instance, self.instance_id,
            self.get_flavor_href(flavor_id=self.expected_new_flavor_id))
Example #2
0
    def test_status_changed_to_resize(self):
        self.log_current_users()
        self.obtain_flavor_ids()
        self.dbaas.instances.resize_instance(
            self.instance_id,
            self.get_flavor_href(flavor_id=self.expected_new_flavor_id))
        assert_equal(202, self.dbaas.last_http_code)

        #(WARNING) IF THE RESIZE IS WAY TOO FAST THIS WILL FAIL
        assert_unprocessable(
            self.dbaas.instances.resize_instance,
            self.instance_id,
            self.get_flavor_href(flavor_id=self.expected_new_flavor_id))
Example #3
0
 def test_backup_delete_still_running(self):
     """test delete backup when it is running"""
     result = instance_info.dbaas.backups.list()
     backup = result[0]
     assert_unprocessable(instance_info.dbaas.backups.delete, backup.id)
Example #4
0
 def test_backup_create_another_backup_running(self):
     """test create backup when another backup is running"""
     assert_unprocessable(instance_info.dbaas.backups.create,
                          'backup_test2', instance_info.id,
                          'test description2')
Example #5
0
 def test_instance_action_right_after_backup_create(self):
     """test any instance action while backup is running"""
     assert_unprocessable(instance_info.dbaas.instances.resize_instance,
                          instance_info.id, 1)
Example #6
0
 def test_backup_delete_still_running(self):
     """test delete backup when it is running"""
     result = instance_info.dbaas.backups.list()
     backup = result[0]
     assert_unprocessable(instance_info.dbaas.backups.delete, backup.id)
Example #7
0
 def test_backup_create_another_backup_running(self):
     """test create backup when another backup is running"""
     assert_unprocessable(instance_info.dbaas.backups.create,
                          'backup_test2', instance_info.id,
                          'test description2')
Example #8
0
 def test_instance_action_right_after_backup_create(self):
     """test any instance action while backup is running"""
     assert_unprocessable(instance_info.dbaas.instances.resize_instance,
                          instance_info.id, 1)