From 58a81857cb4fdff4edaa6542aeb32707eefb3d48 Mon Sep 17 00:00:00 2001 From: Daniel Strebel Date: Mon, 7 Aug 2023 06:46:09 +0200 Subject: [PATCH] feat: replace httpbin.org with mocktarget.apigee.net --- .../test/integration/apiproxy/targets/default.xml | 2 +- .../apiproxy/resources/jsc/EnrichAllergyResponse.js | 2 +- references/java-callout/proxy-v1/apiproxy/targets/default.xml | 2 +- references/js-callout/apiproxy/targets/default.xml | 2 +- references/proxy-template/README.md | 2 +- references/proxy-template/pipeline.sh | 2 +- references/recaptcha-enterprise/README.md | 2 +- .../recaptcha-data-proxy-v1/apiproxy/targets/default.xml | 2 +- tools/endpoints-oas-importer/examples/openapi_test.json | 2 +- tools/endpoints-oas-importer/examples/openapi_test.yaml | 4 ++-- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/references/cicd-sharedflow-pipeline/test/integration/apiproxy/targets/default.xml b/references/cicd-sharedflow-pipeline/test/integration/apiproxy/targets/default.xml index e5544ac12..2daf2f2b0 100644 --- a/references/cicd-sharedflow-pipeline/test/integration/apiproxy/targets/default.xml +++ b/references/cicd-sharedflow-pipeline/test/integration/apiproxy/targets/default.xml @@ -28,6 +28,6 @@ - http://httpbin.org/get + https://mocktarget.apigee.net/echo \ No newline at end of file diff --git a/references/dutch-healthcare/healthcare-v1/apiproxy/resources/jsc/EnrichAllergyResponse.js b/references/dutch-healthcare/healthcare-v1/apiproxy/resources/jsc/EnrichAllergyResponse.js index da9c10540..7b1289b68 100644 --- a/references/dutch-healthcare/healthcare-v1/apiproxy/resources/jsc/EnrichAllergyResponse.js +++ b/references/dutch-healthcare/healthcare-v1/apiproxy/resources/jsc/EnrichAllergyResponse.js @@ -29,4 +29,4 @@ function onComplete(response,error) { } // Make an additional request -httpClient.get("https://httpbin.org/get?name=Mediated Display Name", onComplete); +httpClient.get("https://mocktarget.apigee.net/echo?name=Mediated Display Name", onComplete); diff --git a/references/java-callout/proxy-v1/apiproxy/targets/default.xml b/references/java-callout/proxy-v1/apiproxy/targets/default.xml index 6b76cf091..a7dd9cb9c 100644 --- a/references/java-callout/proxy-v1/apiproxy/targets/default.xml +++ b/references/java-callout/proxy-v1/apiproxy/targets/default.xml @@ -17,6 +17,6 @@ - https://httpbin.org/ + https://mocktarget.apigee.net/echo diff --git a/references/js-callout/apiproxy/targets/default.xml b/references/js-callout/apiproxy/targets/default.xml index e07958e3f..229b8bd6d 100644 --- a/references/js-callout/apiproxy/targets/default.xml +++ b/references/js-callout/apiproxy/targets/default.xml @@ -17,6 +17,6 @@ - https://httpbin.org/ + https://mocktarget.apigee.net/echo/ diff --git a/references/proxy-template/README.md b/references/proxy-template/README.md index c84ee112f..43b68e528 100644 --- a/references/proxy-template/README.md +++ b/references/proxy-template/README.md @@ -22,7 +22,7 @@ It also has the following features: port, ssl enabled or not) are based on the environment variable `TARGET_URL` - The path that is set in `TARGET_URL` is used to configure a conditional flow on the proxy template. This flow is used to test the TargetServer - - The default value of `TARGET_URL` is `https://httpbin.org/headers` + - The default value of `TARGET_URL` is `https://mocktarget.apigee.net/echo` ## Dependencies diff --git a/references/proxy-template/pipeline.sh b/references/proxy-template/pipeline.sh index 65ff694f7..96a14ba94 100755 --- a/references/proxy-template/pipeline.sh +++ b/references/proxy-template/pipeline.sh @@ -22,7 +22,7 @@ PROXY=example VERSION=v1 # default target server URL -DEFAULT_TARGET_URL=https://httpbin.org/headers +DEFAULT_TARGET_URL=https://mocktarget.apigee.net/echo # default Virtual Host VHOST=secure diff --git a/references/recaptcha-enterprise/README.md b/references/recaptcha-enterprise/README.md index 4d961ef17..462d1747d 100644 --- a/references/recaptcha-enterprise/README.md +++ b/references/recaptcha-enterprise/README.md @@ -139,7 +139,7 @@ following artifacts: - ```recaptcha-data-proxy-v1```: a data proxy, which calls the reCAPTCHA enterprise sharedflow. -The target endpoint of this proxy is [httpbin.org](https://httpbin.org) +The target endpoint of this proxy is [mocktarget.apigee.net/echo](https://mocktarget.apigee.net/echo) - ```recaptcha-deliver-token-v1```: an API proxy used to deliver an HTML page that includes a valid reCAPTCHA token (cf. [Option 2](#option-2-recaptcha-enterprise-is-used) diff --git a/references/recaptcha-enterprise/recaptcha-data-proxy-v1/apiproxy/targets/default.xml b/references/recaptcha-enterprise/recaptcha-data-proxy-v1/apiproxy/targets/default.xml index 34c432c81..63275ca08 100644 --- a/references/recaptcha-enterprise/recaptcha-data-proxy-v1/apiproxy/targets/default.xml +++ b/references/recaptcha-enterprise/recaptcha-data-proxy-v1/apiproxy/targets/default.xml @@ -16,6 +16,6 @@ - https://httpbin.org + https://mocktarget.apigee.net/echo \ No newline at end of file diff --git a/tools/endpoints-oas-importer/examples/openapi_test.json b/tools/endpoints-oas-importer/examples/openapi_test.json index 9eb42aefa..721edc564 100644 --- a/tools/endpoints-oas-importer/examples/openapi_test.json +++ b/tools/endpoints-oas-importer/examples/openapi_test.json @@ -24,7 +24,7 @@ } }, "x-google-backend": { - "address": "https://httpbin.org", + "address": "https://mocktarget.apigee.net/echo", "deadline": 7, "disable_auth": true, "path_translation": "APPEND_PATH_TO_ADDRESS", diff --git a/tools/endpoints-oas-importer/examples/openapi_test.yaml b/tools/endpoints-oas-importer/examples/openapi_test.yaml index a1b6faf65..727d77fa0 100644 --- a/tools/endpoints-oas-importer/examples/openapi_test.yaml +++ b/tools/endpoints-oas-importer/examples/openapi_test.yaml @@ -23,7 +23,7 @@ schemes: - "https" x-google-allow: all x-google-backend: - address: https://httpbin.org/anything + address: https://mocktarget.apigee.net/echo protocol: h2 disable_auth: true paths: @@ -35,7 +35,7 @@ paths: '200': description: Request Headers. x-google-backend: - address: https://httpbin.org + address: https://mocktarget.apigee.net/echo path_translation: APPEND_PATH_TO_ADDRESS disable_auth: true "/headers/{headerId}/bar":