aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/common/controller-usecases/src/test/resources/config/usecases-http-client.properties
blob: 72764bccc93882e3f8f3de94ab216c537e9d5170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
#
# ============LICENSE_START=======================================================
# ONAP
# ================================================================================
# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============LICENSE_END=========================================================
#

http.client.services=XACML,AAI,SDNC,SO,VFC

http.client.services.XACML.managed=true
http.client.services.XACML.host=localhost
http.client.services.XACML.port=6669
http.client.services.XACML.userName=pdpx
http.client.services.XACML.password=pdpx
http.client.services.XACML.contextUriPath=policy/pdpx/v1/

http.client.services.AAI.managed=true
http.client.services.AAI.host=localhost
http.client.services.AAI.port=6666
http.client.services.AAI.contextUriPath=

http.client.services.SDNC.managed=true
http.client.services.SDNC.host=localhost
http.client.services.SDNC.port=6665
http.client.services.SDNC.userName=sdnc
http.client.services.SDNC.password=sdnc
http.client.services.SDNC.contextUriPath=

http.client.services.SO.managed=true
http.client.services.SO.host=localhost
http.client.services.SO.port=6667
http.client.services.SO.contextUriPath=

http.client.services.VFC.managed=true
http.client.services.VFC.host=localhost
http.client.services.VFC.port=6668
http.client.services.VFC.userName=VFC
http.client.services.VFC.password=VFC
http.client.services.VFC.contextUriPath=api/nslcm/v1
.userFirstName] || userType.firstName); res.cookie(mockApis.cookie.userLastName, req.headers[mockApis.cookie.userLastName] || userType.lastName); next(); } ]; // Redirect all '/sdc1/feProxy/rest' to feHost middlewares.push( proxy(['/sdc1/feProxy/rest'], { target: 'http://' + localhost + ':' + fePort, changeOrigin: true, secure: false })); // Redirect all '/sdc1/rest' to feHost middlewares.push( proxy(['/sdc1/rest'],{ target: 'http://' + localhost + ':' + fePort, changeOrigin: true, secure: false })); // Redirect dcae urls to feHost middlewares.push( proxy(['/dcae','/sdc1/feProxy/dcae-api'], { target: 'http://' + localhost + ':' + fePort, changeOrigin: true, secure: false, onProxyRes: (proxyRes, req, res) => { let setCookie = proxyRes.headers['set-cookie']; if (setCookie) { setCookie[0] = setCookie[0].replace(/\bSecure\b(; )?/, ''); } } })); // Redirect onboarding urls to feHost middlewares.push( proxy(['/onboarding', '/sdc1/feProxy/onboarding-api'], { target: 'http://' + localhost + ':' + fePort, changeOrigin: true, secure: false, onProxyRes: (proxyRes, req, res) => { let setCookie = proxyRes.headers['set-cookie']; if (setCookie) { setCookie[0] = setCookie[0].replace(/\bSecure\b(; )?/, ''); } } })); // Redirect workflow urls to feHost middlewares.push( proxy(['/sdc1/feProxy/wf', '/wf'], { target: 'http://' + localhost + ':' + fePort, changeOrigin: true, secure: false, onProxyRes: (proxyRes, req, res) => { let setCookie = proxyRes.headers['set-cookie']; if (setCookie) { setCookie[0] = setCookie[0].replace(/\bSecure\b(; )?/, ''); } } })); server.use(middlewares); } }; return ServerConfig; }