Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed Nov 25, 2024
1 parent 15a56e9 commit f50c43c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
9 changes: 5 additions & 4 deletions tests/tests_water_bodies.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@ def _(self, message):

os.environ["ARGO_WF_ENDPOINT"] = "http://localhost:2746"
os.environ["ARGO_WF_TOKEN"] = (
""
"eyJhbGciOiJSUzI1NiIsImtpZCI6ImZSUUYycDZNbnI4MTZLeXVFUnpyZk9FcUJGTHdQQzI4SURGdHhQc0pzRXMifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJuczEiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlY3JldC5uYW1lIjoiYXJnby5zZXJ2aWNlLWFjY291bnQtdG9rZW4iLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiYXJnbyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjExZjI1NDUxLWE4OGEtNDFkZC1hNGIxLTJlNTM3ZGUyOGU3NiIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpuczE6YXJnbyJ9.dUVo3WCJgoVN5NVh3VVeKw7uF6hE6moCj8Mu5W7ioJ4M_lG_bJ4BZ7XRaJVrQMF--vMQAiNDr-_GSC0R7ItKmRqhafkONy61MeEDz_6u-j0ay4fj8qofgBatnF7lWcVVvNklVZxZ4IGb62SJepAvzerxsz5HhSG8icn9U0cUsyg4Vw_wsHntic-yFY4Eyp6kYSEXO5G2v_0KXLKcpLB41YLfMQaE8cu0ghmE5mFmKkKOf0oDHhLlch-j_K0IpGvXKcjZGlwjiukD1dCL3E6BSHYMutuz4n27Bg62nf3rZBErUkJB2GRjN-tKIoYMrEuwyEbv7TSuCeqHGyfWn3Tu0A"
)
os.environ["ARGO_WF_SYNCHRONIZATION_CM"] = "semaphore-water-bodies"
os.environ["DEFAULT_VOLUME_SIZE"] = "12Gi"

cls.zoo = zoo

conf = {}
conf["lenv"] = {"message": ""}
conf["lenv"] = {"Identifier": "water-bodies", "usid": "1234"}
conf["lenv"] = {"message": "", "Identifier": "water-bodies", "usid": "1234"}
conf["tmpPath"] = "/tmp"
conf["main"] = {"tmpUrl": "http://localhost/logs/", "namespace": "ns1"}
conf["main"] = {"tmpUrl": "http://localhost/logs/"}
conf["auth_env"] = {"user": "ns1"}
cls.conf = conf

inputs = {
Expand Down
4 changes: 4 additions & 0 deletions zoo_argowf_runner/cwl2argo.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ def cwl_to_argo(
"name": "stac-catalog",
"expression": "steps['argo-cwl'].outputs.parameters['stac-catalog']",
},
{
"name": "feature-collection",
"expression": "steps['argo-cwl'].outputs.parameters['feature-collection']",
},
],
outputs_artifacts=[
{
Expand Down
4 changes: 1 addition & 3 deletions zoo_argowf_runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ def execute(self):
self.update_status(progress=15, message="upload required files")

self.execution = Execution(
namespace=self.zoo_conf.conf["main"][
"namespace"
], # TODO check this with Gerald
namespace=self.zoo_conf.conf["auth_env"]["user"],
workflow=self.cwl,
entrypoint=self.get_workflow_id(),
workflow_name=self.get_workflow_uid(),
Expand Down

0 comments on commit f50c43c

Please sign in to comment.