fix integration tests
The reasons of failures are following: 1. The change [0] is introduced in horizon, which removes unneeded tags in production envs. This caused most failures. 2. HDP is removed from sahara codebase. 3. Sometimes unicode string 'None' is passed to saharaclient as input_id or output_id of job. This string was translated to NoneType. [0] https://review.openstack.org/#/c/287793 Co-Authored-by: Michael Ionkin <mionkin@mirantis.com> Change-Id: I9cb0641b2b61a78a40b0e2c6faf2609f974088d2
This commit is contained in:
parent
bc74bfcd3a
commit
ffccd9dcd9
@ -492,6 +492,10 @@ def job_get_configs(request, job_type):
|
|||||||
def job_execution_create(request, job_id, cluster_id,
|
def job_execution_create(request, job_id, cluster_id,
|
||||||
input_id, output_id, configs,
|
input_id, output_id, configs,
|
||||||
interface, is_public=None, is_protected=None):
|
interface, is_public=None, is_protected=None):
|
||||||
|
if input_id in [None, "", "None"]:
|
||||||
|
input_id = None
|
||||||
|
if output_id in [None, "", "None"]:
|
||||||
|
output_id = None
|
||||||
return client(request).job_executions.create(
|
return client(request).job_executions.create(
|
||||||
job_id=job_id,
|
job_id=job_id,
|
||||||
cluster_id=cluster_id,
|
cluster_id=cluster_id,
|
||||||
|
@ -19,7 +19,6 @@ class TableCreateWithPluginMixin(object):
|
|||||||
PLUGIN_CHOOSE_FORM_FIELDS = (
|
PLUGIN_CHOOSE_FORM_FIELDS = (
|
||||||
'vanilla_version',
|
'vanilla_version',
|
||||||
'cdh_version',
|
'cdh_version',
|
||||||
'hdp_version',
|
|
||||||
'plugin_name',
|
'plugin_name',
|
||||||
'spark_version',
|
'spark_version',
|
||||||
'fake_version',
|
'fake_version',
|
||||||
|
@ -4,3 +4,6 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
source commons $@
|
source commons $@
|
||||||
|
|
||||||
|
cd /opt/stack/new/horizon/openstack_dashboard/local/local_settings.d
|
||||||
|
mv _20_integration_tests_scaffolds.py.example _20_integration_tests_scaffolds.py
|
Loading…
Reference in New Issue
Block a user