Compare commits

...

2 Commits

Author SHA1 Message Date
Alfredo Oliviero d17292c1b9 updated postman collection and instructions
container offline

>>>>>>> b50f991 (moved startContainer.sh to tomcat_file folder)
2024-03-12 16:53:03 +01:00
Alfredo Oliviero debf091afa dockerfile 2024-03-12 16:51:07 +01:00
4 changed files with 16 additions and 40 deletions

View File

@ -1,5 +1,6 @@
ARG JAVA_VERSION=11
FROM d4science/smartgears-distribution:4.0.0-SNAPSHOT-java$JAVA_VERSION-tomcat10.1.19
#FROM smartgears-distribution:4.0.0-SNAPSHOT-java$JAVA_VERSION-tomcat10.1.19
COPY ./docker/logback.xml /etc/
COPY ./docker/container.ini /etc/

View File

@ -41,7 +41,6 @@ start the docker container
test urls (replace {{TOKEN}} with your token):
http://localhost:8081/helloworld/guest
http://localhost:8080/helloworld/details?gcube-token={{TOKEN}}
@ -51,6 +50,11 @@ http://localhost:8080/helloworld/auth?gcube-token={{TOKEN}} (checks for myRole r
http://localhost:8080/helloworld/auth/orm_member?gcube-token={{TOKEN}} (checks for OrganizationMember role)
GUBE state:
http://localhost:8081/helloworld/gcube/resource/metrics
http://localhost:8081/helloworld/gcube/resource/health
### Authentication:
#### GCUBE-TOKEN param

View File

@ -1,5 +1,5 @@
[node]
mode = online
mode = offline
hostname = mb-lelii.isti.cnr.it
protocol= http
port = 8080

View File

@ -14,7 +14,13 @@
"type": "noauth"
},
"method": "GET",
"header": [],
"header": [
{
"key": "",
"value": "{{token}}",
"type": "text"
}
],
"url": {
"raw": "{{base_url}}/{{application}}/hello?gcube-token={{gcube_token}}",
"host": [
@ -138,41 +144,6 @@
},
"response": []
},
{
"name": "auth TOKEN PARAM",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{uma_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/{{application}}/auth/?gcube-token={{gcube_token}}",
"host": [
"{{base_url}}"
],
"path": [
"{{application}}",
"auth",
""
],
"query": [
{
"key": "gcube-token",
"value": "{{gcube_token}}"
}
]
}
},
"response": []
},
{
"name": "auth org member BEARER",
"request": {
@ -189,9 +160,9 @@
"method": "GET",
"header": [],
"url": {
"raw": "Z{{base_url}}/{{application}}/auth/org_member",
"raw": "{{base_url}}/{{application}}/auth/org_member",
"host": [
"Z{{base_url}}"
"{{base_url}}"
],
"path": [
"{{application}}",