URL: https://github.com/freeipa/freeipa/pull/4922
Author: miskopo
 Title: #4922: [Backport][ipa-4-8] ipatests: test_epn: test_EPN_config_file: 
Package name fix
Action: opened

PR body:
"""
This PR was opened automatically because PR #4918 was pushed to master and 
backport to ipa-4-8 is required.
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4922/head:pr4922
git checkout pr4922
From 08006de5ff13eae4938dc63b4c9cd7c3d919e95b Mon Sep 17 00:00:00 2001
From: Michal Polovka <[email protected]>
Date: Wed, 15 Jul 2020 10:16:07 +0200
Subject: [PATCH] ipatests: test_epn: test_EPN_config_file: Package name fix

Fix package name to respect different conventions in particular streams.

Signed-off-by: Michal Polovka <[email protected]>
---
 ipatests/test_integration/test_epn.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ipatests/test_integration/test_epn.py b/ipatests/test_integration/test_epn.py
index 9b7149202e..ffbd604de0 100644
--- a/ipatests/test_integration/test_epn.py
+++ b/ipatests/test_integration/test_epn.py
@@ -218,7 +218,10 @@ def test_EPN_config_file(self):
         """
         epn_conf = "/etc/ipa/epn.conf"
         epn_template = "/etc/ipa/epn/expire_msg.template"
-        cmd1 = self.master.run_command(["rpm", "-qc", "freeipa-client-epn"])
+        if tasks.get_platform(self.master) != "fedora":
+            cmd1 = self.master.run_command(["rpm", "-qc", "ipa-client-epn"])
+        else:
+            cmd1 = self.master.run_command(["rpm", "-qc", "freeipa-client-epn"])
         assert epn_conf in cmd1.stdout_text
         assert epn_template in cmd1.stdout_text
         cmd2 = self.master.run_command(["sha256sum", epn_conf])
_______________________________________________
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]

Reply via email to