Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Allow using https in acceptance tests Activiti/Activiti#2406 (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
mteodori authored and mergify[bot] committed Jan 25, 2019
1 parent 4dfc9c3 commit 08b632d
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 23 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@

This repo now includes a set of modules which contains different acceptances tests. This acceptance tests rely on having an environment to run against.

In order to point to an environment you can export the following *ENVIROMENTAL VARIABLES*
In order to point to an environment you can export the following *ENVIROMENT VARIABLES*

```
> export GATEWAY_HOST=<custom-gateway-host>:<custom-gateway-port>
> export SSO_HOST=<custom-sso-host>:<custom-sso-port>
> export REALM=activiti
```

to use *https* rather than *http*:
```
> export GATEWAY_PROTOCOL=https
> export SSO_PROTOCOL=https
```

or specify the full URL:
```
> export GATEWAY_URL=<custom-gateway-url>
> export SSO_URL=<custom-sso-url>
```

You can use our HELM charts hosted here: [Activiti Cloud HELM Charts](https://github.com/Activiti/activiti-cloud-charts/tree/master/activiti-cloud-full-example) to create these environments
with all the services that are tested by these acceptance tests.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
realm=springboot
auth.url=http://${SSO_HOST}/auth/realms/${realm}/protocol/openid-connect/token
apps.url=http://${GATEWAY_HOST}/apps
realm=activiti
sso.url=${sso.protocol:http}://${sso.host}/auth
auth.url=${sso.url}/realms/${realm}/protocol/openid-connect/token
gateway.url=${gateway.protocol:http}://${gateway.host}
apps.url=${gateway.url}/apps
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
realm=activiti
auth.url=http://${SSO_HOST}/auth/realms/${realm}/protocol/openid-connect/token
sso.url=${sso.protocol:http}://${sso.host}/auth
auth.url=${sso.url}/realms/${realm}/protocol/openid-connect/token
gateway.url=${gateway.protocol:http}://${gateway.host}
modeling.url=${gateway.url}/${modeling.path}
modeling.path=activiti-cloud-modeling-backend
modeling.url=http://${GATEWAY_HOST}/${modeling.path}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
realm=springboot
auth.url=http://${SSO_HOST}/auth/realms/${realm}/protocol/openid-connect/token
audit.event.url=http://${GATEWAY_HOST}/audit
runtime.bundle.url=http://${GATEWAY_HOST}/rb-my-app
runtime.bundle.another.url=http://${GATEWAY_HOST}/rb-other-app
query.url=http://${GATEWAY_HOST}/query
sso.url=${sso.protocol:http}://${sso.host}/auth
auth.url=${sso.url}/realms/${realm}/protocol/openid-connect/token
gateway.url=${gateway.protocol:http}://${gateway.host}
audit.event.url=${gateway.url}/audit
runtime.bundle.url=${gateway.url}/rb-my-app
runtime.bundle.another.url=${gateway.url}/rb-other-app
query.url=${gateway.url}/query
14 changes: 14 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

export REALM=activiti
export SSO_PROTOCOL=${SSO_PROTOCOL:-http}
export SSO_HOST=${SSO_HOST:-activiti-keycloak.jx-staging.35.228.195.195.nip.io}
export GATEWAY_PROTOCOL=${GATEWAY_PROTOCOL:-http}
export GATEWAY_HOST=${GATEWAY_HOST:-activiti-cloud-gateway.jx-staging.35.228.195.195.nip.io}
export SSO_URL=${SSO_URL:-${SSO_PROTOCOL}://${SSO_HOST}/auth}
export GATEWAY_URL=${GATEWAY_URL:-${GATEWAY_PROTOCOL}://${GATEWAY_HOST}}
echo running tests on env:
echo REALM=${REALM}
echo SSO_URL=${SSO_URL}
echo GATEWAY_URL=${GATEWAY_URL}
mvn clean verify serenity:aggregate
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
realm=activiti
auth.url=http://${SSO_HOST}/auth/realms/${realm}/protocol/openid-connect/token
audit.event.url=http://${GATEWAY_HOST}/audit
runtime.bundle.url=http://${GATEWAY_HOST}/rb-my-app
query.url=http://${GATEWAY_HOST}/query
graphql.ws.url=ws://${GATEWAY_HOST}/ws/graphql
graphql.url=http://${GATEWAY_HOST}/graphql
sso.url=${sso.protocol:http}://${sso.host}/auth
auth.url=${sso.url}/realms/${realm}/protocol/openid-connect/token
gateway.url=${gateway.protocol:http}://${gateway.host}
audit.event.url=${gateway.url}/audit
runtime.bundle.url=${gateway.url}/rb-my-app
query.url=${gateway.url}/query
graphql.ws.url=#{"${gateway.url}".replace('http', 'ws')}/ws/graphql
graphql.url=${gateway.url}/graphql
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
realm=activiti
auth.url=http://${SSO_HOST}/auth/realms/${realm}/protocol/openid-connect/token
audit.event.url=http://${GATEWAY_HOST}/audit
runtime.bundle.url=http://${GATEWAY_HOST}/rb-my-app
query.url=http://${GATEWAY_HOST}/query
graphql.ws.url=ws://${GATEWAY_HOST}/ws/graphql
graphql.url=http://${GATEWAY_HOST}/graphql
sso.url=${sso.protocol:http}://${sso.host}/auth
auth.url=${sso.url}/realms/${realm}/protocol/openid-connect/token
gateway.url=${gateway.protocol:http}://${gateway.host}
audit.event.url=${gateway.url}/audit
runtime.bundle.url=${gateway.url}/rb-my-app
query.url=${gateway.url}/query
graphql.ws.url=#{"${gateway.url}".replace('http', 'ws')}/ws/graphql
graphql.url=${gateway.url}/graphql

0 comments on commit 08b632d

Please sign in to comment.