1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
11 group = api.groups().create(body={"group": {"name": "test-17004-project", "group_class": "project"}}, ensure_unique_name=True).execute()
13 contents = api.groups().contents(uuid=group["uuid"]).execute()
14 if len(contents["items"]) != 0:
15 raise Exception("Expected 0 items")
17 cmd = ["arvados-cwl-runner", "--project-uuid", group["uuid"], "17004-output-props.cwl", "--inp", "scripts/download_all_data.sh"]
19 subprocess.check_output(cmd)
21 contents = api.groups().contents(uuid=group["uuid"]).execute()
24 for c in contents["items"]:
25 if (c["kind"] == "arvados#collection" and
26 c["properties"].get("type") == "output" and
27 c["properties"].get("foo") == "bar" and
28 c["properties"].get("baz") == "download_all_data.sh"):
31 raise Exception("Didn't find collection with properties")
34 api.groups().delete(uuid=group["uuid"]).execute()
36 if __name__ == '__main__':