@@ -55,37 +55,64 @@ def test_register_callback_action(request, monkeypatch, kwargs):
5555 ("non-existing-action" , {}, [], pytest .raises (ValueError )),
5656 (
5757 "retrigger" ,
58- {"base_repository" : "https://some.git.repo" },
58+ {
59+ "base_repository" : "https://some.git.repo" ,
60+ "head_repository" : "https://some.git.repo" ,
61+ },
5962 [],
6063 pytest .raises (InvalidRepoUrlError ),
6164 ),
6265 (
6366 "retrigger" ,
64- {"base_repository" : "https://hg.mozilla.org/try" },
67+ {
68+ "base_repository" : "https://hg.mozilla.org/mozilla-unified" ,
69+ "head_repository" : "https://hg.mozilla.org/try" ,
70+ },
6571 ["unrelated:scope" ],
6672 pytest .raises (ValueError ),
6773 ),
6874 (
6975 "retrigger" ,
70- {"base_repository" : "https://hg.mozilla.org/mozilla-central" },
76+ {
77+ "base_repository" : "https://hg.mozilla.org/mozilla-unified" ,
78+ "head_repository" : "https://hg.mozilla.org/try" ,
79+ },
80+ ["assume:repo:hg.mozilla.org/try:action:generic" ],
81+ does_not_raise (),
82+ ),
83+ (
84+ "retrigger" ,
85+ {
86+ "base_repository" : "https://hg.mozilla.org/mozilla-central" ,
87+ "head_repository" : "https://hg.mozilla.org/mozilla-central" ,
88+ },
7189 ["assume:repo:hg.mozilla.org/mozilla-central:action:generic" ],
7290 does_not_raise (),
7391 ),
7492 (
7593 "retrigger" ,
76- {"base_repository" : "https://github.com/taskcluster/taskgraph" },
94+ {
95+ "base_repository" : "https://github.com/taskcluster/taskgraph" ,
96+ "head_repository" : "https://github.com/taskcluster/taskgraph" ,
97+ },
7798 ["assume:repo:github.com/taskcluster/taskgraph:action:generic" ],
7899 does_not_raise (),
79100 ),
80101 (
81102 "retrigger" ,
82- {"base_repository" : "git@github.com:mozilla-mobile/firefox-android.git" },
103+ {
104+ "base_repository" : "git@github.com:mozilla-mobile/firefox-android.git" ,
105+ "head_repository" : "git@github.com:mozilla-mobile/firefox-android.git" ,
106+ },
83107 ["assume:repo:github.com/mozilla-mobile/firefox-android:action:generic" ],
84108 does_not_raise (),
85109 ),
86110 (
87111 "retrigger" ,
88- {"base_repository" : "git@github.com:mozilla-mobile/firefox-android.git" },
112+ {
113+ "base_repository" : "git@github.com:mozilla-mobile/firefox-android.git" ,
114+ "head_repository" : "git@github.com:someuser/firefox-android.git" ,
115+ },
89116 ["assume:repo:github.com/mozilla-mobile/firefox-android:pr-action:generic" ],
90117 does_not_raise (),
91118 ),
0 commit comments