Skipping broken/env-incompatible tests.

Change-Id: Icb30d6b1ac7010db8d57773fd292747b1b0ba94d
This commit is contained in:
Vasyl Khomenko
2013-04-25 19:14:27 +04:00
parent 9fe546b9da
commit 318b7fe34f
6 changed files with 22 additions and 24 deletions

View File

@@ -244,11 +244,3 @@ class GlanceRuntime(comp.PythonRuntime):
if cache_dir:
params['cache_dir'] = cache_dir
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

View File

@@ -20,15 +20,3 @@ from anvil import components as comp
class GlanceClientInstaller(comp.PythonInstallComponent):
def _filter_pip_requires(self, fn, lines):
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',
]

View File

@@ -2,7 +2,11 @@
---
# 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:
# After check-out/download time patches

View File

@@ -7,6 +7,9 @@ get_from: "git://github.com/openstack/python-keystoneclient.git?branch=master"
# This code is out of compliance, so skip it...
use_pep8: False
exclude_tests:
- test_not_use_cache_from_env
patches:
# After check-out/download time patches
download:

View File

@@ -134,6 +134,17 @@ patches:
exclude_tests:
# Disable since quantumclient is not always installed.
- 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
db:

View File

@@ -229,8 +229,8 @@ components:
install: anvil.components.glance:GlanceInstaller
package: anvil.packaging.rpm:PythonPackager
running: anvil.components.glance:GlanceRuntime
test: anvil.components.glance:GlanceTester
coverage: anvil.components.glance:GlanceTester
coverage: anvil.components:PythonTestingComponent
test: anvil.components:PythonTestingComponent
uninstall: anvil.components.glance:GlanceUninstaller
packages:
- name: MySQL-python
@@ -243,8 +243,8 @@ components:
install: anvil.components.glance_client:GlanceClientInstaller
package: anvil.packaging.rpm:PythonPackager
running: anvil.components:EmptyRuntime
test: anvil.components.glance_client:GlanceClientTester
coverage: anvil.components:PythonTestingComponent
test: anvil.components:PythonTestingComponent
uninstall: anvil.components:PythonUninstallComponent
pips:
- name: nosexcover