Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ modules:
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
JBP_CONFIG_SAP_MACHINE_JRE: '{ version: 21.+ }'
AMS_DCL_ROOT: ams/dcl
XFLIGHTS_URL: https://cap-sandbox-capire-xflights-srv.cert.cfapps.eu12.hana.ondemand.com # TODO derive from GitHub environment
build-parameters:
builder: custom
commands:
Expand Down
30 changes: 23 additions & 7 deletions srv/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ management:
db.enabled: true
cds:
drafts.enforce-readonly: true
security.mock.users:
admin:
roles:
- admin
data-source.csv.paths:
- "db/data/**"
- "../db/data/**"
Expand All @@ -24,13 +28,21 @@ cds:
- "../../node_modules/@capire/**"
---
spring:
config.activate.on-profile: "!cloud"

config.activate.on-profile: cloud
cds:
security.mock.users:
admin:
roles:
- admin
security.mock.enabled: false # required due to AMS lib
remote.services:
xflights:
type: hcql
model: sap.capire.flights.data
http:
suffix: /hcql
binding:
name: xtravels-ias
onBehalfOf: systemUser
options:
url: ${XFLIGHTS_URL} # from mta.yaml
ias-dependency-name: data-consumer
---
spring:
config.activate.on-profile: hybrid
Expand All @@ -39,9 +51,13 @@ cds:
xflights:
type: hcql
model: sap.capire.flights.data
http:
suffix: /hcql
destination:
properties:
url: http://localhost:8081/hcql
url: http://localhost:8081
User: internal
Password:
---
spring:
config.activate.on-profile: default
Expand Down