e2e-tests: Support optional parent in CreateProject

The name of the parent project [1] can be set using the hereby
introduced environment property [2], using the already documented method
[3] (below). By default, the parent of the created project remains
All-Projects ([1]).

[1] https://gerrit-documentation.storage.googleapis.com/Documentation/3.0.12/rest-api-projects.html#project-input
[2] -Dcom.google.gerrit.scenarios.parent=parentProjectName
[3] https://gerrit-documentation.storage.googleapis.com/Documentation/3.0.12/dev-e2e-tests.html#_environment_properties

Change-Id: Iea43946a18ac42bb5533c17d1e839fd99798b185
This commit is contained in:
Marco Miller
2020-07-27 14:21:30 -04:00
parent 6c2c5eb200
commit 9b9abf4186
4 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
{
"create_empty_commit": "true"
"create_empty_commit": "true",
"parent": "${parent}"
}

View File

@@ -1,5 +1,6 @@
[
{
"url": "HTTP_SCHEME://HOSTNAME:HTTP_PORT/a/projects/PROJECT"
"url": "HTTP_SCHEME://HOSTNAME:HTTP_PORT/a/projects/PROJECT",
"parent": "PARENT"
}
]