Skip to content

Commit f57d975

Browse files
authored
Merge pull request #589 from djarecka/fix/singularity_images
changing sinngularity images
2 parents 8c8a79c + a84aad9 commit f57d975

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

pydra/engine/tests/test_singularity.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ def test_singularity_1_nosubm(tmpdir):
2828
no submitter
2929
"""
3030
cmd = "pwd"
31-
image = "library://sylabsed/linux/alpine"
31+
image = "docker://alpine"
3232
singu = SingularityTask(name="singu", executable=cmd, image=image, cache_dir=tmpdir)
33-
assert singu.inputs.image == "library://sylabsed/linux/alpine"
33+
assert singu.inputs.image == "docker://alpine"
3434
assert singu.inputs.container == "singularity"
3535
assert (
3636
singu.cmdline
@@ -48,7 +48,7 @@ def test_singularity_2_nosubm(tmpdir):
4848
no submitter
4949
"""
5050
cmd = ["echo", "hail", "pydra"]
51-
image = "library://sylabsed/linux/alpine"
51+
image = "docker://alpine"
5252
singu = SingularityTask(name="singu", executable=cmd, image=image, cache_dir=tmpdir)
5353
assert (
5454
singu.cmdline
@@ -66,7 +66,7 @@ def test_singularity_2(plugin, tmpdir):
6666
using submitter
6767
"""
6868
cmd = ["echo", "hail", "pydra"]
69-
image = "library://sylabsed/linux/alpine"
69+
image = "docker://alpine"
7070
singu = SingularityTask(name="singu", executable=cmd, image=image, cache_dir=tmpdir)
7171
assert (
7272
singu.cmdline
@@ -86,7 +86,7 @@ def test_singularity_2_singuflag(plugin, tmpdir):
8686
using ShellComandTask with container_info=("singularity", image)
8787
"""
8888
cmd = ["echo", "hail", "pydra"]
89-
image = "library://sylabsed/linux/alpine"
89+
image = "docker://alpine"
9090
shingu = ShellCommandTask(
9191
name="shingu",
9292
executable=cmd,
@@ -113,7 +113,7 @@ def test_singularity_2a(plugin, tmpdir):
113113
cmd_exec = "echo"
114114
cmd_args = ["hail", "pydra"]
115115
# separate command into exec + args
116-
image = "library://sylabsed/linux/alpine"
116+
image = "docker://alpine"
117117
singu = SingularityTask(
118118
name="singu", executable=cmd_exec, args=cmd_args, image=image, cache_dir=tmpdir
119119
)
@@ -138,7 +138,7 @@ def test_singularity_3(plugin, tmpdir):
138138
# creating a new directory
139139
tmpdir.mkdir("new_dir")
140140
cmd = ["ls", "/tmp_dir"]
141-
image = "library://sylabsed/linux/alpine"
141+
image = "docker://alpine"
142142
singu = SingularityTask(name="singu", executable=cmd, image=image, cache_dir=tmpdir)
143143
# binding tmp directory to the container
144144
singu.inputs.bindings = [(str(tmpdir), "/tmp_dir", "ro")]
@@ -161,7 +161,7 @@ def test_singularity_3_singuflag(plugin, tmpdir):
161161
# creating a new directory
162162
tmpdir.mkdir("new_dir")
163163
cmd = ["ls", "/tmp_dir"]
164-
image = "library://sylabsed/linux/alpine"
164+
image = "docker://alpine"
165165
shingu = SingularityTask(
166166
name="singu",
167167
executable=cmd,
@@ -189,7 +189,7 @@ def test_singularity_3_singuflagbind(plugin, tmpdir):
189189
# creating a new directory
190190
tmpdir.mkdir("new_dir")
191191
cmd = ["ls", "/tmp_dir"]
192-
image = "library://sylabsed/linux/alpine"
192+
image = "docker://alpine"
193193
shingu = SingularityTask(
194194
name="singu",
195195
executable=cmd,
@@ -214,7 +214,7 @@ def test_singularity_st_1(plugin, tmpdir):
214214
splitter = executable
215215
"""
216216
cmd = ["pwd", "ls"]
217-
image = "library://sylabsed/linux/alpine"
217+
image = "docker://alpine"
218218
singu = SingularityTask(
219219
name="singu", executable=cmd, image=image, cache_dir=tmpdir
220220
).split("executable")
@@ -232,7 +232,7 @@ def test_singularity_st_2(plugin, tmpdir):
232232
splitter = image
233233
"""
234234
cmd = ["cat", "/etc/issue"]
235-
image = ["library://sylabsed/linux/alpine", "library://sylabsed/examples/lolcow"]
235+
image = ["docker://alpine", "docker://ubuntu"]
236236
singu = SingularityTask(
237237
name="singu", executable=cmd, image=image, cache_dir=tmpdir
238238
).split("image")
@@ -248,7 +248,7 @@ def test_singularity_st_2(plugin, tmpdir):
248248
def test_singularity_st_3(plugin, tmpdir):
249249
"""outer splitter image and executable"""
250250
cmd = ["pwd", ["cat", "/etc/issue"]]
251-
image = ["library://sylabsed/linux/alpine", "library://sylabsed/examples/lolcow"]
251+
image = ["docker://alpine", "docker://ubuntu"]
252252
singu = SingularityTask(
253253
name="singu", executable=cmd, image=image, cache_dir=tmpdir
254254
).split(["image", "executable"])
@@ -270,7 +270,7 @@ def test_singularity_st_3(plugin, tmpdir):
270270
def test_singularity_st_4(tmpdir, n):
271271
"""splitter over args (checking bigger splitters if slurm available)"""
272272
args_n = list(range(n))
273-
image = "library://sylabsed/linux/alpine"
273+
image = "docker://alpine"
274274
singu = SingularityTask(
275275
name="singu", executable="echo", image=image, cache_dir=tmpdir, args=args_n
276276
).split("args")
@@ -291,7 +291,7 @@ def test_wf_singularity_1(plugin, tmpdir):
291291
with open(tmpdir.join("file_pydra.txt"), "w") as f:
292292
f.write("hello from pydra")
293293

294-
image = "library://sylabsed/linux/alpine"
294+
image = "docker://alpine"
295295
wf = Workflow(name="wf", input_spec=["cmd1", "cmd2"], cache_dir=tmpdir)
296296
wf.inputs.cmd1 = ["cat", "/tmp_dir/file_pydra.txt"]
297297
wf.inputs.cmd2 = ["echo", "message from the previous task:"]
@@ -333,7 +333,7 @@ def test_wf_singularity_1a(plugin, tmpdir):
333333
with open(tmpdir.join("file_pydra.txt"), "w") as f:
334334
f.write("hello from pydra")
335335

336-
image_sing = "library://sylabsed/linux/alpine"
336+
image_sing = "docker://alpine"
337337
image_doc = "ubuntu"
338338
wf = Workflow(name="wf", input_spec=["cmd1", "cmd2"], cache_dir=tmpdir)
339339
wf.inputs.cmd1 = ["cat", "/tmp_dir/file_pydra.txt"]
@@ -375,7 +375,7 @@ def test_singularity_outputspec_1(plugin, tmpdir):
375375
output_path is automatically added to the bindings
376376
"""
377377
cmd = ["touch", "newfile_tmp.txt"]
378-
image = "library://sylabsed/linux/alpine"
378+
image = "docker://alpine"
379379

380380
my_output_spec = SpecInfo(
381381
name="Output",
@@ -409,7 +409,7 @@ def test_singularity_inputspec_1(plugin, tmpdir):
409409
f.write("hello from pydra")
410410

411411
cmd = "cat"
412-
image = "library://sylabsed/linux/alpine"
412+
image = "docker://alpine"
413413

414414
my_input_spec = SpecInfo(
415415
name="Input",
@@ -454,7 +454,7 @@ def test_singularity_inputspec_1a(plugin, tmpdir):
454454
f.write("hello from pydra")
455455

456456
cmd = "cat"
457-
image = "library://sylabsed/linux/alpine"
457+
image = "docker://alpine"
458458

459459
my_input_spec = SpecInfo(
460460
name="Input",
@@ -496,7 +496,7 @@ def test_singularity_inputspec_2(plugin, tmpdir):
496496
f.write("have a nice one")
497497

498498
cmd = "cat"
499-
image = "library://sylabsed/linux/alpine"
499+
image = "docker://alpine"
500500

501501
my_input_spec = SpecInfo(
502502
name="Input",
@@ -555,7 +555,7 @@ def test_singularity_inputspec_2a_except(plugin, tmpdir):
555555
f.write("have a nice one")
556556

557557
cmd = "cat"
558-
image = "library://sylabsed/linux/alpine"
558+
image = "docker://alpine"
559559

560560
# the field with default value can't be before value without default
561561
my_input_spec = SpecInfo(
@@ -615,7 +615,7 @@ def test_singularity_inputspec_2a(plugin, tmpdir):
615615
f.write("have a nice one")
616616

617617
cmd = "cat"
618-
image = "library://sylabsed/linux/alpine"
618+
image = "docker://alpine"
619619

620620
# if you want set default in the first field you can use default_value in metadata
621621
my_input_spec = SpecInfo(
@@ -673,7 +673,7 @@ def test_singularity_cmd_inputspec_copyfile_1(plugin, tmpdir):
673673
f.write("hello from pydra\n")
674674

675675
cmd = ["sed", "-is", "s/hello/hi/"]
676-
image = "library://sylabsed/linux/alpine"
676+
image = "docker://alpine"
677677

678678
my_input_spec = SpecInfo(
679679
name="Input",
@@ -740,7 +740,7 @@ def test_singularity_inputspec_state_1(plugin, tmpdir):
740740

741741
cmd = "cat"
742742
filename = [str(filename_1), str(filename_2)]
743-
image = "library://sylabsed/linux/alpine"
743+
image = "docker://alpine"
744744

745745
my_input_spec = SpecInfo(
746746
name="Input",
@@ -791,7 +791,7 @@ def test_singularity_inputspec_state_1b(plugin, tmpdir):
791791

792792
cmd = "cat"
793793
filename = [str(file_1), str(file_2)]
794-
image = "library://sylabsed/linux/alpine"
794+
image = "docker://alpine"
795795

796796
my_input_spec = SpecInfo(
797797
name="Input",
@@ -835,7 +835,7 @@ def test_singularity_wf_inputspec_1(plugin, tmpdir):
835835
f.write("hello from pydra")
836836

837837
cmd = "cat"
838-
image = "library://sylabsed/linux/alpine"
838+
image = "docker://alpine"
839839

840840
my_input_spec = SpecInfo(
841841
name="Input",
@@ -891,7 +891,7 @@ def test_singularity_wf_state_inputspec_1(plugin, tmpdir):
891891

892892
cmd = "cat"
893893
filename = [str(file_1), str(file_2)]
894-
image = "library://sylabsed/linux/alpine"
894+
image = "docker://alpine"
895895

896896
my_input_spec = SpecInfo(
897897
name="Input",
@@ -949,7 +949,7 @@ def test_singularity_wf_ndst_inputspec_1(plugin, tmpdir):
949949

950950
cmd = "cat"
951951
filename = [str(file_1), str(file_2)]
952-
image = "library://sylabsed/linux/alpine"
952+
image = "docker://alpine"
953953

954954
my_input_spec = SpecInfo(
955955
name="Input",

0 commit comments

Comments
 (0)