Files
gerrit/gerrit-acceptance-framework
Alice Kober-Sotzek 6da54a4009 Ensure that system groups can be retrieved from the index during tests
The way we set up the test environment resulted in an empty group
index at the start of our tests. This means that any groups which
were created during the setup (e.g. system groups like "Administrators")
couldn't be looked up from the index during tests. As we didn't use
the group index in tests up to now, we didn't notice it so far.

To unblock further changes which will require the group index to work
during tests, we reindex all available groups after setting up the test
environment.

It would be preferable to fix this issue properly without this
workaround. However, it doesn't seem to be easily possible. The biggest
issue is that any indexes during tests are non-permanent. If we open an
instance of the group index during setup (especially during the on-init
phase), close it, and open another instance for the real test, all
indexed data is lost. Until we find a way around this, we'll have to
live with this workaround.

Change-Id: Icf50c0be99be2a33e96688f15a01d9ea90f5563e
2017-08-23 17:51:14 +02:00
..