URL: https://github.com/freeipa/freeipa/pull/4915
Author: miskopo
Title: #4915: ipatests: test_epn: Fix package installation
Action: opened
PR body:
"""
EPN functionality is provided as separate package
client-install, but it is installed during setup. This resolves
behaviour.
Signed-off-by: Michal Polovka <[email protected]>
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4915/head:pr4915
git checkout pr4915
From 43850f3703c271b26d0d54dfa810c9a42932f752 Mon Sep 17 00:00:00 2001
From: Michal Polovka <[email protected]>
Date: Tue, 14 Jul 2020 16:11:13 +0200
Subject: [PATCH 1/2] ipatests: test_epn: Fix package installation
EPN functionality is provided as separate package
freeipa-client-install, but it is installed during setup. This resolves
this behaviour.
Signed-off-by: Michal Polovka <[email protected]>
---
ipatests/test_integration/test_epn.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ipatests/test_integration/test_epn.py b/ipatests/test_integration/test_epn.py
index 9b7149202e..8483090cf0 100644
--- a/ipatests/test_integration/test_epn.py
+++ b/ipatests/test_integration/test_epn.py
@@ -32,6 +32,8 @@
logger = logging.getLogger(__name__)
+EPN_PKG = ["*ipa-client-epn"]
+
def datetime_to_generalized_time(dt):
"""Convert datetime to LDAP_GENERALIZED_TIME_FORMAT
@@ -185,7 +187,9 @@ def _check_epn_output(
@classmethod
def install(cls, mh):
+ tasks.install_packages(cls.master, EPN_PKG)
tasks.install_packages(cls.master, ["postfix"])
+ tasks.install_packages(cls.clients[0], EPN_PKG)
tasks.install_packages(cls.clients[0], ["postfix"])
for host in (cls.master, cls.clients[0]):
try:
@@ -201,7 +205,9 @@ def install(cls, mh):
@classmethod
def uninstall(cls, mh):
super(TestEPN, cls).uninstall(mh)
+ tasks.uninstall_packages(cls.master,EPN_PKG)
tasks.uninstall_packages(cls.master, ["postfix"])
+ tasks.uninstall_packages(cls.clients[0], EPN_PKG)
tasks.uninstall_packages(cls.clients[0], ["postfix"])
cls.master.run_command(r'rm -f /etc/postfix/smtp.keytab')
cls.master.run_command(r'getcert stop-tracking -f '
From 6018aa196770b60452ba27f9b029260cd7602509 Mon Sep 17 00:00:00 2001
From: Michal Polovka <[email protected]>
Date: Tue, 14 Jul 2020 16:13:12 +0200
Subject: [PATCH 2/2] temp commit
---
.freeipa-pr-ci.yaml | 2 +-
ipatests/prci_definitions/temp_commit.yaml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.freeipa-pr-ci.yaml b/.freeipa-pr-ci.yaml
index abcf8c5b63..8065669008 120000
--- a/.freeipa-pr-ci.yaml
+++ b/.freeipa-pr-ci.yaml
@@ -1 +1 @@
-ipatests/prci_definitions/gating.yaml
\ No newline at end of file
+ipatests/prci_definitions/temp_commit.yaml
\ No newline at end of file
diff --git a/ipatests/prci_definitions/temp_commit.yaml b/ipatests/prci_definitions/temp_commit.yaml
index e337068145..9ccb2e4f89 100644
--- a/ipatests/prci_definitions/temp_commit.yaml
+++ b/ipatests/prci_definitions/temp_commit.yaml
@@ -68,7 +68,7 @@ jobs:
class: RunPytest
args:
build_url: '{fedora-latest/build_url}'
- test_suite: test_integration/test_REPLACEME.py
+ test_suite: test_integration/test_epn.py
template: *ci-master-latest
timeout: 3600
topology: *master_1repl_1client
_______________________________________________
FreeIPA-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/[email protected]