Skip to content

Commit

Permalink
an update
Browse files Browse the repository at this point in the history
  • Loading branch information
Junefen committed Jun 18, 2024
1 parent 56c7ccf commit 2a8692a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/function/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,10 @@ def test_interval_in_virtwho_conf(self, virtwho, globalconf):
1. Enable interval and set to 10 in /etc/virt-who.conf
2. Enable interval and set to 60 in /etc/virt-who.conf
3. Enable interval and set to 120 in /etc/virt-who.conf
:expectedresults:
1. Default value of 3600 seconds will be used when configure lower than 60 seconds
2. Configure successfully, and virt-who starting infinite loop with 60 seconds interval
3. Configure successfully, and virt-who starting infinite loop with 120 seconds interval
"""
globalconf.update("global", "debug", "True")
globalconf.update("global", "interval", "10")
Expand All @@ -90,12 +88,6 @@ def test_interval_in_virtwho_conf(self, virtwho, globalconf):
else:
assert result["loop"] in [60, 61, 62, 63]

globalconf.update("global", "interval", "120")
result = virtwho.run_service()
assert (
result["send"] == 1 and result["error"] == 0 and result["interval"] == 120
)

@pytest.mark.tier1
@pytest.mark.fedoraSmoke
def test_oneshot_in_virtwho_conf(self, virtwho, globalconf):
Expand Down

0 comments on commit 2a8692a

Please sign in to comment.