URL: https://github.com/freeipa/freeipa/pull/5883
Author: menonsudhir
 Title: #5883: ipatests: Fix for 
test_source_ipahealthcheck_ipa_host_check_ipahostkeytab
Action: opened

PR body:
"""
Expected error message has been modified for  
test_source_ipahealthcheck_ipa_host_check_ipahostkeytab
    

"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5883/head:pr5883
git checkout pr5883
From 5927e70288bcd4239d24c60313bd7b80d3dfab58 Mon Sep 17 00:00:00 2001
From: Sudhir Menon <[email protected]>
Date: Fri, 9 Jul 2021 13:44:12 +0530
Subject: [PATCH 1/2] ipatests: Fix for
 test_source_ipahealthcheck_ipa_host_check_ipahostkeytab

Expected error message has been modified for
test_source_ipahealthcheck_ipa_host_check_ipahostkeytab

Signed-off-by: Sudhir Menon <[email protected]>
---
 ipatests/test_integration/test_ipahealthcheck.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/ipatests/test_integration/test_ipahealthcheck.py b/ipatests/test_integration/test_ipahealthcheck.py
index 305d7b94506..f6a3043f168 100644
--- a/ipatests/test_integration/test_ipahealthcheck.py
+++ b/ipatests/test_integration/test_ipahealthcheck.py
@@ -499,9 +499,6 @@ def test_source_ipahealthcheck_ipa_host_check_ipahostkeytab(self):
         from host's keytab.
         """
         msg = (
-            "Failed to obtain host TGT: Major (458752): "
-            "No credentials were "
-            "supplied, or the credentials were unavailable or inaccessible, "
             "Minor (2529639107): No credentials cache found"
         )
 
@@ -514,7 +511,7 @@ def test_source_ipahealthcheck_ipa_host_check_ipahostkeytab(self):
             )
             assert returncode == 1
             assert data[0]["result"] == "ERROR"
-            assert data[0]["kw"]["msg"] == msg
+            assert msg in data[0]["kw"]["msg"]
 
     def test_source_ipahealthcheck_topology_IPATopologyDomainCheck(self):
         """

From 02bf49f592c43c6320abaa1e4d0e309cfe06a346 Mon Sep 17 00:00:00 2001
From: Sudhir Menon <[email protected]>
Date: Fri, 9 Jul 2021 13:49:09 +0530
Subject: [PATCH 2/2] Temp Commit

Signed-off-by: Sudhir Menon <[email protected]>
---
 .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 abcf8c5b634..80656690080 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 af5885d0af2..7a4664efb38 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_ipahealthcheck.py::TestIpaHealthCheck::test_source_ipahealthcheck_ipa_host_check_ipahostkeytab
         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]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to