-
Vihar Mamania authoredVihar Mamania authored
Running E2E Tests
You will need to have the following environment variables defined.
name | value | description | sensitive? | source | required |
---|---|---|---|---|---|
CLIENT_TENANT |
ex osdu
|
Shared Tenant name | no | - | yes |
OSDU_TENANT |
ex osdu
|
OSDU tenant | no | - | yes |
REGISTER_BASE_URL |
ex http://localhost:8080
|
Register service Base URL | no | - | yes |
REGISTER_CUSTOM_PUSH_URL |
ex http://localhost:8080/api/register/v1/test/challenge/1
|
Registration Push URL | no | - | yes |
SUBSCRIPTION_ID |
ex abc
|
Subscription used for testing | no | - | yes |
SUBSCRIBER_PRIVATE_KEY_ID |
******** |
Subscriber key | yes | - | yes |
SUBSCRIBER_SECRET |
******** |
Subscriber secret | yes | - | yes |
TEST_TOPIC_NAME |
ex records-changed
|
Event grid topic name, default- 'records-changed' | no | - | no |
Authentication can be provided as OIDC config:
name | value | description | sensitive? | source |
---|---|---|---|---|
EDITOR_OPENID_PROVIDER_CLIENT_ID |
******** |
Editor Client Id | yes | - |
EDITOR_OPENID_PROVIDER_CLIENT_SECRET |
******** |
Editor Client secret | yes | - |
ADMIN_OPENID_PROVIDER_CLIENT_ID |
******** |
Admin Client Id | yes | - |
ADMIN_OPENID_PROVIDER_CLIENT_SECRET |
******** |
Admin Client secret | yes | - |
NO_ACCESS_OPENID_PROVIDER_CLIENT_ID |
******** |
No Access Client Id | yes | - |
NO_ACCESS_OPENID_PROVIDER_CLIENT_SECRET |
******** |
No Access Client secret | yes | - |
OPS_OPENID_PROVIDER_CLIENT_ID |
******** |
Ops Client Id | yes | - |
OPS_OPENID_PROVIDER_CLIENT_SECRET |
******** |
Ops Client secret | yes | - |
TEST_OPENID_PROVIDER_URL |
ex https://keycloak.com/auth/realms/osdu
|
OpenID provider url | yes | - |
Or tokens can be used directly from env variables:
name | value | description | sensitive? | source |
---|---|---|---|---|
EDITOR_TOKEN |
******** |
Editor Token | yes | - |
PRIVILEGED_USER_TOKEN |
******** |
Privileged User Token | yes | - |
OPS_TOKEN |
******** |
Ops Token | yes | - |
NO_ACCESS_USER_TOKEN |
******** |
No Access Token | yes | - |
Execute following command to build code and run all the integration tests:
# Note: this assumes that the environment variables for integration tests as outlined
# above are already exported in your environment.
# build + install integration test core
$ (cd register-acceptance-test && mvn clean test)
License
Copyright © Google LLC
Copyright © EPAM Systems
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.