diff options
Diffstat (limited to 'saharaclient/tests/unit/osc/v1')
9 files changed, 10 insertions, 0 deletions
diff --git a/saharaclient/tests/unit/osc/v1/test_cluster_templates.py b/saharaclient/tests/unit/osc/v1/test_cluster_templates.py index 78e67a3..bfa2605 100644 --- a/saharaclient/tests/unit/osc/v1/test_cluster_templates.py +++ b/saharaclient/tests/unit/osc/v1/test_cluster_templates.py @@ -53,6 +53,7 @@ class TestClusterTemplates(fakes.TestDataProcessing): self.app.client_manager.data_processing.node_group_templates) self.ct_mock.reset_mock() self.ngt_mock.reset_mock() + self.app.api_version['data_processing'] = '1' class TestCreateClusterTemplate(TestClusterTemplates): @@ -63,6 +64,7 @@ class TestCreateClusterTemplate(TestClusterTemplates): None, CT_INFO) self.ngt_mock.find_unique.return_value = api_ngt.NodeGroupTemplate( None, CT_INFO['node_groups'][0]) + self.app.api_version['data_processing'] = '1.1' # Command to test self.cmd = osc_ct.CreateClusterTemplate(self.app, None) diff --git a/saharaclient/tests/unit/osc/v1/test_clusters.py b/saharaclient/tests/unit/osc/v1/test_clusters.py index 25197dc..7695ad1 100644 --- a/saharaclient/tests/unit/osc/v1/test_clusters.py +++ b/saharaclient/tests/unit/osc/v1/test_clusters.py @@ -91,6 +91,7 @@ class TestClusters(fakes.TestDataProcessing): self.ngt_mock.reset_mock() self.ct_mock.reset_mock() self.img_mock.reset_mock() + self.app.api_version['data_processing'] = '1' class TestCreateCluster(TestClusters): diff --git a/saharaclient/tests/unit/osc/v1/test_data_sources.py b/saharaclient/tests/unit/osc/v1/test_data_sources.py index 8753206..c37d8ab 100644 --- a/saharaclient/tests/unit/osc/v1/test_data_sources.py +++ b/saharaclient/tests/unit/osc/v1/test_data_sources.py @@ -33,6 +33,7 @@ class TestDataSources(fakes.TestDataProcessing): self.ds_mock = ( self.app.client_manager.data_processing.data_sources) self.ds_mock.reset_mock() + self.app.api_version['data_processing'] = '1' class TestCreateDataSource(TestDataSources): diff --git a/saharaclient/tests/unit/osc/v1/test_images.py b/saharaclient/tests/unit/osc/v1/test_images.py index d116c04..457b3f0 100644 --- a/saharaclient/tests/unit/osc/v1/test_images.py +++ b/saharaclient/tests/unit/osc/v1/test_images.py @@ -32,6 +32,7 @@ class TestImages(fakes.TestDataProcessing): self.image_mock = ( self.app.client_manager.data_processing.images) self.image_mock.reset_mock() + self.app.api_version['data_processing'] = '1' class TestListImages(TestImages): diff --git a/saharaclient/tests/unit/osc/v1/test_job_binaries.py b/saharaclient/tests/unit/osc/v1/test_job_binaries.py index b4d18e0..0b4b66e 100644 --- a/saharaclient/tests/unit/osc/v1/test_job_binaries.py +++ b/saharaclient/tests/unit/osc/v1/test_job_binaries.py @@ -37,6 +37,7 @@ class TestJobBinaries(fakes.TestDataProcessing): super(TestJobBinaries, self).setUp() self.jb_mock = self.app.client_manager.data_processing.job_binaries self.jb_mock.reset_mock() + self.app.api_version['data_processing'] = '1' class TestCreateJobBinary(TestJobBinaries): diff --git a/saharaclient/tests/unit/osc/v1/test_job_templates.py b/saharaclient/tests/unit/osc/v1/test_job_templates.py index 6f88260..9b6b711 100644 --- a/saharaclient/tests/unit/osc/v1/test_job_templates.py +++ b/saharaclient/tests/unit/osc/v1/test_job_templates.py @@ -48,6 +48,7 @@ class TestJobTemplates(fakes.TestDataProcessing): super(TestJobTemplates, self).setUp() self.job_mock = self.app.client_manager.data_processing.jobs self.job_mock.reset_mock() + self.app.api_version['data_processing'] = '1' class TestCreateJobTemplate(TestJobTemplates): diff --git a/saharaclient/tests/unit/osc/v1/test_job_types.py b/saharaclient/tests/unit/osc/v1/test_job_types.py index 8a1a471..ccc7be3 100644 --- a/saharaclient/tests/unit/osc/v1/test_job_types.py +++ b/saharaclient/tests/unit/osc/v1/test_job_types.py @@ -47,6 +47,7 @@ class TestJobTypes(fakes.TestDataProcessing): self.jt_mock = self.app.client_manager.data_processing.job_types self.jt_mock.reset_mock() self.job_mock.reset_mock() + self.app.api_version['data_processing'] = '1' class TestListJobTemplates(TestJobTypes): diff --git a/saharaclient/tests/unit/osc/v1/test_jobs.py b/saharaclient/tests/unit/osc/v1/test_jobs.py index 82ce3d8..fc325f2 100644 --- a/saharaclient/tests/unit/osc/v1/test_jobs.py +++ b/saharaclient/tests/unit/osc/v1/test_jobs.py @@ -57,6 +57,7 @@ class TestJobs(fakes.TestDataProcessing): super(TestJobs, self).setUp() self.je_mock = self.app.client_manager.data_processing.job_executions self.je_mock.reset_mock() + self.app.api_version['data_processing'] = '1' class TestExecuteJob(TestJobs): diff --git a/saharaclient/tests/unit/osc/v1/test_plugins.py b/saharaclient/tests/unit/osc/v1/test_plugins.py index 2c7c3f6..fad361d 100644 --- a/saharaclient/tests/unit/osc/v1/test_plugins.py +++ b/saharaclient/tests/unit/osc/v1/test_plugins.py @@ -38,6 +38,7 @@ class TestPlugins(fakes.TestDataProcessing): super(TestPlugins, self).setUp() self.plugins_mock = self.app.client_manager.data_processing.plugins self.plugins_mock.reset_mock() + self.app.api_version['data_processing'] = '1' class TestListPlugins(TestPlugins): |