Skip to content
Snippets Groups Projects

implement anthos int tests(GONRG-4979)

Merged Rustam Lotsmanenko (EPAM) requested to merge anthos-it into master
Files
21
@@ -306,4 +306,40 @@ These buckets must be defined in tenants’ dedicated object store servers. OBM
<td>CreateBucket, CRUDObject
</td>
</tr>
</table>
\ No newline at end of file
</table>
### Running E2E Tests
This section describes how to run cloud OSDU E2E tests (testing/legal-test-anthos).
You will need to have the following environment variables defined.
| name | value | description | sensitive? | source |
| --- | --- | --- | --- | --- |
| `HOST_URL` | `http://localhsot:8080/api/legal/v1/` | - | yes | - |
| `MY_TENANT` | `osdu` | OSDU tenant used for testing | yes | - |
| `SKIP_HTTP_TESTS` | ex `true` | jetty server returns 403 when running locally when deployed jettyserver is not used and the app returns a 302 so just run against deployed version only when checking http -> https redirects. Use 'true' for Google Cloud Run | yes | - |
| `ENABLE_FULL_BUCKET_NAME` | ex `true` | Full bucket name | no | - |
| `ANTHOS_PROJECT_ID` | ex `osdu-anthos` | project id used to specify bucket name if `ENABLE_FULL_BUCKET_NAME`=true | no | - |
| `TEST_OPENID_PROVIDER_CLIENT_ID` | `********` | Client Id for `$INTEGRATION_TESTER` | yes | -- |
| `TEST_OPENID_PROVIDER_CLIENT_SECRET` | `********` | | Client secret for `$INTEGRATION_TESTER` | -- |
| `TEST_OPENID_PROVIDER_URL` | `https://keycloak.com/auth/realms/osdu` | OpenID provider url | yes | -- |
| `TEST_MINIO_ACCESS_KEY` | ex `true` | Minio access key| no | - |
| `TEST_MINIO_SECRET_KEY` | `********` | Minio secret | yes | -- |
| `TEST_MINIO_URL` | `https://s3.ref.gcp.gnrg-osdu.projects.epam.com/`| Minio url | -- |
**Entitlements configuration for integration accounts**
| INTEGRATION_TESTER |
| --- |
| users<br/>service.entitlements.user<br/>service.legal.admin<br/>service.legal.editor<br/>service.legal.user<br/>data.test1<br/>data.integration.test |
Execute following command to build code and run all the integration tests:
```bash
# Note: this assumes that the environment variables for integration tests as outlined
# above are already exported in your environment.
$ (cd testing/legal-test-core/ && mvn clean install)
$ (cd testing/legal-test-anthos/ && mvn clean test)
```
\ No newline at end of file
Loading