Merge "Added test for job update using cli"

This commit is contained in:
Jenkins 2016-11-12 02:30:25 +00:00 committed by Gerrit Code Review
commit be8841e30e
2 changed files with 9 additions and 0 deletions

View File

@ -55,6 +55,14 @@ class SaharaJobCLITest(base.ClientTestBase):
if not check_table:
raise self.skipException('No table to show information')
def openstack_job_update(self, job_id):
self.assertTableStruct(
self.listing_result(
'job update --public %s' % job_id), [
'Field',
'Value'
])
def openstack_job_delete(self, job_id):
delete_job = self.openstack('dataprocessing job delete',
params=job_id)

View File

@ -154,6 +154,7 @@ class Scenario(images.SaharaImageCLITest,
input_file, output_file)
self.openstack_job_list()
self.openstack_job_show(job_id)
self.openstack_job_update(job_id)
self.openstack_job_delete(job_id)
self.openstack_data_source_delete(input_file)
self.openstack_data_source_delete(output_file)