e2e-tests: Add FlushProjectsCache related scenarios

Add a FlushProjectsCache scenario to this core framework. Make it reuse
the added GetProjectsCacheEntries and CheckProjectsCacheFlushEntries
scenarios, which can also be run independently as usual. Make all these
added scenarios extend the introduced CacheFlushSimulation core class,
for consistency and further reusability purposes.

In order for CheckProjectsCacheFlushEntries to run independently, as
opposed to otherwise being composed, introduce the PROJECTS_ENTRIES
optional JAVA_OPTS property ([1]). Default that value to 1, based on the
initial projects cache cardinality showed by locally testing this case.

[1] https://gerrit-review.googlesource.com/Documentation/dev-e2e-tests.html#_environment_properties

Change-Id: Ic5b6554332730763b538767d4946787d37baa9c1
This commit is contained in:
Marco Miller
2020-05-04 13:30:33 -04:00
parent 262bc75266
commit d54dfb17ef
8 changed files with 203 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
[
{
"url": "http://HOSTNAME:HTTP_PORT/a/config/server/caches/projects",
"entries": "PROJECTS_ENTRIES"
}
]

View File

@@ -0,0 +1,5 @@
[
{
"url": "http://HOSTNAME:HTTP_PORT/a/config/server/caches/projects/flush"
}
]

View File

@@ -0,0 +1,5 @@
[
{
"url": "http://HOSTNAME:HTTP_PORT/a/config/server/caches/projects"
}
]