From 4d750fe865dc2d0dd15c80cef29618ca525ac71b Mon Sep 17 00:00:00 2001 From: Ross Whitfield Date: Fri, 15 Nov 2024 12:04:31 +1100 Subject: [PATCH] Add integration test --- tests/test_DASMONPageView.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/test_DASMONPageView.py b/tests/test_DASMONPageView.py index 6f93b6a0..57761c38 100644 --- a/tests/test_DASMONPageView.py +++ b/tests/test_DASMONPageView.py @@ -35,7 +35,7 @@ def testVerifyDASMONPageView(self, dasmon_diagnostics): tree = etree.parse(StringIO(dasmon_diagnostics.text), parser) table_content = tree.xpath("//tr/td//text()") # verify number of entries in the tables - expected_number_of_entries = 48 + expected_number_of_entries = 56 assert len(table_content) == expected_number_of_entries # -- DASMON diagnostics status = table_content[1] @@ -63,6 +63,15 @@ def testVerifyDASMONPageView(self, dasmon_diagnostics): autoreducer_pid = table_content[21] assert len(autoreducer) > 0 assert len(autoreducer_pid) > 0 + # -- Reduction queue lengths + assert table_content[31] == "CATALOG.ONCAT.DATA_READY: " + assert table_content[32] == "0" + assert table_content[33] == "REDUCTION.DATA_READY: " + assert table_content[34] == "0" + assert table_content[35] == "REDUCTION.HIMEM.DATA_READY: " + assert table_content[36] == "0" + assert table_content[37] == "REDUCTION_CATALOG.DATA_READY: " + assert table_content[38] == "0" if __name__ == "__main__":