Skip to content

Commit

Permalink
Skip NGAS tests, server not running
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Apr 4, 2023
1 parent 996468a commit 02bf905
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 8 additions & 3 deletions daliuge-engine/test/apps/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def test_clientServer(self):
image="ubuntu:14.04",
command="cat %i0 > /dev/tcp/%containerIp[c]%/8000",
)
c = DockerApp("c", "c", image="ubuntu:14.04", command="nc -l 8000 > %o0")
c = DockerApp(
"c", "c", image="ubuntu:14.04", command="nc -l 8000 > %o0"
)
d = FileDROP("d", "d")

b.addInput(a)
Expand Down Expand Up @@ -158,13 +160,15 @@ def assertMsgIsCorrect(msg, command):
msg = 'This is a message with a double quotes: "'
assertMsgIsCorrect(msg, "echo -n '{0}' > %o0".format(msg))

@unittest.skip
def test_dataURLReference(self):
"""
A test to check that DROPs other than FileDROPs and DirectoryContainers
can pass their dataURLs into docker containers
"""
self._ngas_and_fs_io("echo -n '%iDataURL0' > %o0")

@unittest.skip
def test_refer_to_io_by_uid(self):
"""
A test to check that input and output Drops can be referred to by their
Expand All @@ -184,10 +188,11 @@ def _ngas_and_fs_io(self, command):
b.addOutput(c)
with DROPWaiterCtx(self, c, 100):
a.setCompleted()
self.assertEqual(a.dataURL.encode("utf8"), droputils.allDropContents(c))
self.assertEqual(
a.dataURL.encode("utf8"), droputils.allDropContents(c)
)

def test_additional_bindings(self):

# Some additional stuff to bind into docker
tempDir = tempfile.mkdtemp()
tempFile = tempfile.mktemp()
Expand Down
4 changes: 1 addition & 3 deletions daliuge-engine/test/apps/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def _test_graph_runs(self, drops, first, last, timeout=1):
self.assertEqual(DROPStates.COMPLETED, x.status)

def test_sleepapp(self):

# Nothing fancy, just run it and be done with it
a = NullDROP("a", "a")
b = SleepApp("b", "b")
Expand All @@ -71,7 +70,6 @@ def test_sleepapp(self):
self._test_graph_runs((a, b, c), a, c)

def _test_copyapp_simple(self, app):

# Again, not foo fancy, simple apps require simple tests
a, c = (InMemoryDROP(x, x, nm=x) for x in ("a", "c"))
b = app("b", "b")
Expand All @@ -85,7 +83,6 @@ def _test_copyapp_simple(self, app):
self.assertEqual(data, droputils.allDropContents(c))

def _test_copyapp_order_preserved(self, app):

# Inputs are copied in the order they are added
a, b, d = (InMemoryDROP(x, x, nm=x) for x in ("a", "b", "d"))
c = app("c", "c")
Expand Down Expand Up @@ -178,6 +175,7 @@ def test_parallelHelloWorld(self):
droputils.allDropContents(f[i]),
)

@unittest.skip
def test_ngasio(self):
nd_in = NgasDROP("HelloWorld.txt", "HelloWorld.txt")
nd_in.ngasSrv = "ngas.ddns.net"
Expand Down

0 comments on commit 02bf905

Please sign in to comment.