Merge "Add more testing for pass-to-parent"

This commit is contained in:
Zuul 2019-01-18 23:38:05 +00:00 committed by Gerrit Code Review
commit 691b1bc17c
2 changed files with 14 additions and 0 deletions

View File

@ -58,6 +58,11 @@
files: override.txt
- project:
check:
jobs:
- no-pass
- pass
- override
gate:
jobs:
- no-pass

View File

@ -3849,6 +3849,15 @@ class TestSecretPassToParent(ZuulTestCase):
[{'parent_secret': {'password': 'password3'},
'secret': {'password': 'password1'}}])
B = self.fake_gerrit.addFakeChange('org/project', 'master', 'B',
files=file_dict)
self.fake_gerrit.addEvent(B.getPatchsetCreatedEvent(1))
self.waitUntilSettled()
self.assertHistory([
dict(name='pass', result='SUCCESS', changes='1,1'),
])
self.assertIn('does not allow post-review', B.messages[0])
def test_secret_override(self):
# Test that secrets passed to parents don't override existing
# secrets.