Skip to content

Commit

Permalink
Test if changes to discovery tests fail on remote tests
Browse files Browse the repository at this point in the history
  • Loading branch information
myxie committed Dec 13, 2024
1 parent 24cd5d5 commit 86e23c3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions daliuge-engine/test/manager/test_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
from dlg.manager.proc_daemon import DlgDaemon

_TIMEOUT = 5
IDENTITY = lambda x: x


def IDENTITY(x):
return x


def wait_until(
Expand Down Expand Up @@ -136,14 +139,13 @@ def test_nothing_starts(self):
)

def test_zeroconf_discovery(self):

self.create_daemon(master=True, noNM=False, disable_zeroconf=False)

# Both managers started fine. If they zeroconf themselves correctly then
# if we query the MM it should know about its nodes, which should have
# one element
mc = MasterManagerClient()
nodes = _get_nodes_from_client(mc)
nodes = _get_nodes_from_client(mc)["nodes"]
self.assertIsNotNone(nodes)
self.assertEqual(
1,
Expand Down Expand Up @@ -219,7 +221,6 @@ def _test_nodes(nodes):
self.assertEqual(0, len(new_nodes))

def test_start_dataisland_via_rest(self):

self.create_daemon(master=True, noNM=False, disable_zeroconf=False)

# Both managers started fine. If they zeroconf themselves correctly then
Expand All @@ -242,7 +243,6 @@ def test_start_dataisland_via_rest(self):
)

def test_stop_dataisland_via_rest(self):

# start master and island manager
self.create_daemon(master=True, noNM=False, disable_zeroconf=False)
mc = MasterManagerClient()
Expand Down Expand Up @@ -271,7 +271,6 @@ def test_stop_dataisland_via_rest(self):
)

def test_stop_start_node_via_rest(self):

# test both stop and start of NM via REST
self.create_daemon(master=True, noNM=False, disable_zeroconf=False)

Expand Down

0 comments on commit 86e23c3

Please sign in to comment.