URL: https://github.com/freeipa/freeipa/pull/5853
Author: miskopo
 Title: #5853: ipatests: test_ipahealthcheck: print a message if a system is 
healthy
Action: opened

PR body:
"""
Test if when the system is completely healthy, informative message is
returned and not only empty output (list or json).
    
Related: https://pagure.io/freeipa/issue/8892
    
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/5853/head:pr5853
git checkout pr5853
From 907173a46676a62cede1c47a9de45a5a06610159 Mon Sep 17 00:00:00 2001
From: Michal Polovka <[email protected]>
Date: Wed, 23 Jun 2021 14:53:49 +0200
Subject: [PATCH 1/2] ipatests: test_ipahealthcheck: print a message if a
 system is healthy.

Test if when the system is completely healthy, informative message is
returned and not only empty output (list or json).

Related: https://pagure.io/freeipa/issue/8892

Signed-off-by: Michal Polovka <[email protected]>
---
 ipatests/test_integration/test_ipahealthcheck.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ipatests/test_integration/test_ipahealthcheck.py b/ipatests/test_integration/test_ipahealthcheck.py
index 8a0641961c7..cd992cb1737 100644
--- a/ipatests/test_integration/test_ipahealthcheck.py
+++ b/ipatests/test_integration/test_ipahealthcheck.py
@@ -2203,6 +2203,7 @@ def test_severity(self):
             result = self.master.run_command(cmd)
             data = json.loads(result.stdout_text)
             assert len(data) == 0
+            assert result.stdout_text == "No issues found.\n"
 
         # An unknown severity
         cmd = ["ipa-healthcheck", "--severity", "BAD"]

From 54cb0033124a7f86ae5734349c0c803c83ce0317 Mon Sep 17 00:00:00 2001
From: Michal Polovka <[email protected]>
Date: Wed, 23 Jun 2021 14:57:44 +0200
Subject: [PATCH 2/2] temp commit

Signed-off-by: Michal Polovka <[email protected]>
---
 .freeipa-pr-ci.yaml                        | 2 +-
 ipatests/prci_definitions/temp_commit.yaml | 6 +++---
 2 files changed, 4 insertions(+), 4 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..bb8c170787e 100644
--- a/ipatests/prci_definitions/temp_commit.yaml
+++ b/ipatests/prci_definitions/temp_commit.yaml
@@ -61,14 +61,14 @@ jobs:
         timeout: 1800
         topology: *build
 
-  fedora-latest/temp_commit:
+  fedora-latest/TestIpaHealthCLI:
     requires: [fedora-latest/build]
     priority: 50
     job:
       class: RunPytest
       args:
         build_url: '{fedora-latest/build_url}'
-        test_suite: test_integration/test_REPLACEME.py
+        test_suite: test_integration/test_ipahealthcheck.py::TestIpaHealthCLI
         template: *ci-master-latest
         timeout: 3600
-        topology: *master_1repl_1client
+        topology: *master_1repl
_______________________________________________
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