Skip to content

Commit

Permalink
Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
rosswhitfield committed Nov 15, 2024
1 parent 0bc9f37 commit 4d750fe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_DASMONPageView.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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__":
Expand Down

0 comments on commit 4d750fe

Please sign in to comment.