From 4721c92b7db7ba002ed48dfd48f862bbfcccd67a Mon Sep 17 00:00:00 2001 From: Jorge Moratinos Salcines Date: Thu, 11 Apr 2024 11:08:04 +0200 Subject: [PATCH] Remove postman files --- .../CAPIF.postman_collection.json | 982 ------------------ .../CAPIF.postman_environment.json | 243 ----- 2 files changed, 1225 deletions(-) delete mode 100644 docs/testing_with_postman/CAPIF.postman_collection.json delete mode 100644 docs/testing_with_postman/CAPIF.postman_environment.json diff --git a/docs/testing_with_postman/CAPIF.postman_collection.json b/docs/testing_with_postman/CAPIF.postman_collection.json deleted file mode 100644 index dcbd5ad..0000000 --- a/docs/testing_with_postman/CAPIF.postman_collection.json +++ /dev/null @@ -1,982 +0,0 @@ -{ - "info": { - "_postman_id": "5cfdf0d7-3b3c-4961-9cb9-84c2bf85056c", - "name": "CAPIF", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "31608242", - "_collection_link": "https://red-comet-993867.postman.co/workspace/Team-Workspace~bfc7c442-a60c-4bb1-8730-fdabc2df89b9/collection/31608242-5cfdf0d7-3b3c-4961-9cb9-84c2bf85056c?action=share&source=collection_link&creator=31608242" - }, - "item": [ - { - "name": "01-register_user_provider", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "var res = JSON.parse(responseBody);", - "pm.environment.set('ONBOARDING_URL', res.ccf_api_onboarding_url);", - "pm.environment.set('PUBLISH_URL', res.ccf_publish_url);", - "pm.environment.set('USER_ID', res.id);", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n\"password\": \"{{PASSWORD}}\",\n\"username\": \"{{USERNAME}}\",\n\"description\": \"provider\",\n\"role\": \"provider\",\n\"cn\": \"provider\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{REGISTER_HOSTNAME}}:{{REGISTER_PORT}}/register", - "protocol": "https", - "host": [ - "{{REGISTER_HOSTNAME}}" - ], - "port": "{{REGISTER_PORT}}", - "path": [ - "register" - ] - } - }, - "response": [] - }, - { - "name": "02-getauth_provider", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "var res = JSON.parse(responseBody);", - "", - "pm.environment.set('CA_ROOT', res.ca_root);", - "pm.environment.set('ACCESS_TOKEN', res.access_token);", - "", - "setTimeout(() => {", - " pm.sendRequest({", - " url: 'http://localhost:3000/write_ca',", - " method: 'POST',", - " header: 'Content-Type:application/json',", - " encoding: 'binary',", - " body: {", - " mode: 'raw',", - " raw: res", - " }", - " }, function (err, res) {", - " console.log(res);", - " });", - " }, 5000);" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n\"password\": \"{{PASSWORD}}\",\n\"username\": \"{{USERNAME}}\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{REGISTER_HOSTNAME}}:{{REGISTER_PORT}}/getauth", - "protocol": "https", - "host": [ - "{{REGISTER_HOSTNAME}}" - ], - "port": "{{REGISTER_PORT}}", - "path": [ - "getauth" - ] - } - }, - "response": [] - }, - { - "name": "03-onboard_provider", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "var res = JSON.parse(responseBody);", - "if (pm.response.code == 201){", - " ", - " pm.environment.set('PROVIDER_ID', res.apiProvDomId);", - "", - " const roleVariableMapping = {", - " \"AEF\": { id: 'AEF_ID', cert: 'AEF_CERT' },", - " \"APF\": { id: 'APF_ID', cert: 'APF_CERT' },", - " \"AMF\": { id: 'AMF_ID', cert: 'AMF_CERT' }", - " };", - "", - " res.apiProvFuncs.forEach(function(elemento) {", - " const role = elemento.apiProvFuncRole;", - " if (roleVariableMapping.hasOwnProperty(role)) {", - " const variables = roleVariableMapping[role];", - " pm.environment.set(variables.id, elemento.apiProvFuncId);", - " pm.environment.set(variables.cert, elemento.regInfo.apiProvCert);", - "", - " }", - " });", - "", - "}", - "", - "", - "" - ], - "type": "text/javascript" - } - }, - { - "listen": "prerequest", - "script": { - "exec": [ - "", - "var res = JSON.parse(pm.request.body.raw);", - "", - "res.apiProvFuncs.forEach(function(elemento) {", - "", - " setTimeout(() => {", - " pm.sendRequest({", - " url: 'http://localhost:3000/generate_csr',", - " method: 'POST',", - " header: 'Content-Type:application/json',", - " encoding: 'binary',", - " body: {", - " mode: 'raw',", - " raw: elemento", - " }", - " }, function (err, response) {", - " j_file = JSON.parse(response.text());", - " elemento.regInfo.apiProvPubKey = j_file.csr;", - " pm.environment.set(elemento.apiProvFuncRole+'_KEY', j_file.key);", - " });", - " }, 5000);", - "", - "});", - "", - "pm.request.body.raw = res;" - ], - "type": "text/javascript" - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{ACCESS_TOKEN}}", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "", - "value": "", - "type": "text", - "disabled": true - } - ], - "body": { - "mode": "raw", - "raw": "{\n\"apiProvFuncs\": [\n {\n \"regInfo\": {\n \"apiProvPubKey\": \"\"\n },\n \"apiProvFuncRole\": \"AEF\",\n \"apiProvFuncInfo\": \"dummy_aef\"\n },\n {\n \"regInfo\": {\n \"apiProvPubKey\": \"\"\n },\n \"apiProvFuncRole\": \"APF\",\n \"apiProvFuncInfo\": \"dummy_apf\"\n },\n {\n \"regInfo\": {\n \"apiProvPubKey\": \"\"\n },\n \"apiProvFuncRole\": \"AMF\",\n \"apiProvFuncInfo\": \"dummy_amf\"\n }\n],\n\"apiProvDomInfo\": \"This is provider\",\n\"suppFeat\": \"fff\",\n\"failReason\": \"string\",\n\"regSec\": \"{{ACCESS_TOKEN}}\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{CAPIF_HOSTNAME}}/{{ONBOARDING_URL}}", - "protocol": "https", - "host": [ - "{{CAPIF_HOSTNAME}}" - ], - "path": [ - "{{ONBOARDING_URL}}" - ] - } - }, - "response": [] - }, - { - "name": "04-publish_api", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "setTimeout(() => {", - " pm.sendRequest({", - " url: 'http://localhost:3000/write_cert',", - " method: 'POST',", - " header: 'Content-Type:application/json',", - " encoding: 'binary',", - " body: {", - " mode: 'raw',", - " raw: {cert: pm.environment.get('APF_CERT'), key:pm.environment.get('APF_KEY')}", - " }", - " }, function (err, response) {", - " console.log(response)", - " });", - " }, 5000);", - "", - "", - "" - ], - "type": "text/javascript" - } - }, - { - "listen": "test", - "script": { - "exec": [ - "" - ], - "type": "text/javascript" - } - } - ], - "protocolProfileBehavior": { - "strictSSL": true - }, - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "", - "value": "", - "type": "text", - "disabled": true - } - ], - "body": { - "mode": "raw", - "raw": "\n{\n \"apiName\": \"hello_api_demo_v2\",\n \"aefProfiles\": [\n {\n \"aefId\": \"{{AEF_ID}}\",\n \"versions\": [\n {\n \"apiVersion\": \"v1\",\n \"expiry\": \"2021-11-30T10:32:02.004Z\",\n \"resources\": [\n {\n \"resourceName\": \"hello-endpoint\",\n \"commType\": \"REQUEST_RESPONSE\",\n \"uri\": \"/hello\",\n \"custOpName\": \"string\",\n \"operations\": [\n \"POST\"\n ],\n \"description\": \"Endpoint to receive a welcome message\"\n }\n ],\n \"custOperations\": [\n {\n \"commType\": \"REQUEST_RESPONSE\",\n \"custOpName\": \"string\",\n \"operations\": [\n \"POST\"\n ],\n \"description\": \"string\"\n }\n ]\n }\n ],\n \"protocol\": \"HTTP_1_1\",\n \"dataFormat\": \"JSON\",\n \"securityMethods\": [\"Oauth\"],\n \"interfaceDescriptions\": [\n {\n \"ipv4Addr\": \"localhost\",\n \"port\": 8088,\n \"securityMethods\": [\"Oauth\"]\n }\n ]\n }\n ],\n \"description\": \"Hello api services\",\n \"supportedFeatures\": \"fffff\",\n \"shareableInfo\": {\n \"isShareable\": true,\n \"capifProvDoms\": [\n \"string\"\n ]\n },\n \"serviceAPICategory\": \"string\",\n \"apiSuppFeats\": \"fffff\",\n \"pubApiPath\": {\n \"ccfIds\": [\n \"string\"\n ]\n },\n \"ccfId\": \"string\"\n }", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{CAPIF_HOSTNAME}}/published-apis/v1/{{APF_ID}}/service-apis", - "protocol": "https", - "host": [ - "{{CAPIF_HOSTNAME}}" - ], - "path": [ - "published-apis", - "v1", - "{{APF_ID}}", - "service-apis" - ] - } - }, - "response": [] - }, - { - "name": "05-register_user_invoker", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "var res = JSON.parse(responseBody);", - "pm.environment.set('ONBOARDING_URL_INVOKER', res.ccf_onboarding_url);", - "pm.environment.set('DISCOVER_URL', res.ccf_discover_url);", - "pm.environment.set('USER_INVOKER_ID', res.id);", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n\"password\": \"{{PASSWORD}}\",\n\"username\": \"{{USERNAME_INVOKER}}\",\n\"description\": \"invoker\",\n\"role\": \"invoker\",\n\"cn\": \"invoker\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{REGISTER_HOSTNAME}}:{{REGISTER_PORT}}/register", - "protocol": "https", - "host": [ - "{{REGISTER_HOSTNAME}}" - ], - "port": "{{REGISTER_PORT}}", - "path": [ - "register" - ] - } - }, - "response": [] - }, - { - "name": "06-getauth_invoker", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "var res = JSON.parse(responseBody);", - "", - "pm.environment.set('CA_ROOT', res.ca_root);", - "pm.environment.set('ACCESS_TOKEN_INVOKER', res.access_token);", - "", - "setTimeout(() => {", - " pm.sendRequest({", - " url: 'http://localhost:3000/write_ca',", - " method: 'POST',", - " header: 'Content-Type:application/json',", - " encoding: 'binary',", - " body: {", - " mode: 'raw',", - " raw: res", - " }", - " }, function (err, res) {", - " console.log(res);", - " });", - " }, 5000);" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n\"password\": \"{{PASSWORD}}\",\n\"username\": \"{{USERNAME_INVOKER}}\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{REGISTER_HOSTNAME}}:{{REGISTER_PORT}}/getauth", - "protocol": "https", - "host": [ - "{{REGISTER_HOSTNAME}}" - ], - "port": "{{REGISTER_PORT}}", - "path": [ - "getauth" - ] - } - }, - "response": [] - }, - { - "name": "07-onboard_invoker", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "var res = JSON.parse(responseBody);", - "if (pm.response.code == 201){", - " ", - " pm.environment.set('INVOKER_ID', res.apiInvokerId);", - " pm.environment.set('INVOKER_CERT', res.onboardingInformation.apiInvokerCertificate);", - "}", - "", - "", - "" - ], - "type": "text/javascript" - } - }, - { - "listen": "prerequest", - "script": { - "exec": [ - "", - "var res = JSON.parse(pm.request.body.raw);", - "", - "", - "setTimeout(() => {", - " pm.sendRequest({", - " url: 'http://localhost:3000/generate_csr_invoker',", - " method: 'POST',", - " header: 'Content-Type:application/json',", - " encoding: 'binary',", - " body: {", - " mode: 'raw',", - " raw: {}", - " }", - " }, function (err, response) {", - " j_file = JSON.parse(response.text());", - " res.onboardingInformation.apiInvokerPublicKey = j_file.csr;", - " pm.environment.set('INVOKER_KEY', j_file.key);", - " });", - " }, 5000);", - "", - "", - "pm.request.body.raw = res;" - ], - "type": "text/javascript" - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{ACCESS_TOKEN_INVOKER}}", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "", - "value": "", - "type": "text", - "disabled": true - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"notificationDestination\" : \"http://host.docker.internal:8086/netapp_callback\",\n \"supportedFeatures\" : \"fffffff\",\n \"apiInvokerInformation\" : \"dummy\",\n \"websockNotifConfig\" : {\n \"requestWebsocketUri\" : true,\n \"websocketUri\" : \"websocketUri\"\n },\n \"onboardingInformation\" : {\n \"apiInvokerPublicKey\" : \"\"\n },\n \"requestTestNotification\" : true\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{CAPIF_HOSTNAME}}/{{ONBOARDING_URL_INVOKER}}", - "protocol": "https", - "host": [ - "{{CAPIF_HOSTNAME}}" - ], - "path": [ - "{{ONBOARDING_URL_INVOKER}}" - ] - } - }, - "response": [] - }, - { - "name": "08-discover", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "setTimeout(() => {", - " pm.sendRequest({", - " url: 'http://localhost:3000/write_cert',", - " method: 'POST',", - " header: 'Content-Type:application/json',", - " encoding: 'binary',", - " body: {", - " mode: 'raw',", - " raw: {cert: pm.environment.get('INVOKER_CERT'), key:pm.environment.get('INVOKER_KEY')}", - " }", - " }, function (err, response) {", - " console.log(response)", - " });", - " }, 5000);", - "", - "", - "" - ], - "type": "text/javascript" - } - }, - { - "listen": "test", - "script": { - "exec": [ - "var res = JSON.parse(responseBody);", - "if (pm.response.code == 200){", - "", - " res.serviceAPIDescriptions.forEach(function(api) {", - " pm.environment.set('API_SERVICE_ID', api.apiId);", - " pm.environment.set('API_NAME', api.apiName);", - " pm.environment.set('API_AEF_ID', api.aefProfiles[0].aefId);", - " pm.environment.set('IPV4ADDR', api.aefProfiles[0].interfaceDescriptions[0].ipv4Addr);", - " pm.environment.set('PORT', api.aefProfiles[0].interfaceDescriptions[0].port);", - " pm.environment.set('URI', api.aefProfiles[0].versions[0].resources[0].uri);", - " });", - "}" - ], - "type": "text/javascript" - } - } - ], - "protocolProfileBehavior": { - "disableBodyPruning": true, - "strictSSL": true - }, - "request": { - "auth": { - "type": "noauth" - }, - "method": "GET", - "header": [ - { - "key": "", - "value": "", - "type": "text", - "disabled": true - } - ], - "body": { - "mode": "raw", - "raw": "", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{CAPIF_HOSTNAME}}/{{DISCOVER_URL}}{{INVOKER_ID}}", - "protocol": "https", - "host": [ - "{{CAPIF_HOSTNAME}}" - ], - "path": [ - "{{DISCOVER_URL}}{{INVOKER_ID}}" - ] - } - }, - "response": [] - }, - { - "name": "09-security_context", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "setTimeout(() => {", - " pm.sendRequest({", - " url: 'http://localhost:3000/write_cert',", - " method: 'POST',", - " header: 'Content-Type:application/json',", - " encoding: 'binary',", - " body: {", - " mode: 'raw',", - " raw: {cert: pm.environment.get('INVOKER_CERT'), key:pm.environment.get('INVOKER_KEY')}", - " }", - " }, function (err, response) {", - " console.log(response)", - " });", - " }, 5000);", - "", - "", - "" - ], - "type": "text/javascript" - } - }, - { - "listen": "test", - "script": { - "exec": [ - "" - ], - "type": "text/javascript" - } - } - ], - "protocolProfileBehavior": { - "strictSSL": true - }, - "request": { - "auth": { - "type": "noauth" - }, - "method": "PUT", - "header": [ - { - "key": "", - "value": "", - "type": "text", - "disabled": true - } - ], - "body": { - "mode": "raw", - "raw": "{\n \"securityInfo\": [\n {\n \"prefSecurityMethods\": [\n \"Oauth\"\n ],\n \"authenticationInfo\": \"string\",\n \"authorizationInfo\": \"string\",\n \"aefId\": \"{{API_AEF_ID}}\",\n \"apiId\": \"{{API_SERVICE_ID}}\"\n }\n ],\n \"notificationDestination\": \"https://mynotificationdest.com\",\n \"requestTestNotification\": true,\n \"websockNotifConfig\": {\n \"websocketUri\": \"string\",\n \"requestWebsocketUri\": true\n },\n \"supportedFeatures\": \"fff\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{CAPIF_HOSTNAME}}/capif-security/v1/trustedInvokers/{{INVOKER_ID}}", - "protocol": "https", - "host": [ - "{{CAPIF_HOSTNAME}}" - ], - "path": [ - "capif-security", - "v1", - "trustedInvokers", - "{{INVOKER_ID}}" - ] - } - }, - "response": [] - }, - { - "name": "10-get_token", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "setTimeout(() => {", - " pm.sendRequest({", - " url: 'http://localhost:3000/write_cert',", - " method: 'POST',", - " header: 'Content-Type:application/json',", - " encoding: 'binary',", - " body: {", - " mode: 'raw',", - " raw: {cert: pm.environment.get('INVOKER_CERT'), key:pm.environment.get('INVOKER_KEY')}", - " }", - " }, function (err, response) {", - " console.log(response)", - " });", - " }, 5000);", - "", - "", - "" - ], - "type": "text/javascript" - } - }, - { - "listen": "test", - "script": { - "exec": [ - "var res = JSON.parse(responseBody);", - "if (pm.response.code == 200){", - " pm.environment.set('NETAPP_SERVICE_TOKEN', res.access_token);", - "}" - ], - "type": "text/javascript" - } - } - ], - "protocolProfileBehavior": { - "strictSSL": true, - "disabledSystemHeaders": {} - }, - "request": { - "auth": { - "type": "noauth" - }, - "method": "POST", - "header": [ - { - "key": "", - "value": "", - "type": "text", - "disabled": true - } - ], - "body": { - "mode": "urlencoded", - "urlencoded": [ - { - "key": "client_id", - "value": "{{INVOKER_ID}}", - "type": "text" - }, - { - "key": "grant_type", - "value": "client_credentials", - "type": "text" - }, - { - "key": "client_secret", - "value": "string", - "type": "text" - }, - { - "key": "scope", - "value": "3gpp#{{API_AEF_ID}}:{{API_NAME}}", - "type": "text" - } - ] - }, - "url": { - "raw": "https://{{CAPIF_HOSTNAME}}/capif-security/v1/securities/{{INVOKER_ID}}/token", - "protocol": "https", - "host": [ - "{{CAPIF_HOSTNAME}}" - ], - "path": [ - "capif-security", - "v1", - "securities", - "{{INVOKER_ID}}", - "token" - ] - } - }, - "response": [] - }, - { - "name": "11-call_service", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "" - ], - "type": "text/javascript" - } - }, - { - "listen": "test", - "script": { - "exec": [ - "" - ], - "type": "text/javascript" - } - } - ], - "protocolProfileBehavior": { - "strictSSL": false - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{NETAPP_SERVICE_TOKEN}}", - "type": "string" - } - ] - }, - "method": "POST", - "header": [ - { - "key": "", - "value": "", - "type": "text", - "disabled": true - } - ], - "body": { - "mode": "raw", - "raw": "{\n\"name\": \"{{USERNAME_INVOKER}}\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "http://{{IPV4ADDR}}:{{PORT}}{{URI}}", - "protocol": "http", - "host": [ - "{{IPV4ADDR}}" - ], - "port": "{{PORT}}{{URI}}" - } - }, - "response": [] - }, - { - "name": "offboard_provider", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "setTimeout(() => {", - " pm.sendRequest({", - " url: 'http://localhost:3000/write_cert',", - " method: 'POST',", - " header: 'Content-Type:application/json',", - " encoding: 'binary',", - " body: {", - " mode: 'raw',", - " raw: {cert: pm.environment.get('AMF_CERT'), key:pm.environment.get('AMF_KEY')}", - " }", - " }, function (err, response) {", - " console.log(response)", - " });", - " }, 5000);" - ], - "type": "text/javascript" - } - } - ], - "protocolProfileBehavior": { - "strictSSL": true - }, - "request": { - "auth": { - "type": "noauth" - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "https://{{CAPIF_HOSTNAME}}/{{ONBOARDING_URL}}/{{PROVIDER_ID}}", - "protocol": "https", - "host": [ - "{{CAPIF_HOSTNAME}}" - ], - "path": [ - "{{ONBOARDING_URL}}", - "{{PROVIDER_ID}}" - ] - } - }, - "response": [] - }, - { - "name": "offboard_invoker", - "event": [ - { - "listen": "prerequest", - "script": { - "exec": [ - "setTimeout(() => {", - " pm.sendRequest({", - " url: 'http://localhost:3000/write_cert',", - " method: 'POST',", - " header: 'Content-Type:application/json',", - " encoding: 'binary',", - " body: {", - " mode: 'raw',", - " raw: {cert: pm.environment.get('INVOKER_CERT'), key:pm.environment.get('INVOKER_KEY')}", - " }", - " }, function (err, response) {", - " console.log(response)", - " });", - " }, 5000);" - ], - "type": "text/javascript" - } - } - ], - "protocolProfileBehavior": { - "strictSSL": true - }, - "request": { - "auth": { - "type": "noauth" - }, - "method": "DELETE", - "header": [], - "url": { - "raw": "https://{{CAPIF_HOSTNAME}}/{{ONBOARDING_URL_INVOKER}}/{{INVOKER_ID}}", - "protocol": "https", - "host": [ - "{{CAPIF_HOSTNAME}}" - ], - "path": [ - "{{ONBOARDING_URL_INVOKER}}", - "{{INVOKER_ID}}" - ] - } - }, - "response": [] - }, - { - "name": "remove_user_invoker", - "request": { - "method": "DELETE", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n\"password\": \"{{PASSWORD}}\",\n\"username\": \"{{USERNAME_INVOKER}}\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{REGISTER_HOSTNAME}}:{{REGISTER_PORT}}/remove", - "protocol": "https", - "host": [ - "{{REGISTER_HOSTNAME}}" - ], - "port": "{{REGISTER_PORT}}", - "path": [ - "remove" - ] - } - }, - "response": [] - }, - { - "name": "remove_user_provider", - "request": { - "method": "DELETE", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n\"password\": \"{{PASSWORD}}\",\n\"username\": \"{{USERNAME}}\"\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "https://{{REGISTER_HOSTNAME}}:{{REGISTER_PORT}}/remove", - "protocol": "https", - "host": [ - "{{REGISTER_HOSTNAME}}" - ], - "port": "{{REGISTER_PORT}}", - "path": [ - "remove" - ] - } - }, - "response": [] - } - ] -} \ No newline at end of file diff --git a/docs/testing_with_postman/CAPIF.postman_environment.json b/docs/testing_with_postman/CAPIF.postman_environment.json deleted file mode 100644 index fd084b3..0000000 --- a/docs/testing_with_postman/CAPIF.postman_environment.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "id": "f2daf431-63c4-4275-8755-4cc5de2e566d", - "name": "CAPIF", - "values": [ - { - "key": "CAPIF_HOSTNAME", - "value": "capifcore", - "type": "default", - "enabled": true - }, - { - "key": "CAPIF_PORT", - "value": "8080", - "type": "default", - "enabled": true - }, - { - "key": "REGISTER_HOSTNAME", - "value": "localhost", - "type": "default", - "enabled": true - }, - { - "key": "REGISTER_PORT", - "value": "8084", - "type": "default", - "enabled": true - }, - { - "key": "USERNAME", - "value": "ProviderONE", - "type": "default", - "enabled": true - }, - { - "key": "USERNAME_INVOKER", - "value": "InvokerONE", - "type": "default", - "enabled": true - }, - { - "key": "PASSWORD", - "value": "pass", - "type": "default", - "enabled": true - }, - { - "key": "CALLBACK_IP", - "value": "host.docker.internal", - "type": "default", - "enabled": true - }, - { - "key": "CALLBACK_PORT", - "value": "8087", - "type": "default", - "enabled": true - }, - { - "key": "ONBOARDING_URL", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "PUBLISH_URL", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "USER_ID", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "CA_ROOT", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "ACCESS_TOKEN", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "APF_KEY", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "AMF_KEY", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "AEF_KEY", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "PROVIDER_ID", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "AEF_ID", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "AEF_CERT", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "APF_ID", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "APF_CERT", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "AMF_ID", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "AMF_CERT", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "ONBOARDING_URL_INVOKER", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "DISCOVER_URL", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "USER_INVOKER_ID", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "ACCESS_TOKEN_INVOKER", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "INVOKER_KEY", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "INVOKER_ID", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "INVOKER_CERT", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "API_ID", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "API_NAME", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "IPV4ADDR", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "PORT", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "URI", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "API_SERVICE_ID", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "API_AEF_ID", - "value": "", - "type": "any", - "enabled": true - }, - { - "key": "NETAPP_SERVICE_TOKEN", - "value": "", - "type": "any", - "enabled": true - } - ], - "_postman_variable_scope": "environment", - "_postman_exported_at": "2023-12-20T10:47:32.128Z", - "_postman_exported_using": "Postman/10.21.4" -} \ No newline at end of file -- GitLab