Skip to content

Commit

Permalink
postman collection version upgrade,open API bug fixes and jenkins cha…
Browse files Browse the repository at this point in the history
…nges
  • Loading branch information
kailash committed Sep 29, 2022
1 parent 2ec51cd commit 15814b4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pipeline {
stage('Run GIS interface server'){
steps{
script{
sh 'scp src/test/resources/IUDX_GIS_Server_APIs_V3.5.postman_collection.json jenkins@jenkins-master:/var/lib/jenkins/iudx/gis/Newman/'
sh 'scp src/test/resources/IUDX_GIS_Server_APIs_V4.0.postman_collection.json jenkins@jenkins-master:/var/lib/jenkins/iudx/gis/Newman/'
sh 'docker-compose -f docker-compose.test.yml up -d integTest'
sh 'sleep 45'
}
Expand All @@ -67,7 +67,7 @@ pipeline {
script{
startZap ([host: 'localhost', port: 8090, zapHome: '/var/lib/jenkins/tools/com.cloudbees.jenkins.plugins.customtools.CustomTool/OWASP_ZAP/ZAP_2.11.0'])
sh 'curl http://127.0.0.1:8090/JSON/pscan/action/disableScanners/?ids=10096'
sh 'HTTP_PROXY=\'127.0.0.1:8090\' newman run /var/lib/jenkins/iudx/gis/Newman/IUDX_GIS_Server_APIs_V3.5.postman_collection.json -e /home/ubuntu/configs/gis-postman-env.json --insecure -r htmlextra --reporter-htmlextra-export /var/lib/jenkins/iudx/gis/Newman/report/report.html --reporter-htmlextra-skipSensitiveData'
sh 'HTTP_PROXY=\'127.0.0.1:8090\' newman run /var/lib/jenkins/iudx/gis/Newman/IUDX_GIS_Server_APIs_V4.0.postman_collection.json -e /home/ubuntu/configs/gis-postman-env.json --insecure -r htmlextra --reporter-htmlextra-export /var/lib/jenkins/iudx/gis/Newman/report/report.html --reporter-htmlextra-skipSensitiveData'
runZapAttack()
}
}
Expand Down Expand Up @@ -130,7 +130,7 @@ pipeline {
// steps {
// node('master') {
// script{
// sh 'newman run /var/lib/jenkins/iudx/gis/Newman/IUDX_GIS_Server_APIs_V3.5.postman_collection.json -e /home/ubuntu/configs/cd/gis-postman-env.json --insecure -r htmlextra --reporter-htmlextra-export /var/lib/jenkins/iudx/gis/Newman/report/cd-report.html --reporter-htmlextra-skipSensitiveData'
// sh 'newman run /var/lib/jenkins/iudx/gis/Newman/IUDX_GIS_Server_APIs_V4.0.postman_collection.json -e /home/ubuntu/configs/cd/gis-postman-env.json --insecure -r htmlextra --reporter-htmlextra-export /var/lib/jenkins/iudx/gis/Newman/report/cd-report.html --reporter-htmlextra-skipSensitiveData'
// }
// }
// }
Expand Down
11 changes: 5 additions & 6 deletions docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ tags:
paths:

/ngsi-ld/v1/entities/{id}:
/ngsi-ld/v1/entities:
get:
tags:
- Latest Search
Expand All @@ -65,7 +65,7 @@ paths:
pattern: '^[a-zA-Z0-9\/\@\.]*$'

- name: id
in: path
in: query
description: A <b> valid IUDX ID </b> of the resource.
required: true
schema:
Expand Down Expand Up @@ -99,7 +99,7 @@ paths:


description: |
This <b> API </b> is used to get the data of a resource. <br /> It uses the <b> IUDX ID </b> a.k.a `id` to query the resource server. <br /> To get data a <b> valid IUDX Auth token</b> is mandatory. <br/> The `/entities` end point followed by `id` as a <b>path parameter</b> is used to get the latest data.
This <b> API </b> is used to get the data of a resource. <br /> It uses the <b> IUDX ID </b> a.k.a `id` to query the resource server. <br /> To get data a <b> valid IUDX Auth token</b> is mandatory. <br/> The `/entities` end point followed by `id` as a <b>query parameter</b> is used to get the latest data.
/admin/gis/serverInfo:
post:
Expand Down Expand Up @@ -206,7 +206,6 @@ paths:
description: |
Put Admin API allows an admin to update the GIS info present. Based on the input provided, the API validates the access control of the user with IUDX Auth server to allow or deny access to the API.
/admin/gis/serverInfo/{id}:
delete:
tags:
- Admin API
Expand All @@ -224,7 +223,7 @@ paths:
pattern: '^[a-zA-Z0-9\/\@\.]*$'

- name: id
in: path
in: query
description: 'id of the Gis information.'
required: true
style: simple
Expand Down Expand Up @@ -255,7 +254,7 @@ paths:

description: |
Delete admin API allows an admin to delete Gis information. Based on the input provided, the API validates the access control of the user with IUDX Auth server to allow or deny access to the API.

components:
schemas:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"info": {
"_postman_id": "dbcaeba2-bf6a-484b-95cd-0c7aee3231c1",
"name": "IUDX-GIS-SERVER-APIs-V3.5",
"name": "IUDX-GIS-SERVER-APIs-V4.0",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
Expand Down

0 comments on commit 15814b4

Please sign in to comment.