diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2021-06-28 08:46:56 +0200 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-07-22 12:12:08 -0400 |
commit | c22679851b57cc4c5343c038c4b0d83df70a8a41 (patch) | |
tree | 747a62373e94436bcdec650616bd1f3900e883c6 /tests/product_tests | |
parent | d8da8f14607cc373bc1628b818dc8b769ca7e9ad (diff) | |
download | sos-c22679851b57cc4c5343c038c4b0d83df70a8a41.tar.gz |
[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 <pmoravec@redhat.com>
Diffstat (limited to 'tests/product_tests')
-rw-r--r-- | tests/product_tests/foreman/foreman_tests.py | 26 |
1 files changed, 26 insertions, 0 deletions
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") |