diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-09-04 16:32:37 +0200 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-09-04 16:32:37 +0200 |
commit | 1a23a1bcdf17ba4cf1cafb8e65babd1ad8666e59 (patch) | |
tree | b4b4313abfbcc535c927a57e4d2e0d2227f1528b | |
parent | d5732759bf7e90076c8fba189ae12a2a46fbb32e (diff) |
Adjust mongo related environment variables in bff docker-compose file
- services are expecting MONGO_ prefix instead of <SERVICENAME>_ for mongo related settings
- rename requests file
Issue-ID: PORTALNG-55
Change-Id: I371485e5430955907de7ee58c60fd91dd021c2f2
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
-rw-r--r-- | app/src/test/java/org/onap/portalng/bff/users/GetUserDetailIntegrationTest.java | 3 | ||||
-rw-r--r-- | development/.env | 21 | ||||
-rw-r--r-- | development/docker-compose.yml | 28 | ||||
-rw-r--r-- | development/requests-idea.http (renamed from development/requests.http) | 2 |
4 files changed, 27 insertions, 27 deletions
diff --git a/app/src/test/java/org/onap/portalng/bff/users/GetUserDetailIntegrationTest.java b/app/src/test/java/org/onap/portalng/bff/users/GetUserDetailIntegrationTest.java index 9c620bb..7360a63 100644 --- a/app/src/test/java/org/onap/portalng/bff/users/GetUserDetailIntegrationTest.java +++ b/app/src/test/java/org/onap/portalng/bff/users/GetUserDetailIntegrationTest.java @@ -52,7 +52,8 @@ class GetUserDetailIntegrationTest extends BaseIntegrationTest { .withHeader("Content-Type", MediaType.APPLICATION_JSON_VALUE) .withBody(objectMapper.writeValueAsString(keycloakUser)))); - final RoleKeycloakDto keycloackRole = new RoleKeycloakDto().id(randomUUID()).name("portal_admin"); + final RoleKeycloakDto keycloackRole = + new RoleKeycloakDto().id(randomUUID()).name("portal_admin"); mockAssignedRoles(keycloakUser.getId(), List.of(keycloackRole)); final UserResponseApiDto response = diff --git a/development/.env b/development/.env index 2775969..2a2a73d 100644 --- a/development/.env +++ b/development/.env @@ -23,18 +23,17 @@ MONGO_VERSION=latest # preferences PREFERENCES_IMAGE_NAME=preferences PREFERENCES_IMAGE_TAG=latest -PREFERENCES_USERNAME=root -PREFERENCES_PASSWORD=password -PREFERENCES_DATABASE=Preferences -PREFERENCES_HOST=mongo-preferences -PREFERENCES_PORT=27017 +PREFERENCES_MONGO_USERNAME=root +PREFERENCES_MONGO_PASSWORD=password +PREFERENCES_MONGO_DATABASE=Preferences +PREFERENCES_MONGO_HOST=mongo-preferences +PREFERENCES_MONGO_PORT=27017 # history HISTORY_IMAGE_NAME=history HISTORY_IMAGE_TAG=latest -HISTORY_USERNAME=root -HISTORY_PASSWORD=password -HISTORY_DATABASE=History -HISTORY_HOST=mongo-history -HISTORY_PORT=27017 - +HISTORY_MONGO_USERNAME=root +HISTORY_MONGO_PASSWORD=password +HISTORY_MONGO_DATABASE=History +HISTORY_MONGO_HOST=mongo-history +HISTORY_MONGO_PORT=27017
\ No newline at end of file diff --git a/development/docker-compose.yml b/development/docker-compose.yml index 1082419..1e7d282 100644 --- a/development/docker-compose.yml +++ b/development/docker-compose.yml @@ -37,41 +37,41 @@ services: container_name: mongo-history image: "${MONGO_IMAGE}:${MONGO_VERSION}" environment: - MONGO_INITDB_ROOT_USERNAME: ${HISTORY_USERNAME} - MONGO_INITDB_ROOT_PASSWORD: ${HISTORY_PASSWORD} + MONGO_INITDB_ROOT_USERNAME: ${HISTORY_MONGO_USERNAME} + MONGO_INITDB_ROOT_PASSWORD: ${HISTORY_MONGO_PASSWORD} history: container_name: history image: "${IMAGE_REPOSITORY}/${HISTORY_IMAGE_NAME}:${HISTORY_IMAGE_TAG}" ports: - 9002:9002 environment: - HISTORY_USERNAME: ${HISTORY_USERNAME} - HISTORY_PASSWORD: ${HISTORY_PASSWORD} - HISTORY_DATABASE: ${HISTORY_DATABASE} + MONGO_USERNAME: ${HISTORY_MONGO_USERNAME} + MONGO_PASSWORD: ${HISTORY_MONGO_PASSWORD} + MONGO_DATABASE: ${HISTORY_MONGO_DATABASE} + MONGO_HOST: ${HISTORY_MONGO_HOST} + MONGO_PORT: ${HISTORY_MONGO_PORT} KEYCLOAK_URL: ${KEYCLOAK_URL} KEYCLOAK_REALM: ${KEYCLOAK_REALM} - HISTORY_HOST: ${HISTORY_HOST} - HISTORY_PORT: ${HISTORY_PORT} depends_on: - mongo-history mongo-preferences: container_name: mongo-preferences image: "${MONGO_IMAGE}:${MONGO_VERSION}" environment: - MONGO_INITDB_ROOT_USERNAME: ${PREFERENCES_USERNAME} - MONGO_INITDB_ROOT_PASSWORD: ${PREFERENCES_PASSWORD} + MONGO_INITDB_ROOT_USERNAME: ${PREFERENCES_MONGO_USERNAME} + MONGO_INITDB_ROOT_PASSWORD: ${PREFERENCES_MONGO_PASSWORD} preferences: container_name: preferences image: "${IMAGE_REPOSITORY}/${PREFERENCES_IMAGE_NAME}:${PREFERENCES_IMAGE_TAG}" ports: - 9001:9001 environment: - PREFERENCES_USERNAME: ${PREFERENCES_USERNAME} - PREFERENCES_PASSWORD: ${PREFERENCES_PASSWORD} - PREFERENCES_DATABASE: ${PREFERENCES_DATABASE} + MONGO_USERNAME: ${PREFERENCES_MONGO_USERNAME} + MONGO_PASSWORD: ${PREFERENCES_MONGO_PASSWORD} + MONGO_DATABASE: ${PREFERENCES_MONGO_DATABASE} + MONGO_HOST: ${PREFERENCES_MONGO_HOST} + MONGO_PORT: ${PREFERENCES_MONGO_PORT} KEYCLOAK_URL: ${KEYCLOAK_URL} KEYCLOAK_REALM: ${KEYCLOAK_REALM} - PREFERENCES_HOST: ${PREFERENCES_HOST} - PREFERENCES_PORT: ${PREFERENCES_PORT} depends_on: - mongo-preferences
\ No newline at end of file diff --git a/development/requests.http b/development/requests-idea.http index 6b9d12c..780fbe8 100644 --- a/development/requests.http +++ b/development/requests-idea.http @@ -1,4 +1,4 @@ -# To be used with IntelliJ. Use the requests-code.http with the REST Client Extension if you are using VSCode +# To be used with IntelliJ IDEA POST http://localhost:8080/auth/realms/ONAP/protocol/openid-connect/token Content-Type: application/x-www-form-urlencoded |