Skip to content

Commit

Permalink
Set love_stress_test script log level to 20 (INFO).
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-aranda committed Dec 12, 2024
1 parent 78e7b6e commit 18b8c4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/ts/IntegrationTests/love_stress_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ class LoveStressTest(BaseScript):
("make_love_stress_tests.py", BaseScript.is_external),
]

def __init__(self, test_env: str, k8s: bool = False) -> None:
def __init__(self, test_env: str, k8s: bool = False, log_level: int = 20) -> None:
super().__init__()
# Set the LOVE location based on test environment
self.test_env = test_env
self.k8s = k8s
self.log_level = log_level
self.env_configs = yaml.safe_load(registry["love_stress"])
if test_env.lower() == "summit":
# Running on Summit
Expand Down
4 changes: 4 additions & 0 deletions tests/test_love_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ async def test_love_stress(self) -> None:
self.assertEqual(script_class.script_states, [8])
# Assert location is correct.
self.assertEqual(script_config["location"], "http://love01.ls.lsst.org")
# Assert script is run in INFO mode.
self.assertEqual(script_class.log_level, 20)

async def test_love_stress_on_k8s(self) -> None:
"""Execute the LoveStress integration test script on the kubernetes
Expand All @@ -91,6 +93,8 @@ async def test_love_stress_on_k8s(self) -> None:
self.assertEqual(script_class.script_states, [8])
# Assert location is correct.
self.assertEqual(script_config["location"], "https://base-lsp.lsst.codes/love")
# Assert script is run in INFO mode.
self.assertEqual(script_class.log_level, 20)

async def asyncTearDown(self) -> None:
await self.controller.close()
Expand Down

0 comments on commit 18b8c4a

Please sign in to comment.