From d17292c1b983d43eb84493bdae25c174f30045b0 Mon Sep 17 00:00:00 2001 From: Alfredo Oliviero Date: Tue, 12 Mar 2024 16:53:03 +0100 Subject: [PATCH] updated postman collection and instructions container offline >>>>>>> b50f991 (moved startContainer.sh to tomcat_file folder) --- Instructions.md | 6 ++- docker/container.ini | 2 +- ...rtgears4 helloword.postman_collection.json | 47 ++++--------------- 3 files changed, 15 insertions(+), 40 deletions(-) diff --git a/Instructions.md b/Instructions.md index 305cc52..ab1d203 100644 --- a/Instructions.md +++ b/Instructions.md @@ -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 diff --git a/docker/container.ini b/docker/container.ini index fbf1e3c..9c15874 100644 --- a/docker/container.ini +++ b/docker/container.ini @@ -1,5 +1,5 @@ [node] -mode = online +mode = offline hostname = mb-lelii.isti.cnr.it protocol= http port = 8080 diff --git a/docs/postman/Smartgears4 helloword.postman_collection.json b/docs/postman/Smartgears4 helloword.postman_collection.json index e892710..1c30063 100644 --- a/docs/postman/Smartgears4 helloword.postman_collection.json +++ b/docs/postman/Smartgears4 helloword.postman_collection.json @@ -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}}",