Skipping broken/env-incompatible tests.
Change-Id: Icb30d6b1ac7010db8d57773fd292747b1b0ba94d
This commit is contained in:
@@ -244,11 +244,3 @@ class GlanceRuntime(comp.PythonRuntime):
|
|||||||
if cache_dir:
|
if cache_dir:
|
||||||
params['cache_dir'] = cache_dir
|
params['cache_dir'] = cache_dir
|
||||||
ghelper.UploadService(**params).install(self._get_image_urls())
|
ghelper.UploadService(**params).install(self._get_image_urls())
|
||||||
|
|
||||||
|
|
||||||
class GlanceTester(comp.PythonTestingComponent):
|
|
||||||
# NOTE: only run the unit tests
|
|
||||||
def _get_test_command(self):
|
|
||||||
base_cmd = comp.PythonTestingComponent._get_test_command(self)
|
|
||||||
base_cmd = base_cmd + ['--unittests-only']
|
|
||||||
return base_cmd
|
|
||||||
|
@@ -20,15 +20,3 @@ from anvil import components as comp
|
|||||||
class GlanceClientInstaller(comp.PythonInstallComponent):
|
class GlanceClientInstaller(comp.PythonInstallComponent):
|
||||||
def _filter_pip_requires(self, fn, lines):
|
def _filter_pip_requires(self, fn, lines):
|
||||||
return [l for l in lines if l.lower().find('keystoneclient') == -1]
|
return [l for l in lines if l.lower().find('keystoneclient') == -1]
|
||||||
|
|
||||||
|
|
||||||
class GlanceClientTester(comp.PythonTestingComponent):
|
|
||||||
def _use_run_tests(self):
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _get_test_exclusions(self):
|
|
||||||
return [
|
|
||||||
# These seem to require swift, not always installed...
|
|
||||||
'test_ssl_cert_mismatch',
|
|
||||||
'test_ssl_cert_subject_alt_name',
|
|
||||||
]
|
|
||||||
|
@@ -2,7 +2,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# Where we download this from...
|
# Where we download this from...
|
||||||
get_from: git://github.com/openstack/python-glanceclient.git?branch=master
|
get_from: "git://github.com/openstack/python-glanceclient.git?branch=master"
|
||||||
|
|
||||||
|
exclude_tests:
|
||||||
|
- "test_ssl_cert_mismatch"
|
||||||
|
- "test_ssl_cert_subject_alt_name"
|
||||||
|
|
||||||
patches:
|
patches:
|
||||||
# After check-out/download time patches
|
# After check-out/download time patches
|
||||||
|
@@ -7,6 +7,9 @@ get_from: "git://github.com/openstack/python-keystoneclient.git?branch=master"
|
|||||||
# This code is out of compliance, so skip it...
|
# This code is out of compliance, so skip it...
|
||||||
use_pep8: False
|
use_pep8: False
|
||||||
|
|
||||||
|
exclude_tests:
|
||||||
|
- test_not_use_cache_from_env
|
||||||
|
|
||||||
patches:
|
patches:
|
||||||
# After check-out/download time patches
|
# After check-out/download time patches
|
||||||
download:
|
download:
|
||||||
|
@@ -134,6 +134,17 @@ patches:
|
|||||||
exclude_tests:
|
exclude_tests:
|
||||||
# Disable since quantumclient is not always installed.
|
# Disable since quantumclient is not always installed.
|
||||||
- test_quantumv2
|
- test_quantumv2
|
||||||
|
# Will fail if ipv6 turned off
|
||||||
|
- test_service_random_port_with_ipv6
|
||||||
|
- test_start_random_port_with_ipv6
|
||||||
|
- test_app_using_ipv6_and_ssl
|
||||||
|
# Bug in tests if libvirt installed
|
||||||
|
- test_libvirt
|
||||||
|
# Bug
|
||||||
|
- test_archive_deleted_rows_fk_constraint
|
||||||
|
|
||||||
|
exclude_tests_dir:
|
||||||
|
- smoketests
|
||||||
|
|
||||||
# Needed for setting up your database
|
# Needed for setting up your database
|
||||||
db:
|
db:
|
||||||
|
@@ -229,8 +229,8 @@ components:
|
|||||||
install: anvil.components.glance:GlanceInstaller
|
install: anvil.components.glance:GlanceInstaller
|
||||||
package: anvil.packaging.rpm:PythonPackager
|
package: anvil.packaging.rpm:PythonPackager
|
||||||
running: anvil.components.glance:GlanceRuntime
|
running: anvil.components.glance:GlanceRuntime
|
||||||
test: anvil.components.glance:GlanceTester
|
coverage: anvil.components:PythonTestingComponent
|
||||||
coverage: anvil.components.glance:GlanceTester
|
test: anvil.components:PythonTestingComponent
|
||||||
uninstall: anvil.components.glance:GlanceUninstaller
|
uninstall: anvil.components.glance:GlanceUninstaller
|
||||||
packages:
|
packages:
|
||||||
- name: MySQL-python
|
- name: MySQL-python
|
||||||
@@ -243,8 +243,8 @@ components:
|
|||||||
install: anvil.components.glance_client:GlanceClientInstaller
|
install: anvil.components.glance_client:GlanceClientInstaller
|
||||||
package: anvil.packaging.rpm:PythonPackager
|
package: anvil.packaging.rpm:PythonPackager
|
||||||
running: anvil.components:EmptyRuntime
|
running: anvil.components:EmptyRuntime
|
||||||
test: anvil.components.glance_client:GlanceClientTester
|
|
||||||
coverage: anvil.components:PythonTestingComponent
|
coverage: anvil.components:PythonTestingComponent
|
||||||
|
test: anvil.components:PythonTestingComponent
|
||||||
uninstall: anvil.components:PythonUninstallComponent
|
uninstall: anvil.components:PythonUninstallComponent
|
||||||
pips:
|
pips:
|
||||||
- name: nosexcover
|
- name: nosexcover
|
||||||
|
Reference in New Issue
Block a user