|
| 1 | +# |
| 2 | +# To test GitLab4J-API, you must have access to a GitLab server. The Maven pom.xml |
| 3 | +# for this library is set up to auto launch a gitlab-ce Docker image when running |
| 4 | +# integration tests. |
| 5 | +# |
| 6 | +# If you wish to use an existing instance of a GitLab server to run integration tests |
| 7 | +# against, copy this file to ~/test-gitlab4j.properties and set the property |
| 8 | +# values to match the GitLab server you wish to test against. |
| 9 | +# |
| 10 | + |
| 11 | +# REQUIRED: The following values must be set or the tests will fail. |
| 12 | +# The TEST_PRIVATE_TOKEN and TEST_USERNAME must belong to an admin user. |
| 13 | + |
| 14 | +# |
| 15 | +TEST_HOST_URL=http://localhost:8090 |
| 16 | + |
| 17 | +# To stop the auto-creation of access tokens, you can set these to pre-configured values |
| 18 | +# TEST_PRIVATE_TOKEN=xxxxxxxx |
| 19 | +# TEST_ACCESS_TOKEN=xxxxxxxx |
| 20 | + |
| 21 | +# When integration tests are ran this is automatically fetched from the GitLab server, |
| 22 | +# Set it here and this value will be used instead |
| 23 | +# TEST_HEALTH_CHECK_TOKEN=xxxxxxxxxxx |
| 24 | + |
| 25 | +# This specifies the user that will be utilized to access the GitLab server for all API calls |
| 26 | +# during integration testing, this user will be created if it does not exist |
| 27 | +TEST_LOGIN_USERNAME=gitlab4j |
| 28 | +TEST_LOGIN_PASSWORD=ChangeMeNow |
| 29 | + |
| 30 | +# This specifies the default project to test against and the owner of that project, change |
| 31 | +# this if you'd like to test against a different project |
| 32 | +TEST_PROJECT_NAME=test-project |
| 33 | +TEST_USERNAME=gitlab4j |
| 34 | + |
| 35 | +# This is the user to test sudo, block, and project transfer. If the user does not exist |
| 36 | +# it will be created during integration testing |
| 37 | +TEST_SUDO_AS_USERNAME=user1 |
| 38 | +TEST_BLOCK_USERNAME=user1 |
| 39 | +TEST_XFER_NAMESPACE=user1 |
| 40 | + |
| 41 | +# This specifies the group, a project owned by the specified group, and a username to |
| 42 | +# test group membership functionality |
| 43 | +TEST_GROUP=test-group |
| 44 | +TEST_GROUP_PROJECT=test-group-project |
| 45 | +TEST_GROUP_MEMBER_USERNAME=user1 |
| 46 | + |
| 47 | +# OPTIONAL: To test using GitLab4J-API with a proxy, set the following properties |
| 48 | +TEST_PROXY_URI= |
| 49 | +TEST_PROXY_USERNAME= |
| 50 | +TEST_PROXY_PASSWORD= |
| 51 | + |
0 commit comments