diff --git a/python/lsst/ts/IntegrationTests/love_stress_test.py b/python/lsst/ts/IntegrationTests/love_stress_test.py index f3e13d2d..ea3866c4 100644 --- a/python/lsst/ts/IntegrationTests/love_stress_test.py +++ b/python/lsst/ts/IntegrationTests/love_stress_test.py @@ -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 diff --git a/tests/test_love_stress.py b/tests/test_love_stress.py index 101ff5e6..626895b2 100644 --- a/tests/test_love_stress.py +++ b/tests/test_love_stress.py @@ -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 @@ -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()