Updating integration tests to ignore software server

This change adds a new pytest marker, ignore. It is used to silently
skip the software server integration test suite, which is now broken
from a recent ssl update. A pytest ini configuration file is also added
to register the new marker.
This commit is contained in:
Peter Hamilton 2015-08-20 09:13:20 -04:00
parent 94646337c3
commit 3ebc09670a
3 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import pytest
from testtools import TestCase from testtools import TestCase
from subprocess import Popen from subprocess import Popen
@ -55,6 +57,7 @@ from kmip.services.kmip_client import KMIPProxy
import kmip.core.utils as utils import kmip.core.utils as utils
@pytest.mark.ignore
class TestKMIPClientIntegration(TestCase): class TestKMIPClientIntegration(TestCase):
STARTUP_TIME = 1.0 STARTUP_TIME = 1.0
SHUTDOWN_TIME = 0.1 SHUTDOWN_TIME = 0.1

3
pytest.ini Normal file
View File

@ -0,0 +1,3 @@
[pytest]
markers =
ignore: skip the given test object

View File

@ -18,7 +18,7 @@ commands = flake8 kmip/
deps = {[testenv]deps} deps = {[testenv]deps}
basepython=python2.7 basepython=python2.7
commands = commands =
py.test --strict kmip/tests/integration {posargs} py.test --strict kmip/tests/integration -m "not ignore" {posargs}
[flake8] [flake8]
exclude = .git,.tox,dist,rpmbuild,*.egg-info exclude = .git,.tox,dist,rpmbuild,*.egg-info