From c22679851b57cc4c5343c038c4b0d83df70a8a41 Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Mon, 28 Jun 2021 08:46:56 +0200 Subject: [tests] Add foreman_proxy and foreman_installer tests Add tests checking independence of foreman_* plugins on the "main" foreman plugin. Add the two plugins to the list of expectedly enabled on a tfm instance. Relevant: #2546 Signed-off-by: Pavel Moravec --- tests/product_tests/foreman/foreman_tests.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/product_tests/foreman/foreman_tests.py b/tests/product_tests/foreman/foreman_tests.py index 747d2ae5..7813b6a4 100644 --- a/tests/product_tests/foreman/foreman_tests.py +++ b/tests/product_tests/foreman/foreman_tests.py @@ -31,6 +31,8 @@ class ForemanBasicTest(StageOneReportTest): self.assertPluginIncluded([ 'apache', 'foreman', + 'foreman_installer', + 'foreman_proxy', 'postgresql', 'puppet', 'ruby' @@ -104,3 +106,27 @@ class ForemanWithOptionsTest(StageOneReportTest): @redhat_only def test_proxyfeatures_collected(self): self.assertFileGlobInArchive("sos_commands/foreman/smart_proxies_features/*") + +class ForemanInstallerTest(StageOneReportTest): + """Check whether foreman-installer related data are properly collected + independently on main foreman plugin. + + :avocado: tags=foreman + """ + + sos_cmd = '-v -o foreman_installer' + + def test_foreman_installer_etc_collected(self): + self.assertFileCollected("/etc/foreman-installer/scenarios.d") + +class ForemanProxyTest(StageOneReportTest): + """Check whether foreman-proxy related data are properly collected + independently on main foreman plugin. + + :avocado: tags=foreman + """ + + sos_cmd = '-v -o foreman_proxy' + + def test_foreman_proxy_settings_collected(self): + self.assertFileCollected("/etc/foreman-proxy/settings.yml") -- cgit