Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
fea9f0a7
Commit
fea9f0a7
authored
May 05, 2019
by
Greg Messner
Browse files
Initial commit (#311).
parent
1db21d12
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/resources/test-gitlab4j.properties
0 → 100644
View file @
fea9f0a7
#
# To test GitLab4J-API, you must have access to a GitLab server. The Maven pom.xml
# for this library is set up to auto launch a gitlab-ce Docker image when running
# integration tests.
#
# If you wish to use an existing instance of a GitLab server to run integration tests
# against, copy this file to ~/test-gitlab4j.properties and set the property
# values to match the GitLab server you wish to test against.
#
# REQUIRED: The following values must be set or the tests will fail.
# The TEST_PRIVATE_TOKEN and TEST_USERNAME must belong to an admin user.
#
TEST_HOST_URL
=
http://localhost:8090
# To stop the auto-creation of access tokens, you can set these to pre-configured values
# TEST_PRIVATE_TOKEN=xxxxxxxx
# TEST_ACCESS_TOKEN=xxxxxxxx
# When integration tests are ran this is automatically fetched from the GitLab server,
# Set it here and this value will be used instead
# TEST_HEALTH_CHECK_TOKEN=xxxxxxxxxxx
# This specifies the user that will be utilized to access the GitLab server for all API calls
# during integration testing, this user will be created if it does not exist
TEST_LOGIN_USERNAME
=
gitlab4j
TEST_LOGIN_PASSWORD
=
ChangeMeNow
# This specifies the default project to test against and the owner of that project, change
# this if you'd like to test against a different project
TEST_PROJECT_NAME
=
test-project
TEST_USERNAME
=
gitlab4j
# This is the user to test sudo, block, and project transfer. If the user does not exist
# it will be created during integration testing
TEST_SUDO_AS_USERNAME
=
user1
TEST_BLOCK_USERNAME
=
user1
TEST_XFER_NAMESPACE
=
user1
# This specifies the group, a project owned by the specified group, and a username to
# test group membership functionality
TEST_GROUP
=
test-group
TEST_GROUP_PROJECT
=
test-group-project
TEST_GROUP_MEMBER_USERNAME
=
user1
# OPTIONAL: To test using GitLab4J-API with a proxy, set the following properties
TEST_PROXY_URI
=
TEST_PROXY_USERNAME
=
TEST_PROXY_PASSWORD
=
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment