URL: https://github.com/freeipa/freeipa/pull/122 Author: dkupka Title: #122: Acceptance tests Action: opened
PR body: """ Starting with minimal suite that will grow as necessary. """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/122/head:pr122 git checkout pr122
From c4f25ae2c78584299c80894b62253372eea4f309 Mon Sep 17 00:00:00 2001 From: David Kupka <dku...@redhat.com> Date: Wed, 21 Sep 2016 13:09:19 +0200 Subject: [PATCH 1/2] tests: Mark Dogtag acceptance tests --- ipatests/pytest.ini | 1 + ipatests/test_integration/test_installation.py | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/ipatests/pytest.ini b/ipatests/pytest.ini index 233cf43..277e26d 100644 --- a/ipatests/pytest.ini +++ b/ipatests/pytest.ini @@ -23,3 +23,4 @@ addopts = --doctest-modules markers = tier0: basic unit tests and critical functionality tier1: functional API tests + cs_acceptance: Acceptance test suite for Dogtag Certificate Server diff --git a/ipatests/test_integration/test_installation.py b/ipatests/test_integration/test_installation.py index c3d194f..868e8e7 100644 --- a/ipatests/test_integration/test_installation.py +++ b/ipatests/test_integration/test_installation.py @@ -7,6 +7,7 @@ installed. """ +import pytest from ipatests.test_integration.base import IntegrationTest from ipatests.test_integration import tasks @@ -196,3 +197,23 @@ def test_install_master(self): def test_install_kra(self): tasks.install_kra(self.master, first_instance=True) + + +@pytest.mark.cs_acceptance +class TestCSAcceptance(IntegrationTest): + num_replicas = 2 + + @classmethod + def install(cls, mh): + tasks.install_master(cls.master, setup_dns=True) + + def test_install_master_kra(self): + tasks.install_kra(self.master, first_instance=True) + + def test_install_replica0_with_ca(self): + tasks.install_replica(self.master, self.replicas[0], setup_ca=True, + setup_kra=False, setup_dns=False) + + def test_install_replica1_with_ca_kra(self): + tasks.install_replica(self.master, self.replicas[1], setup_ca=True, + setup_kra=True, setup_dns=False) From b63cb30e0f48b0b94a52b909372f924d17d2ab3c Mon Sep 17 00:00:00 2001 From: David Kupka <dku...@redhat.com> Date: Wed, 21 Sep 2016 13:09:43 +0200 Subject: [PATCH 2/2] tests: Mark 389-ds acceptance tests --- ipatests/pytest.ini | 1 + ipatests/test_integration/test_installation.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/ipatests/pytest.ini b/ipatests/pytest.ini index 277e26d..11198dd 100644 --- a/ipatests/pytest.ini +++ b/ipatests/pytest.ini @@ -24,3 +24,4 @@ markers = tier0: basic unit tests and critical functionality tier1: functional API tests cs_acceptance: Acceptance test suite for Dogtag Certificate Server + ds_acceptance: Acceptance test suite for 389 Directory Server diff --git a/ipatests/test_integration/test_installation.py b/ipatests/test_integration/test_installation.py index 868e8e7..d4aba00 100644 --- a/ipatests/test_integration/test_installation.py +++ b/ipatests/test_integration/test_installation.py @@ -199,6 +199,19 @@ def test_install_kra(self): tasks.install_kra(self.master, first_instance=True) +@pytest.mark.ds_acceptance +class TestDSAcceptance(IntegrationTest): + num_replicas = 1 + + @classmethod + def install(cls, mh): + tasks.install_master(cls.master, setup_dns=True) + + def test_install_replica0(self): + tasks.install_replica(self.master, self.replicas[0], setup_ca=False, + setup_kra=False, setup_dns=False) + + @pytest.mark.cs_acceptance class TestCSAcceptance(IntegrationTest): num_replicas = 2
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code