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:
Vitaly Gridnev 2016-06-06 13:26:44 +00:00
parent bc74bfcd3a
commit ffccd9dcd9
3 changed files with 7 additions and 1 deletions

View File

@ -492,6 +492,10 @@ def job_get_configs(request, job_type):
def job_execution_create(request, job_id, cluster_id,
input_id, output_id, configs,
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(
job_id=job_id,
cluster_id=cluster_id,

View File

@ -19,7 +19,6 @@ class TableCreateWithPluginMixin(object):
PLUGIN_CHOOSE_FORM_FIELDS = (
'vanilla_version',
'cdh_version',
'hdp_version',
'plugin_name',
'spark_version',
'fake_version',

View File

@ -4,3 +4,6 @@
set -ex
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