Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Security and Compliance
entitlements
Commits
37b840f5
Commit
37b840f5
authored
Feb 01, 2021
by
Mingyang Zhu
Browse files
change context path from /entitlements/v2 to /api/entitlements/v2
parent
5e569d09
Pipeline
#24244
failed with stages
in 2 minutes and 27 seconds
Changes
9
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
devops/azure/chart/helm-config.yaml
View file @
37b840f5
...
...
@@ -15,4 +15,4 @@ image:
server
:
servlet
:
contextPath
:
/entitlements/v2
contextPath
:
/api
/entitlements/v2
devops/azure/chart/templates/azure-istio-auth-policy.yaml
View file @
37b840f5
...
...
@@ -33,5 +33,5 @@ spec:
"
*/swagger"
,
"
*/swagger-resources"
,
"
*/swagger-ui.html"
,
"
*/actuator/health"
,
"
*/health"
,
"
*/configuration/ui"
,
"
*/configuration/security"
,
"
/entitlements/v2/swagger-resources/*"
,
"
/entitlements/v2/webjars/*"
]
"
/
api/
entitlements/v2/swagger-resources/*"
,
"
/
api/
entitlements/v2/webjars/*"
]
devops/azure/chart/values.yaml
View file @
37b840f5
...
...
@@ -22,4 +22,4 @@ image:
server
:
servlet
:
contextPath
:
/entitlements/v2
contextPath
:
/api
/entitlements/v2
provider/entitlements-v2-azure/README.md
View file @
37b840f5
...
...
@@ -49,7 +49,7 @@ with these settings service expects "x-payload" header which contains Base64 enc
| name | value | description | sensitive? | source |
| --- | --- | --- | --- | --- |
|
`HOST_URL`
| ex
`http://localhost:8080/entitlements/v2`
| The host where the service is running | no | -- |
|
`HOST_URL`
| ex
`http://localhost:8080/
api/
entitlements/v2`
| The host where the service is running | no | -- |
|
`INTEGRATION_TESTER`
|
`********`
| System identity to assume for API calls. Note: this user must have entitlements configured already | no | -- |
|
`AZURE_TESTER_SERVICEPRINCIPAL_SECRET`
|
`********`
| Secret for
`$INTEGRATION_TESTER`
| yes | -- |
|
`AZURE_AD_TENANT_ID`
|
`********`
| AD tenant to authenticate users from | yes | -- |
...
...
provider/entitlements-v2-azure/src/main/resources/application.properties
View file @
37b840f5
...
...
@@ -4,7 +4,7 @@ LOG_PREFIX=entitlements-v2
logging.level.org.springframework.web
=
${LOGGING_LEVEL:DEBUG}
# Server configuration
server.servlet.contextPath
=
/entitlements/v2
server.servlet.contextPath
=
/
api/
entitlements/v2
server.error.whitelabel.enabled
=
false
# Spring configuration
...
...
provider/entitlements-v2-gcp/src/main/resources/application.properties
View file @
37b840f5
...
...
@@ -4,7 +4,7 @@ LOG_PREFIX=entitlements-v2
logging.level.org.springframework.web
=
${LOGGING_LEVEL:DEBUG}
# Server configuration
server.servlet.contextPath
=
/entitlements/v2
server.servlet.contextPath
=
/
api/
entitlements/v2
server.error.whitelabel.enabled
=
false
# Spring configuration
...
...
provider/entitlements-v2-gcp/src/test/resources/application.properties
View file @
37b840f5
...
...
@@ -2,7 +2,7 @@
logging.level.org.springframework.web
=
DEBUG
# Server configuration
server.servlet.contextPath
=
/entitlements/v2
server.servlet.contextPath
=
/
api/
entitlements/v2
server.error.whitelabel.enabled
=
false
# Spring configuration
...
...
testing/entitlements-v2-test-azure/README.md
View file @
37b840f5
...
...
@@ -31,7 +31,7 @@
app.gremlin.port to '8901'
6.
Run Entitlements V2 service from Azure provider
7.
Define 5 env variables for integration tests (e.g. maven options):
1.
HOST_URL=
`http://localhost:8080/entitlements/v2`
1.
HOST_URL=
`http://localhost:8080/
api/
entitlements/v2`
2.
INTEGRATION_TESTER=
`Keyvault > Choose 'app-dev-sp-username' -> Copy Secret value`
3.
AZURE_TESTER_SERVICEPRINCIPAL_SECRET=
`Keyvault > Choose 'app-dev-sp-password' -> Copy Secret value`
4.
AZURE_AD_TENANT_ID=
`Keyvault > Choose 'app-dev-sp-tenant-id' -> Copy Secret value`
...
...
testing/entitlements-v2-test-azure/src/test/java/org/opengroup/osdu/entitlements/v2/util/AzureConfigurationService.java
View file @
37b840f5
...
...
@@ -25,7 +25,7 @@ public class AzureConfigurationService implements ConfigurationService {
if
(
Strings
.
isNullOrEmpty
(
SERVICE_URL
))
{
String
serviceUrl
=
System
.
getProperty
(
"ENTITLEMENT_V2_URL"
,
System
.
getenv
(
"ENTITLEMENT_V2_URL"
));
if
(
serviceUrl
==
null
||
serviceUrl
.
contains
(
"-null"
))
{
serviceUrl
=
"http://localhost:8080/entitlements/v2"
;
serviceUrl
=
"http://localhost:8080/
api/
entitlements/v2"
;
}
SERVICE_URL
=
serviceUrl
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment