forked from SatelliteQE/robottelo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix foreman-maintain tests failing because of automation issues
- Loading branch information
1 parent
3d1863d
commit 689178e
Showing
8 changed files
with
91 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,6 @@ | |
from robottelo.constants import SATELLITE_ANSWER_FILE | ||
from robottelo.hosts import Satellite | ||
|
||
pytestmark = pytest.mark.destructive | ||
|
||
SATELLITE_SERVICES = [ | ||
"[email protected]", | ||
"foreman-proxy.service", | ||
|
@@ -94,6 +92,7 @@ def test_positive_service_list(sat_maintain): | |
|
||
|
||
@pytest.mark.include_capsule | ||
@pytest.mark.usefixtures('start_satellite_services') | ||
def test_positive_service_stop_start(sat_maintain): | ||
"""Start/Stop services using satellite-maintain service subcommand | ||
|
@@ -124,6 +123,7 @@ def test_positive_service_stop_start(sat_maintain): | |
|
||
|
||
@pytest.mark.include_capsule | ||
@pytest.mark.usefixtures('start_satellite_services') | ||
def test_positive_service_stop_restart(sat_maintain): | ||
"""Disable services using satellite-maintain service | ||
|
@@ -156,6 +156,7 @@ def test_positive_service_stop_restart(sat_maintain): | |
|
||
|
||
@pytest.mark.include_capsule | ||
@pytest.mark.usefixtures('start_satellite_services') | ||
def test_positive_service_enable_disable(sat_maintain): | ||
"""Enable/Disable services using satellite-maintain service subcommand | ||
|
@@ -180,7 +181,8 @@ def test_positive_service_enable_disable(sat_maintain): | |
assert result.status == 0 | ||
|
||
|
||
def test_positive_foreman_service(request, sat_maintain): | ||
@pytest.mark.usefixtures('start_satellite_services') | ||
def test_positive_foreman_service(sat_maintain): | ||
"""Validate httpd service should work as expected even stopping of the foreman service | ||
:id: 08a29ea2-2e49-11eb-a22b-d46d6dd3b5b2 | ||
|
@@ -201,10 +203,7 @@ def test_positive_foreman_service(request, sat_maintain): | |
result = sat_maintain.cli.Health.check(options={'assumeyes': True}) | ||
assert result.status == 0 | ||
assert 'foreman' in result.stdout | ||
|
||
@request.addfinalizer | ||
def _finalize(): | ||
assert sat_maintain.cli.Service.start(options={'only': 'foreman'}).status == 0 | ||
assert sat_maintain.cli.Service.start(options={'only': 'foreman'}).status == 0 | ||
|
||
|
||
@pytest.mark.include_capsule | ||
|
Oops, something went wrong.