From 0a13e2d69fc7f6c73e40bf082cc99ef364bb84dd Mon Sep 17 00:00:00 2001
From: Serhii Tsymbaliuk <stsymbal@redhat.com>
Date: Mon, 20 May 2019 08:59:14 +0200
Subject: [PATCH] WebUI: Add possibility to run caless UI tests separately

Add pytest mark "caless" to all related UI test suites.

Ticket: https://pagure.io/freeipa/issue/7954

Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com>
---
 ipatests/test_webui/test_host.py    | 1 +
 ipatests/test_webui/test_service.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ipatests/test_webui/test_host.py b/ipatests/test_webui/test_host.py
index be7a6d89c4..4e8fc54acf 100644
--- a/ipatests/test_webui/test_host.py
+++ b/ipatests/test_webui/test_host.py
@@ -312,6 +312,7 @@ def test_arbitrary_certificates(self):
         self.delete_record(self.pkey, self.data.get('del'))
 
     @screenshot
+    @pytest.mark.caless
     def test_ca_less(self):
         """
         Test host certificate actions in CA-less install
diff --git a/ipatests/test_webui/test_service.py b/ipatests/test_webui/test_service.py
index f1d9a9d624..774ef7997c 100644
--- a/ipatests/test_webui/test_service.py
+++ b/ipatests/test_webui/test_service.py
@@ -343,6 +343,7 @@ def test_arbitrary_certificates(self):
         self.delete_record(pkey, data.get('del'))
 
     @screenshot
+    @pytest.mark.caless
     def test_ca_less(self):
         """
         Test service certificate actions in CA-less install
