Skip to content

Commit

Permalink
Status test: Do not test other nodes if only one node should be tested
Browse files Browse the repository at this point in the history
  • Loading branch information
sunetfreitag committed Aug 29, 2024
1 parent f4e6241 commit d8fa257
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions test_status_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,11 @@ def test_frontend_statusinfo(self):
def test_node_statusinfo(self):
drv = sunetnextcloud.TestTarget()
for node in expectedResults['global']['redundantnodes']:
with self.subTest(myurl=node):
logger.info(f'TestID: {node}')
statusInfoThread = NodeStatusInfo(node, self)
statusInfoThread.start()
if node in drv.allnodes:
with self.subTest(myurl=node):
logger.info(f'TestID: {node}')
statusInfoThread = NodeStatusInfo(node, self)
statusInfoThread.start()

while(testThreadsRunning > 0):
time.sleep(1)
Expand All @@ -323,10 +324,11 @@ def test_node_statusinfo(self):
def test_statusinfo(self):
drv = sunetnextcloud.TestTarget()
for node in expectedResults['global']['allnodes']:
with self.subTest(myurl=node):
logger.info(f'TestID: {node}')
statusInfoThread = StatusInfo(node, self)
statusInfoThread.start()
if node in drv.allnodes:
with self.subTest(myurl=node):
logger.info(f'TestID: {node}')
statusInfoThread = StatusInfo(node, self)
statusInfoThread.start()

while(testThreadsRunning > 0):
time.sleep(1)
Expand Down

0 comments on commit d8fa257

Please sign in to comment.