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:
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"url": "http://HOSTNAME:HTTP_PORT/a/config/server/caches/projects",
|
||||
"entries": "PROJECTS_ENTRIES"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
[
|
||||
{
|
||||
"url": "http://HOSTNAME:HTTP_PORT/a/config/server/caches/projects/flush"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
[
|
||||
{
|
||||
"url": "http://HOSTNAME:HTTP_PORT/a/config/server/caches/projects"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user