Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum committed Jan 22, 2025
1 parent 0bfb17d commit 45fed38
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions taskcluster/test/test_transforms_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def run_include_deps_test(run_test, *args, **kwargs):
"taskId": "ghi",
"path": "public/image.tar.zst",
},
"command": ["run-task", "build-a-thing"],
"command": ["run-task", "build-a-thing", "foo"],
},
"tags": {},
},
Expand All @@ -394,7 +394,7 @@ def run_include_deps_test(run_test, *args, **kwargs):
"taskId": "jkl",
"path": "public/image.tar.zst",
},
"command": ["run-task", "test-a-thing"],
"command": ["run-task", "test-a-thing", "foo"],
"env": {
"MOZ_FETCHES": json.dumps(
[
Expand All @@ -420,7 +420,7 @@ def run_include_deps_test(run_test, *args, **kwargs):
"taskId": "mno",
"path": "public/image.tar.zst",
},
"command": ["run-task", "sign-a-thing"],
"command": ["run-task", "sign-a-thing", "foo"],
"env": {
"MOZ_FETCHES": json.dumps(
[
Expand Down Expand Up @@ -502,11 +502,11 @@ def test_include_some_deps(run_test):
"taskId": task_id,
"path": artifact,
},
"command": ["run-task", "foo"],
"command": ["run-task", "foo", "bar"],
},
},
},
include_deps=["^sign", "^test"],
include_deps=["^(?!(build))"],
name="gecko",
)
expected = set(["gecko-foo", "gecko-test-thing", "gecko-sign-thing"])
Expand All @@ -521,6 +521,8 @@ def test_include_some_deps(run_test):
in sign_task["task"]["payload"]["env"]["MOZ_FETCHES"]["task-reference"]
)
assert "TASKCLUSTER_ROOT_URL" in test_task["task"]["payload"]["command"][2]
assert "TASKCLUSTER_ROOT_URL" not in sign_task["task"]["payload"]["command"][2]
assert "TASKCLUSTER_ROOT_URL" not in foo_task["task"]["payload"]["command"][2]


def test_no_deps(run_test):
Expand Down

0 comments on commit 45fed38

Please sign in to comment.