Hello!

Test for caacl-add-service: incorrect error message when service does not exists
https://fedorahosted.org/freeipa/ticket/6171

Best regards,
Ganna Kaihorodova
Associate Software Quality Engineer


:
From 837d85f0b3e8544a983e1ceeb770712807c0f0cf Mon Sep 17 00:00:00 2001
From: Ganna Kaihorodova <gkaih...@redhat.com>
Date: Thu, 18 Aug 2016 11:16:49 +0200
Subject: [PATCH] Test for caacl-add-service

Test for caacl-add-service: incorrect error message when service does not exists

https://fedorahosted.org/freeipa/ticket/6171
---
 ipatests/test_integration/test_caal_message.py | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 ipatests/test_integration/test_caal_message.py

diff --git a/ipatests/test_integration/test_caal_message.py b/ipatests/test_integration/test_caal_message.py
new file mode 100644
index 0000000000000000000000000000000000000000..d9c5d4e5b74aeec87b6985ed94a69bcc9d9435ff
--- /dev/null
+++ b/ipatests/test_integration/test_caal_message.py
@@ -0,0 +1,20 @@
+from ipatests.test_integration.base import IntegrationTest
+
+
+class TestIncorrectErrorMessage(IntegrationTest):
+
+    "https://fedorahosted.org/freeipa/ticket/6171";
+
+    topology = 'star'
+    num_replicas = 0
+    caacl = 'test_caacl'
+
+    def test_errormsg(self):
+        master = self.master
+        master.run_command("ipa caacl-add %s --desc \"test\"" % self.caacl)
+        result = master.run_command(
+            "ipa caacl-add-service %s --services"
+            "svc/`hostname`" % self.caacl, raiseonerr=False
+        )
+        assert("no such entry" not in result.stderr_text), (
+            "Wrong error message")
-- 
2.7.4

-- 
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

Reply via email to