Skip to content

Commit

Permalink
Add host teardown for smart classparameters test (#13902)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamsg199 authored Jan 29, 2024
1 parent 270e2c0 commit 362c6e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/foreman/cli/test_classparameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class TestSmartClassParameters:
@pytest.mark.e2e
def test_positive_list(
self,
request,
session_puppet_enabled_sat,
module_puppet_org,
module_puppet_loc,
Expand All @@ -86,6 +87,7 @@ def test_positive_list(
environment=module_puppet['env'].name,
).create()
host.add_puppetclass(data={'puppetclass_id': module_puppet['class']['id']})
request.addfinalizer(host.delete)
hostgroup = session_puppet_enabled_sat.cli_factory.hostgroup(
{
'puppet-environment-id': module_puppet['env'].id,
Expand Down

0 comments on commit 362c6e8

Please sign in to comment.