Skip to content

Commit

Permalink
Test cases updated
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhprasad-sap committed Apr 2, 2024
1 parent 1d68b23 commit 7a6d2ee
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 30 deletions.
39 changes: 39 additions & 0 deletions test/files/expectedChart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,41 @@ serviceInstances:
- instance-secret
- binding-secret
redirect-uris: []
saas-registry:
name: bookshop-saas-registry
serviceOfferingName: saas-registry
servicePlanName: application
parameters:
plan: general
appUrls:
callbackTimeoutMillis: 300000
onSubscriptionAsync: true
onUnSubscriptionAsync: true
category: CAP
service-manager:
name: bookshop-service-manager
serviceOfferingName: service-manager
servicePlanName: container
parameters: {}
serviceBindings:
xsuaa:
name: bookshop-uaa-bind
serviceInstanceName: bookshop-uaa
secretName: bookshop-uaa-bind-secret
secretKey: credentials
parameters: {}
saas-registry:
name: bookshop-saas-registry-bind
serviceInstanceName: bookshop-saas-registry
secretName: bookshop-saas-registry-bind-secret
secretKey: credentials
parameters: {}
service-manager:
name: bookshop-service-manager-bind
serviceInstanceName: bookshop-service-manager
secretName: bookshop-service-manager-bind-secret
secretKey: credentials
parameters: {}
app:
domains:
primary: null
Expand All @@ -44,6 +72,17 @@ workloads:
ports:
- name: router-port
port: 5000
server:
name: server
labels:
sme.sap.com/app-type: bookshop
consumedBTPServices:
- bookshop-uaa-bind
- bookshop-saas-registry-bind
- bookshop-service-manager-bind
deploymentDefinition:
type: CAP
image: null
tenantOperations:
provisioning: []
upgrade: []
Expand Down
40 changes: 40 additions & 0 deletions test/files/expectedChart/valuesWithDestination.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@ serviceInstances:
- instance-secret
- binding-secret
redirect-uris: []
saas-registry:
name: bookshop-saas-registry
serviceOfferingName: saas-registry
servicePlanName: application
parameters:
plan: general
appUrls:
callbackTimeoutMillis: 300000
onSubscriptionAsync: true
onUnSubscriptionAsync: true
category: CAP
service-manager:
name: bookshop-service-manager
serviceOfferingName: service-manager
servicePlanName: container
parameters: {}
destination:
name: bookshop-destination
serviceOfferingName: destination
Expand All @@ -24,6 +40,18 @@ serviceBindings:
secretName: bookshop-uaa-bind-secret
secretKey: credentials
parameters: {}
saas-registry:
name: bookshop-saas-registry-bind
serviceInstanceName: bookshop-saas-registry
secretName: bookshop-saas-registry-bind-secret
secretKey: credentials
parameters: {}
service-manager:
name: bookshop-service-manager-bind
serviceInstanceName: bookshop-service-manager
secretName: bookshop-service-manager-bind-secret
secretKey: credentials
parameters: {}
destination:
name: bookshop-destination-bind
serviceInstanceName: bookshop-destination
Expand Down Expand Up @@ -57,6 +85,18 @@ workloads:
ports:
- name: router-port
port: 5000
server:
name: server
labels:
sme.sap.com/app-type: bookshop
consumedBTPServices:
- bookshop-uaa-bind
- bookshop-destination-bind
- bookshop-saas-registry-bind
- bookshop-service-manager-bind
deploymentDefinition:
type: CAP
image: null
tenantOperations:
provisioning: []
upgrade: []
Expand Down
30 changes: 0 additions & 30 deletions test/files/expectedChart/valuesWithMTA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,6 @@ serviceInstances:
serviceOfferingName: application-logs
servicePlanName: standard
parameters: {}
xsuaa:
name: bookshop-uaa
serviceOfferingName: xsuaa
servicePlanName: broker
parameters:
xsappname: bookshop
tenant-mode: shared
oauth2-configuration:
credential-types:
- instance-secret
- binding-secret
redirect-uris: []
serviceBindings:
author-readings-uaa-bind:
name: author-readings-uaa-bind
Expand Down Expand Up @@ -123,12 +111,6 @@ serviceBindings:
secretKey: credentials
secretName: author-readings-html5-repo-host-bind-secret
serviceInstanceName: author-readings-html5-repo-host
xsuaa:
name: bookshop-uaa-bind
serviceInstanceName: bookshop-uaa
secretName: bookshop-uaa-bind-secret
secretKey: credentials
parameters: {}
app:
domains:
primary: null
Expand Down Expand Up @@ -223,18 +205,6 @@ workloads:
env:
- name: TENANT_HOST_PATTERN
value: ^(.*)-${default-uri}
app-router:
name: app-router
labels:
sme.sap.com/app-type: bookshop
consumedBTPServices:
- bookshop-uaa-bind
deploymentDefinition:
type: Router
image: null
ports:
- name: router-port
port: 5000
tenantOperations:
provisioning: []
upgrade: []
Expand Down
40 changes: 40 additions & 0 deletions test/files/expectedChart/valuesWithXsuaaDestinationRouter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ serviceInstances:
- instance-secret
- binding-secret
redirect-uris: []
saas-registry:
name: bookshop-saas-registry
serviceOfferingName: saas-registry
servicePlanName: application
parameters:
plan: general
appUrls:
callbackTimeoutMillis: 300000
onSubscriptionAsync: true
onUnSubscriptionAsync: true
category: CAP
service-manager:
name: bookshop-service-manager
serviceOfferingName: service-manager
servicePlanName: container
parameters: {}
serviceBindings:
destination:
name: bookshop-destination-bind
Expand All @@ -30,6 +46,18 @@ serviceBindings:
secretName: bookshop-uaa-bind-secret
secretKey: credentials
parameters: {}
saas-registry:
name: bookshop-saas-registry-bind
serviceInstanceName: bookshop-saas-registry
secretName: bookshop-saas-registry-bind-secret
secretKey: credentials
parameters: {}
service-manager:
name: bookshop-service-manager-bind
serviceInstanceName: bookshop-service-manager
secretName: bookshop-service-manager-bind-secret
secretKey: credentials
parameters: {}
app:
domains:
primary: null
Expand Down Expand Up @@ -57,6 +85,18 @@ workloads:
ports:
- name: router-port
port: 5000
server:
name: server
labels:
sme.sap.com/app-type: bookshop
consumedBTPServices:
- bookshop-uaa-bind
- bookshop-destination-bind
- bookshop-saas-registry-bind
- bookshop-service-manager-bind
deploymentDefinition:
type: CAP
image: null
tenantOperations:
provisioning: []
upgrade: []
Expand Down

0 comments on commit 7a6d2ee

Please sign in to comment.