zuul/tests
James E. Blair a17a8e7ba4 Handle secrets in branches
There were two problems with secrets related to branches.  First,
a secret defined in one branch could not be used in another.  This
is because the isSameProject method was a bit overzealous and also
ensured the secrets were on the same branch.  Relaxing that allows
secrets to be used by jobs defined in multiple branches of the same
project.

Second, because secrets are required to be globally unique, the
expected workflow of branching a project would immediately produce
a configuration error since the secret would already be defined.
To handle this case, allow multiple definitions of a secret, but
only if they are in multiple branches of the same project, and only
if they have the same data.  This should facilitate this workflow,
as well as the ability to age-out secrets on old branches.

We do not support different values for the same secret name on
different branches.

Story: 2001443
Task: 6154
Story: 2001442
Task: 6153
Change-Id: Ia9d5b77d1ce46e6461b370e951301ede4045bbb9
2018-01-18 13:38:02 -08:00
..
fixtures Handle secrets in branches 2018-01-18 13:38:02 -08:00
nodepool Cleanup zookeeper and fake nodepool in nodepool tests 2017-04-25 10:19:31 -07:00
unit Handle secrets in branches 2018-01-18 13:38:02 -08:00
__init__.py Add non-voting jobs. 2012-08-23 23:20:09 +00:00
base.py Merge "Add cross-source tests" into feature/zuulv3 2018-01-16 21:49:45 +00:00
encrypt_secret.py Make tests' encrypt_secret.py work with python3 2017-10-19 18:09:57 +00:00
fakegithub.py Share a fake pull request database across connections 2018-01-05 13:45:25 -08:00
make_playbooks.py Use libyaml if possible 2017-04-04 11:49:05 -07:00
print_layout.py Do not add implied branch matchers in project-templates 2017-09-30 10:19:07 -07:00