James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # Copyright 2012-2014 Hewlett-Packard Development Company, L.P. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 6 | # not use this file except in compliance with the License. You may obtain |
| 7 | # a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 | # License for the specific language governing permissions and limitations |
| 15 | # under the License. |
| 16 | |
| 17 | import logging |
| 18 | import time |
| 19 | |
| 20 | from tests.base import ZuulTestCase |
| 21 | |
| 22 | logging.basicConfig(level=logging.DEBUG, |
| 23 | format='%(asctime)s %(name)-32s ' |
| 24 | '%(levelname)-8s %(message)s') |
| 25 | |
| 26 | |
| 27 | class TestRequirements(ZuulTestCase): |
| 28 | """Test pipeline and trigger requirements""" |
| 29 | |
| 30 | def test_pipeline_require_approval_newer_than(self): |
| 31 | "Test pipeline requirement: approval newer than" |
| 32 | return self._test_require_approval_newer_than('org/project1', |
| 33 | 'project1-pipeline') |
| 34 | |
| 35 | def test_trigger_require_approval_newer_than(self): |
| 36 | "Test trigger requirement: approval newer than" |
| 37 | return self._test_require_approval_newer_than('org/project2', |
| 38 | 'project2-trigger') |
| 39 | |
| 40 | def _test_require_approval_newer_than(self, project, job): |
| 41 | self.config.set('zuul', 'layout_config', |
| 42 | 'tests/fixtures/layout-requirement-newer-than.yaml') |
| 43 | self.sched.reconfigure(self.config) |
| 44 | self.registerJobs() |
| 45 | |
| 46 | A = self.fake_gerrit.addFakeChange(project, 'master', 'A') |
| 47 | # A comment event that we will keep submitting to trigger |
| 48 | comment = A.addApproval('CRVW', 2, username='nobody') |
| 49 | self.fake_gerrit.addEvent(comment) |
| 50 | self.waitUntilSettled() |
| 51 | # No +1 from Jenkins so should not be enqueued |
| 52 | self.assertEqual(len(self.history), 0) |
| 53 | |
| 54 | # Add a too-old +1, should not be enqueued |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 55 | A.addApproval('VRFY', 1, username='jenkins', |
| 56 | granted_on=time.time() - 72 * 60 * 60) |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 57 | self.fake_gerrit.addEvent(comment) |
| 58 | self.waitUntilSettled() |
| 59 | self.assertEqual(len(self.history), 0) |
| 60 | |
| 61 | # Add a recent +1 |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 62 | self.fake_gerrit.addEvent(A.addApproval('VRFY', 1, username='jenkins')) |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 63 | self.fake_gerrit.addEvent(comment) |
| 64 | self.waitUntilSettled() |
| 65 | self.assertEqual(len(self.history), 1) |
| 66 | self.assertEqual(self.history[0].name, job) |
| 67 | |
| 68 | def test_pipeline_require_approval_older_than(self): |
| 69 | "Test pipeline requirement: approval older than" |
| 70 | return self._test_require_approval_older_than('org/project1', |
| 71 | 'project1-pipeline') |
| 72 | |
| 73 | def test_trigger_require_approval_older_than(self): |
| 74 | "Test trigger requirement: approval older than" |
| 75 | return self._test_require_approval_older_than('org/project2', |
| 76 | 'project2-trigger') |
| 77 | |
| 78 | def _test_require_approval_older_than(self, project, job): |
| 79 | self.config.set('zuul', 'layout_config', |
| 80 | 'tests/fixtures/layout-requirement-older-than.yaml') |
| 81 | self.sched.reconfigure(self.config) |
| 82 | self.registerJobs() |
| 83 | |
| 84 | A = self.fake_gerrit.addFakeChange(project, 'master', 'A') |
| 85 | # A comment event that we will keep submitting to trigger |
| 86 | comment = A.addApproval('CRVW', 2, username='nobody') |
| 87 | self.fake_gerrit.addEvent(comment) |
| 88 | self.waitUntilSettled() |
| 89 | # No +1 from Jenkins so should not be enqueued |
| 90 | self.assertEqual(len(self.history), 0) |
| 91 | |
| 92 | # Add a recent +1 which should not be enqueued |
| 93 | A.addApproval('VRFY', 1) |
| 94 | self.fake_gerrit.addEvent(comment) |
| 95 | self.waitUntilSettled() |
| 96 | self.assertEqual(len(self.history), 0) |
| 97 | |
| 98 | # Add an old +1 which should be enqueued |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 99 | A.addApproval('VRFY', 1, username='jenkins', |
| 100 | granted_on=time.time() - 72 * 60 * 60) |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 101 | self.fake_gerrit.addEvent(comment) |
| 102 | self.waitUntilSettled() |
| 103 | self.assertEqual(len(self.history), 1) |
| 104 | self.assertEqual(self.history[0].name, job) |
| 105 | |
| 106 | def test_pipeline_require_approval_username(self): |
| 107 | "Test pipeline requirement: approval username" |
| 108 | return self._test_require_approval_username('org/project1', |
| 109 | 'project1-pipeline') |
| 110 | |
| 111 | def test_trigger_require_approval_username(self): |
| 112 | "Test trigger requirement: approval username" |
| 113 | return self._test_require_approval_username('org/project2', |
| 114 | 'project2-trigger') |
| 115 | |
| 116 | def _test_require_approval_username(self, project, job): |
| 117 | self.config.set('zuul', 'layout_config', |
| 118 | 'tests/fixtures/layout-requirement-username.yaml') |
| 119 | self.sched.reconfigure(self.config) |
| 120 | self.registerJobs() |
| 121 | |
| 122 | A = self.fake_gerrit.addFakeChange(project, 'master', 'A') |
| 123 | # A comment event that we will keep submitting to trigger |
| 124 | comment = A.addApproval('CRVW', 2, username='nobody') |
| 125 | self.fake_gerrit.addEvent(comment) |
| 126 | self.waitUntilSettled() |
| 127 | # No approval from Jenkins so should not be enqueued |
| 128 | self.assertEqual(len(self.history), 0) |
| 129 | |
| 130 | # Add an approval from Jenkins |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 131 | A.addApproval('VRFY', 1, username='jenkins') |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 132 | self.fake_gerrit.addEvent(comment) |
| 133 | self.waitUntilSettled() |
| 134 | self.assertEqual(len(self.history), 1) |
| 135 | self.assertEqual(self.history[0].name, job) |
| 136 | |
| 137 | def test_pipeline_require_approval_email(self): |
| 138 | "Test pipeline requirement: approval email" |
| 139 | return self._test_require_approval_email('org/project1', |
| 140 | 'project1-pipeline') |
| 141 | |
| 142 | def test_trigger_require_approval_email(self): |
| 143 | "Test trigger requirement: approval email" |
| 144 | return self._test_require_approval_email('org/project2', |
| 145 | 'project2-trigger') |
| 146 | |
| 147 | def _test_require_approval_email(self, project, job): |
| 148 | self.config.set('zuul', 'layout_config', |
| 149 | 'tests/fixtures/layout-requirement-email.yaml') |
| 150 | self.sched.reconfigure(self.config) |
| 151 | self.registerJobs() |
| 152 | |
| 153 | A = self.fake_gerrit.addFakeChange(project, 'master', 'A') |
| 154 | # A comment event that we will keep submitting to trigger |
| 155 | comment = A.addApproval('CRVW', 2, username='nobody') |
| 156 | self.fake_gerrit.addEvent(comment) |
| 157 | self.waitUntilSettled() |
| 158 | # No approval from Jenkins so should not be enqueued |
| 159 | self.assertEqual(len(self.history), 0) |
| 160 | |
| 161 | # Add an approval from Jenkins |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 162 | A.addApproval('VRFY', 1, username='jenkins') |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 163 | self.fake_gerrit.addEvent(comment) |
| 164 | self.waitUntilSettled() |
| 165 | self.assertEqual(len(self.history), 1) |
| 166 | self.assertEqual(self.history[0].name, job) |
| 167 | |
| 168 | def test_pipeline_require_approval_vote1(self): |
| 169 | "Test pipeline requirement: approval vote with one value" |
| 170 | return self._test_require_approval_vote1('org/project1', |
| 171 | 'project1-pipeline') |
| 172 | |
| 173 | def test_trigger_require_approval_vote1(self): |
| 174 | "Test trigger requirement: approval vote with one value" |
| 175 | return self._test_require_approval_vote1('org/project2', |
| 176 | 'project2-trigger') |
| 177 | |
| 178 | def _test_require_approval_vote1(self, project, job): |
| 179 | self.config.set('zuul', 'layout_config', |
| 180 | 'tests/fixtures/layout-requirement-vote1.yaml') |
| 181 | self.sched.reconfigure(self.config) |
| 182 | self.registerJobs() |
| 183 | |
| 184 | A = self.fake_gerrit.addFakeChange(project, 'master', 'A') |
| 185 | # A comment event that we will keep submitting to trigger |
| 186 | comment = A.addApproval('CRVW', 2, username='nobody') |
| 187 | self.fake_gerrit.addEvent(comment) |
| 188 | self.waitUntilSettled() |
| 189 | # No approval from Jenkins so should not be enqueued |
| 190 | self.assertEqual(len(self.history), 0) |
| 191 | |
| 192 | # A -1 from jenkins should not cause it to be enqueued |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 193 | A.addApproval('VRFY', -1, username='jenkins') |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 194 | self.fake_gerrit.addEvent(comment) |
| 195 | self.waitUntilSettled() |
| 196 | self.assertEqual(len(self.history), 0) |
| 197 | |
| 198 | # A +1 should allow it to be enqueued |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 199 | A.addApproval('VRFY', 1, username='jenkins') |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 200 | self.fake_gerrit.addEvent(comment) |
| 201 | self.waitUntilSettled() |
| 202 | self.assertEqual(len(self.history), 1) |
| 203 | self.assertEqual(self.history[0].name, job) |
| 204 | |
| 205 | def test_pipeline_require_approval_vote2(self): |
| 206 | "Test pipeline requirement: approval vote with two values" |
| 207 | return self._test_require_approval_vote2('org/project1', |
| 208 | 'project1-pipeline') |
| 209 | |
| 210 | def test_trigger_require_approval_vote2(self): |
| 211 | "Test trigger requirement: approval vote with two values" |
| 212 | return self._test_require_approval_vote2('org/project2', |
| 213 | 'project2-trigger') |
| 214 | |
| 215 | def _test_require_approval_vote2(self, project, job): |
| 216 | self.config.set('zuul', 'layout_config', |
| 217 | 'tests/fixtures/layout-requirement-vote2.yaml') |
| 218 | self.sched.reconfigure(self.config) |
| 219 | self.registerJobs() |
| 220 | |
| 221 | A = self.fake_gerrit.addFakeChange(project, 'master', 'A') |
| 222 | # A comment event that we will keep submitting to trigger |
| 223 | comment = A.addApproval('CRVW', 2, username='nobody') |
| 224 | self.fake_gerrit.addEvent(comment) |
| 225 | self.waitUntilSettled() |
| 226 | # No approval from Jenkins so should not be enqueued |
| 227 | self.assertEqual(len(self.history), 0) |
| 228 | |
| 229 | # A -1 from jenkins should not cause it to be enqueued |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 230 | A.addApproval('VRFY', -1, username='jenkins') |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 231 | self.fake_gerrit.addEvent(comment) |
| 232 | self.waitUntilSettled() |
| 233 | self.assertEqual(len(self.history), 0) |
| 234 | |
| 235 | # A -2 from jenkins should not cause it to be enqueued |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 236 | A.addApproval('VRFY', -2, username='jenkins') |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 237 | self.fake_gerrit.addEvent(comment) |
| 238 | self.waitUntilSettled() |
| 239 | self.assertEqual(len(self.history), 0) |
| 240 | |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 241 | # A +1 from jenkins should allow it to be enqueued |
| 242 | A.addApproval('VRFY', 1, username='jenkins') |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 243 | self.fake_gerrit.addEvent(comment) |
| 244 | self.waitUntilSettled() |
| 245 | self.assertEqual(len(self.history), 1) |
| 246 | self.assertEqual(self.history[0].name, job) |
| 247 | |
Jesse Keating | c2e69c6 | 2017-01-19 14:31:44 -0800 | [diff] [blame] | 248 | # A +2 from nobody should not cause it to be enqueued |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 249 | B = self.fake_gerrit.addFakeChange(project, 'master', 'B') |
| 250 | # A comment event that we will keep submitting to trigger |
| 251 | comment = B.addApproval('CRVW', 2, username='nobody') |
| 252 | self.fake_gerrit.addEvent(comment) |
| 253 | self.waitUntilSettled() |
| 254 | self.assertEqual(len(self.history), 1) |
| 255 | |
Jesse Keating | c2e69c6 | 2017-01-19 14:31:44 -0800 | [diff] [blame] | 256 | # A +2 from jenkins should allow it to be enqueued |
Joshua Hesketh | 642824b | 2014-07-01 17:54:59 +1000 | [diff] [blame] | 257 | B.addApproval('VRFY', 2, username='jenkins') |
James E. Blair | 9c17dbf | 2014-06-23 14:21:58 -0700 | [diff] [blame] | 258 | self.fake_gerrit.addEvent(comment) |
| 259 | self.waitUntilSettled() |
| 260 | self.assertEqual(len(self.history), 2) |
| 261 | self.assertEqual(self.history[1].name, job) |
| 262 | |
| 263 | def test_pipeline_require_current_patchset(self): |
| 264 | "Test pipeline requirement: current-patchset" |
| 265 | self.config.set('zuul', 'layout_config', |
| 266 | 'tests/fixtures/layout-requirement-' |
| 267 | 'current-patchset.yaml') |
| 268 | self.sched.reconfigure(self.config) |
| 269 | self.registerJobs() |
| 270 | # Create two patchsets and let their tests settle out. Then |
| 271 | # comment on first patchset and check that no additional |
| 272 | # jobs are run. |
| 273 | A = self.fake_gerrit.addFakeChange('org/project', 'master', 'A') |
| 274 | self.fake_gerrit.addEvent(A.addApproval('CRVW', 1)) |
| 275 | self.waitUntilSettled() |
| 276 | A.addPatchset() |
| 277 | self.fake_gerrit.addEvent(A.addApproval('CRVW', 1)) |
| 278 | self.waitUntilSettled() |
| 279 | |
| 280 | self.assertEqual(len(self.history), 2) # one job for each ps |
| 281 | self.fake_gerrit.addEvent(A.getChangeCommentEvent(1)) |
| 282 | self.waitUntilSettled() |
| 283 | |
| 284 | # Assert no new jobs ran after event for old patchset. |
| 285 | self.assertEqual(len(self.history), 2) |
| 286 | |
| 287 | # Make sure the same event on a new PS will trigger |
| 288 | self.fake_gerrit.addEvent(A.getChangeCommentEvent(2)) |
| 289 | self.waitUntilSettled() |
| 290 | self.assertEqual(len(self.history), 3) |
| 291 | |
| 292 | def test_pipeline_require_open(self): |
| 293 | "Test pipeline requirement: open" |
| 294 | self.config.set('zuul', 'layout_config', |
| 295 | 'tests/fixtures/layout-requirement-open.yaml') |
| 296 | self.sched.reconfigure(self.config) |
| 297 | self.registerJobs() |
| 298 | |
| 299 | A = self.fake_gerrit.addFakeChange('org/project', 'master', 'A', |
| 300 | status='MERGED') |
| 301 | self.fake_gerrit.addEvent(A.addApproval('CRVW', 2)) |
| 302 | self.waitUntilSettled() |
| 303 | self.assertEqual(len(self.history), 0) |
| 304 | |
| 305 | B = self.fake_gerrit.addFakeChange('org/project', 'master', 'B') |
| 306 | self.fake_gerrit.addEvent(B.addApproval('CRVW', 2)) |
| 307 | self.waitUntilSettled() |
| 308 | self.assertEqual(len(self.history), 1) |
| 309 | |
| 310 | def test_pipeline_require_status(self): |
| 311 | "Test pipeline requirement: status" |
| 312 | self.config.set('zuul', 'layout_config', |
| 313 | 'tests/fixtures/layout-requirement-status.yaml') |
| 314 | self.sched.reconfigure(self.config) |
| 315 | self.registerJobs() |
| 316 | |
| 317 | A = self.fake_gerrit.addFakeChange('org/project', 'master', 'A', |
| 318 | status='MERGED') |
| 319 | self.fake_gerrit.addEvent(A.addApproval('CRVW', 2)) |
| 320 | self.waitUntilSettled() |
| 321 | self.assertEqual(len(self.history), 0) |
| 322 | |
| 323 | B = self.fake_gerrit.addFakeChange('org/project', 'master', 'B') |
| 324 | self.fake_gerrit.addEvent(B.addApproval('CRVW', 2)) |
| 325 | self.waitUntilSettled() |
| 326 | self.assertEqual(len(self.history), 1) |
Joshua Hesketh | 66c8e52 | 2014-06-26 15:30:08 +1000 | [diff] [blame] | 327 | |
| 328 | def _test_require_reject_username(self, project, job): |
| 329 | "Test negative username's match" |
| 330 | # Should only trigger if Jenkins hasn't voted. |
| 331 | self.config.set( |
| 332 | 'zuul', 'layout_config', |
| 333 | 'tests/fixtures/layout-requirement-reject-username.yaml') |
| 334 | self.sched.reconfigure(self.config) |
| 335 | self.registerJobs() |
| 336 | |
| 337 | # add in a change with no comments |
| 338 | A = self.fake_gerrit.addFakeChange(project, 'master', 'A') |
| 339 | self.waitUntilSettled() |
| 340 | self.assertEqual(len(self.history), 0) |
| 341 | |
| 342 | # add in a comment that will trigger |
| 343 | self.fake_gerrit.addEvent(A.addApproval('CRVW', 1, |
| 344 | username='reviewer')) |
| 345 | self.waitUntilSettled() |
| 346 | self.assertEqual(len(self.history), 1) |
| 347 | self.assertEqual(self.history[0].name, job) |
| 348 | |
| 349 | # add in a comment from jenkins user which shouldn't trigger |
| 350 | self.fake_gerrit.addEvent(A.addApproval('VRFY', 1, username='jenkins')) |
| 351 | self.waitUntilSettled() |
| 352 | self.assertEqual(len(self.history), 1) |
| 353 | |
| 354 | # Check future reviews also won't trigger as a 'jenkins' user has |
| 355 | # commented previously |
| 356 | self.fake_gerrit.addEvent(A.addApproval('CRVW', 1, |
| 357 | username='reviewer')) |
| 358 | self.waitUntilSettled() |
| 359 | self.assertEqual(len(self.history), 1) |
| 360 | |
| 361 | def test_pipeline_reject_username(self): |
| 362 | "Test negative pipeline requirement: no comment from jenkins" |
| 363 | return self._test_require_reject_username('org/project1', |
| 364 | 'project1-pipeline') |
| 365 | |
| 366 | def test_trigger_reject_username(self): |
| 367 | "Test negative trigger requirement: no comment from jenkins" |
| 368 | return self._test_require_reject_username('org/project2', |
| 369 | 'project2-trigger') |
| 370 | |
| 371 | def _test_require_reject(self, project, job): |
| 372 | "Test no approval matches a reject param" |
| 373 | self.config.set( |
| 374 | 'zuul', 'layout_config', |
| 375 | 'tests/fixtures/layout-requirement-reject.yaml') |
| 376 | self.sched.reconfigure(self.config) |
| 377 | self.registerJobs() |
| 378 | |
| 379 | A = self.fake_gerrit.addFakeChange(project, 'master', 'A') |
| 380 | self.waitUntilSettled() |
| 381 | self.assertEqual(len(self.history), 0) |
| 382 | |
| 383 | # First positive vote should not queue until jenkins has +1'd |
| 384 | comment = A.addApproval('VRFY', 1, username='reviewer_a') |
| 385 | self.fake_gerrit.addEvent(comment) |
| 386 | self.waitUntilSettled() |
| 387 | self.assertEqual(len(self.history), 0) |
| 388 | |
| 389 | # Jenkins should put in a +1 which will also queue |
| 390 | comment = A.addApproval('VRFY', 1, username='jenkins') |
| 391 | self.fake_gerrit.addEvent(comment) |
| 392 | self.waitUntilSettled() |
| 393 | self.assertEqual(len(self.history), 1) |
| 394 | self.assertEqual(self.history[0].name, job) |
| 395 | |
| 396 | # Negative vote should not queue |
| 397 | comment = A.addApproval('VRFY', -1, username='reviewer_b') |
| 398 | self.fake_gerrit.addEvent(comment) |
| 399 | self.waitUntilSettled() |
| 400 | self.assertEqual(len(self.history), 1) |
| 401 | |
| 402 | # Future approvals should do nothing |
| 403 | comment = A.addApproval('VRFY', 1, username='reviewer_c') |
| 404 | self.fake_gerrit.addEvent(comment) |
| 405 | self.waitUntilSettled() |
| 406 | self.assertEqual(len(self.history), 1) |
| 407 | |
| 408 | # Change/update negative vote should queue |
| 409 | comment = A.addApproval('VRFY', 1, username='reviewer_b') |
| 410 | self.fake_gerrit.addEvent(comment) |
| 411 | self.waitUntilSettled() |
| 412 | self.assertEqual(len(self.history), 2) |
| 413 | self.assertEqual(self.history[1].name, job) |
| 414 | |
| 415 | # Future approvals should also queue |
| 416 | comment = A.addApproval('VRFY', 1, username='reviewer_d') |
| 417 | self.fake_gerrit.addEvent(comment) |
| 418 | self.waitUntilSettled() |
| 419 | self.assertEqual(len(self.history), 3) |
| 420 | self.assertEqual(self.history[2].name, job) |
| 421 | |
| 422 | def test_pipeline_require_reject(self): |
| 423 | "Test pipeline requirement: rejections absent" |
| 424 | return self._test_require_reject('org/project1', 'project1-pipeline') |
| 425 | |
| 426 | def test_trigger_require_reject(self): |
| 427 | "Test trigger requirement: rejections absent" |
| 428 | return self._test_require_reject('org/project2', 'project2-trigger') |