From 93b9206b697b733f0d287d9602539fd120f51559 Mon Sep 17 00:00:00 2001
From: Enrique Garcia Cota
Date: Wed, 11 Sep 2024 17:17:28 +0200
Subject: [PATCH 1/2] feat(version) added Kong open source version 3.8.0
---
assets/kong_CE_versions.ver | 1 +
1 file changed, 1 insertion(+)
diff --git a/assets/kong_CE_versions.ver b/assets/kong_CE_versions.ver
index 3f45e700..9965579c 100644
--- a/assets/kong_CE_versions.ver
+++ b/assets/kong_CE_versions.ver
@@ -47,3 +47,4 @@
3.6.1
3.7.0
3.7.1
+3.8.0
From aac17382372fdc9a8272828f46170518d4a2d9c6 Mon Sep 17 00:00:00 2001
From: Enrique Garcia Cota
Date: Wed, 11 Sep 2024 17:21:18 +0200
Subject: [PATCH 2/2] chore(version) added Kong open source version 3.8.0
artifacts
---
.../test/gateway/plugins/app-dynamics.spec.ts | 3 +-
kong-versions/3.8.0/kong/Makefile | 207 +
kong-versions/3.8.0/kong/bin/busted | 104 +
kong-versions/3.8.0/kong/bin/kong | 158 +
kong-versions/3.8.0/kong/bin/kong-health | 79 +
kong-versions/3.8.0/kong/spec/README.md | 31 +
.../3.8.0/kong/spec/busted-ci-helper.lua | 71 +
kong-versions/3.8.0/kong/spec/config.ld | 11 +
.../spec/fixtures/1.2_custom_nginx.template | 572 +
.../3.8.0/kong/spec/fixtures/admin_api.lua | 93 +
.../llm-v1-chat/requests/bad_request.json | 12 +
.../llm-v1-chat/requests/good-stream.json | 13 +
.../anthropic/llm-v1-chat/requests/good.json | 12 +
.../llm-v1-chat/requests/good_own_model.json | 13 +
.../llm-v1-chat/responses/bad_request.json | 6 +
.../responses/bad_upstream_response.json | 10 +
.../anthropic/llm-v1-chat/responses/good.json | 15 +
.../responses/internal_server_error.html | 11 +
.../responses/malformed_usage_response.json | 15 +
.../responses/no_usage_response.json | 11 +
.../llm-v1-chat/responses/unauthorized.json | 6 +
.../requests/bad_request.json | 3 +
.../llm-v1-completions/requests/good.json | 3 +
.../responses/bad_request.json | 6 +
.../llm-v1-completions/responses/good.json | 5 +
.../responses/unauthorized.json | 6 +
.../request-transformer/response-in-json.json | 18 +
.../request-transformer/response-in-json.json | 22 +
.../llm-v1-chat/requests/bad_request.json | 12 +
.../llm-v1-chat/requests/good-stream.json | 13 +
.../cohere/llm-v1-chat/requests/good.json | 12 +
.../llm-v1-chat/requests/good_own_model.json | 13 +
.../llm-v1-chat/responses/bad_request.json | 3 +
.../responses/bad_upstream_response.json | 10 +
.../cohere/llm-v1-chat/responses/good.json | 19 +
.../responses/internal_server_error.html | 11 +
.../llm-v1-chat/responses/unauthorized.json | 3 +
.../requests/bad_request.json | 3 +
.../llm-v1-completions/requests/good.json | 3 +
.../responses/bad_request.json | 6 +
.../llm-v1-completions/responses/good.json | 34 +
.../responses/unauthorized.json | 3 +
.../request-transformer/response-in-json.json | 19 +
.../spec/fixtures/ai-proxy/json-schema.json | 65 +
.../ai-proxy/llama2/ollama/chat-stream.json | 13 +
.../llama2/raw/requests/good-chat.json | 20 +
.../llama2/raw/requests/good-completions.json | 3 +
.../llama2/raw/responses/bad_request.json | 3 +
.../ai-proxy/llama2/raw/responses/good.json | 7 +
.../llama2/raw/responses/unauthorized.json | 3 +
.../request-transformer/response-in-json.json | 7 +
.../mistral/llm-v1-chat/responses/good.json | 22 +
.../llm-v1-completions/responses/good.json | 19 +
.../request-transformer/response-in-json.json | 16 +
.../kong/spec/fixtures/ai-proxy/oas.yaml | 207 +
.../llm-v1-chat/requests/bad_request.json | 12 +
.../llm-v1-chat/requests/good-stream.json | 13 +
.../openai/llm-v1-chat/requests/good.json | 13 +
.../requests/good_multi_modal.json | 24 +
.../llm-v1-chat/requests/good_own_model.json | 14 +
.../llm-v1-chat/responses/bad_request.json | 8 +
.../responses/bad_upstream_response.json | 10 +
.../openai/llm-v1-chat/responses/good.json | 22 +
.../responses/internal_server_error.html | 11 +
.../llm-v1-chat/responses/unauthorized.json | 8 +
.../requests/bad_request.json | 3 +
.../llm-v1-completions/requests/good.json | 3 +
.../responses/bad_request.json | 8 +
.../llm-v1-completions/responses/good.json | 19 +
.../responses/unauthorized.json | 8 +
.../request-transformer/response-in-json.json | 22 +
.../response-not-json.json | 22 +
.../response-with-bad-instructions.json | 22 +
.../response-with-instructions.json | 22 +
.../anthropic/llm-v1-chat.json | 29 +
.../anthropic/llm-v1-completions.json | 7 +
.../expected-requests/azure/llm-v1-chat.json | 33 +
.../azure/llm-v1-completions.json | 8 +
.../bedrock/llm-v1-chat.json | 55 +
.../expected-requests/cohere/llm-v1-chat.json | 15 +
.../cohere/llm-v1-completions.json | 9 +
.../expected-requests/gemini/llm-v1-chat.json | 57 +
.../llama2/ollama/llm-v1-chat.json | 34 +
.../llama2/ollama/llm-v1-completions.json | 9 +
.../llama2/raw/llm-v1-chat.json | 10 +
.../llama2/raw/llm-v1-completions.json | 8 +
.../mistral/ollama/llm-v1-chat.json | 34 +
.../mistral/openai/llm-v1-chat.json | 32 +
.../expected-requests/openai/llm-v1-chat.json | 32 +
.../openai/llm-v1-completions.json | 7 +
.../anthropic/llm-v1-chat.json | 14 +
.../anthropic/llm-v1-completions.json | 11 +
.../expected-responses/azure/llm-v1-chat.json | 22 +
.../azure/llm-v1-completions.json | 19 +
.../bedrock/llm-v1-chat.json | 19 +
.../cohere/llm-v1-chat.json | 20 +
.../cohere/llm-v1-completions.json | 17 +
.../gemini/llm-v1-chat.json | 14 +
.../llama2/ollama/llm-v1-chat.json | 19 +
.../llama2/ollama/llm-v1-completions.json | 15 +
.../llama2/raw/llm-v1-chat.json | 12 +
.../llama2/raw/llm-v1-completions.json | 9 +
.../mistral/ollama/llm-v1-chat.json | 19 +
.../mistral/openai/llm-v1-chat.json | 22 +
.../openai/llm-v1-chat.json | 22 +
.../openai/llm-v1-completions.json | 19 +
.../real-responses/anthropic/llm-v1-chat.json | 12 +
.../anthropic/llm-v1-completions.json | 5 +
.../real-responses/azure/llm-v1-chat.json | 22 +
.../azure/llm-v1-completions.json | 19 +
.../real-responses/bedrock/llm-v1-chat.json | 21 +
.../real-responses/cohere/llm-v1-chat.json | 20 +
.../cohere/llm-v1-completions.json | 20 +
.../real-responses/gemini/llm-v1-chat.json | 39 +
.../llama2/ollama/llm-v1-chat.json | 15 +
.../llama2/ollama/llm-v1-completions.json | 14 +
.../llama2/raw/llm-v1-chat.json | 7 +
.../llama2/raw/llm-v1-completions.json | 7 +
.../mistral/ollama/llm-v1-chat.json | 15 +
.../mistral/openai/llm-v1-chat.json | 22 +
.../real-responses/openai/llm-v1-chat.json | 22 +
.../openai/llm-v1-completions.json | 19 +
.../real-stream-frames/cohere/llm-v1-chat.txt | 1 +
.../cohere/llm-v1-completions.txt | 1 +
.../real-stream-frames/openai/llm-v1-chat.txt | 1 +
.../openai/llm-v1-completions.txt | 1 +
.../ai-proxy/unit/requests/llm-v1-chat.json | 28 +
.../requests/llm-v1-completion-template.json | 8 +
.../unit/requests/llm-v1-completions.json | 3 +
.../aws/expected-output.json | 20 +
.../streaming-chunk-formats/aws/input.bin | Bin 0 -> 1506 bytes
.../complete-json/expected-output.json | 8 +
.../complete-json/input.bin | 2 +
.../expected-output.json | 14 +
.../partial-json-beginning/input.bin | 141 +
.../partial-json-end/expected-output.json | 11 +
.../partial-json-end/input.bin | 80 +
.../text-event-stream/expected-output.json | 11 +
.../text-event-stream/input.bin | 7 +
.../3.8.0/kong/spec/fixtures/aws-lambda.lua | 145 +
.../3.8.0/kong/spec/fixtures/aws-sam.lua | 73 +
.../kong/spec/fixtures/balancer_utils.lua | 662 +
.../3.8.0/kong/spec/fixtures/blueprints.lua | 430 +
.../3.8.0/kong/spec/fixtures/burst.yml | 23649 ++++++++++++++++
.../kong/spec/fixtures/custom_nginx.template | 96 +
.../kong/plugins/admin-api-method/api.lua | 9 +
.../kong/plugins/admin-api-method/handler.lua | 8 +
.../kong/plugins/admin-api-method/schema.lua | 13 +
.../plugins/admin-api-method/status_api.lua | 7 +
.../kong/plugins/api-override/api.lua | 25 +
.../kong/plugins/api-override/handler.lua | 4 +
.../kong/plugins/api-override/schema.lua | 27 +
.../cache-key-vs-endpoint-key/daos.lua | 31 +
.../cache-key-vs-endpoint-key/handler.lua | 4 +
.../000_base_cache_key_vs_endpoint_key.lua | 25 +
.../migrations/init.lua | 3 +
.../cache-key-vs-endpoint-key/schema.lua | 12 +
.../kong/plugins/cache/handler.lua | 43 +
.../kong/plugins/cache/schema.lua | 12 +
.../cluster-error-reporting/handler.lua | 32 +
.../cluster-error-reporting/schema.lua | 12 +
.../kong/plugins/ctx-checker-last/handler.lua | 15 +
.../kong/plugins/ctx-checker-last/schema.lua | 20 +
.../kong/plugins/ctx-checker/handler.lua | 109 +
.../kong/plugins/ctx-checker/schema.lua | 20 +
.../plugins/ctx-tests-response/handler.lua | 473 +
.../plugins/ctx-tests-response/schema.lua | 27 +
.../kong/plugins/ctx-tests/handler.lua | 540 +
.../kong/plugins/ctx-tests/schema.lua | 27 +
.../kong/plugins/dns-client-test/handler.lua | 74 +
.../kong/plugins/dns-client-test/schema.lua | 12 +
.../kong/plugins/dummy/handler.lua | 50 +
.../kong/plugins/dummy/schema.lua | 32 +
.../enable-buffering-response/handler.lua | 34 +
.../enable-buffering-response/schema.lua | 23 +
.../kong/plugins/enable-buffering/handler.lua | 34 +
.../kong/plugins/enable-buffering/schema.lua | 23 +
.../plugins/error-generator-last/handler.lua | 64 +
.../plugins/error-generator-last/schema.lua | 18 +
.../kong/plugins/error-generator/handler.lua | 64 +
.../kong/plugins/error-generator/schema.lua | 23 +
.../plugins/error-handler-log/handler.lua | 52 +
.../kong/plugins/error-handler-log/schema.lua | 12 +
.../kong/plugins/fail-once-auth/handler.lua | 17 +
.../kong/plugins/fail-once-auth/schema.lua | 13 +
.../kong/plugins/foreign-entity/api.lua | 35 +
.../kong/plugins/foreign-entity/daos.lua | 28 +
.../kong/plugins/foreign-entity/handler.lua | 4 +
.../migrations/000_base_foreign_entity.lua | 24 +
.../foreign-entity/migrations/init.lua | 3 +
.../kong/plugins/foreign-entity/schema.lua | 12 +
.../kong/plugins/get-plugin-id/handler.lua | 10 +
.../kong/plugins/get-plugin-id/schema.lua | 12 +
.../plugins/init-worker-lua-error/handler.lua | 13 +
.../plugins/init-worker-lua-error/schema.lua | 12 +
.../kong/plugins/invalid-schema/handler.lua | 6 +
.../kong/plugins/invalid-schema/schema.lua | 13 +
.../kong/plugins/invalidations/handler.lua | 30 +
.../kong/plugins/invalidations/schema.lua | 27 +
.../kong/plugins/logger-last/handler.lua | 20 +
.../kong/plugins/logger-last/schema.lua | 18 +
.../kong/plugins/logger/handler.lua | 52 +
.../kong/plugins/logger/schema.lua | 18 +
.../kong/plugins/max-args/handler.lua | 72 +
.../kong/plugins/max-args/schema.lua | 18 +
.../muti-external-http-calls/handler.lua | 22 +
.../muti-external-http-calls/schema.lua | 18 +
.../kong/plugins/pdk-logger/handler.lua | 49 +
.../kong/plugins/pdk-logger/schema.lua | 18 +
.../plugins/plugin-config-dump/handler.lua | 10 +
.../plugins/plugin-config-dump/schema.lua | 12 +
.../plugin-with-custom-dao/custom_dao.lua | 9 +
.../plugins/plugin-with-custom-dao/daos.lua | 13 +
.../plugin-with-custom-dao/handler.lua | 7 +
.../plugins/plugin-with-custom-dao/schema.lua | 12 +
.../strategies/postgres/custom_dao.lua | 7 +
.../kong/plugins/preserve-nulls/handler.lua | 24 +
.../kong/plugins/preserve-nulls/schema.lua | 38 +
.../reconfiguration-completion/handler.lua | 29 +
.../reconfiguration-completion/schema.lua | 16 +
.../kong/plugins/redis-dummy/handler.lua | 12 +
.../kong/plugins/redis-dummy/schema.lua | 15 +
.../plugins/reference-ca-cert/handler.lua | 6 +
.../kong/plugins/reference-ca-cert/schema.lua | 15 +
.../kong/plugins/reports-api/api.lua | 19 +
.../kong/plugins/reports-api/handler.lua | 15 +
.../kong/plugins/reports-api/schema.lua | 12 +
.../plugins/request-aware-table/handler.lua | 41 +
.../plugins/request-aware-table/schema.lua | 11 +
.../kong/plugins/response-phase/handler.lua | 16 +
.../kong/plugins/response-phase/schema.lua | 11 +
.../kong/plugins/rewriter/handler.lua | 12 +
.../kong/plugins/rewriter/schema.lua | 14 +
.../kong/plugins/secret-response/handler.lua | 21 +
.../kong/plugins/secret-response/schema.lua | 11 +
.../kong/plugins/short-circuit/handler.lua | 40 +
.../kong/plugins/short-circuit/schema.lua | 20 +
.../kong/plugins/slow-query/api.lua | 25 +
.../kong/plugins/slow-query/handler.lua | 7 +
.../kong/plugins/slow-query/schema.lua | 12 +
.../kong/plugins/stream-api-echo/api.lua | 19 +
.../kong/plugins/stream-api-echo/handler.lua | 5 +
.../kong/plugins/stream-api-echo/schema.lua | 12 +
.../plugins/tcp-trace-exporter/handler.lua | 135 +
.../plugins/tcp-trace-exporter/schema.lua | 17 +
.../kong/plugins/transformations/daos.lua | 72 +
.../kong/plugins/transformations/handler.lua | 4 +
.../migrations/000_base_transformations.lua | 14 +
.../transformations/migrations/init.lua | 3 +
.../kong/plugins/transformations/schema.lua | 12 +
.../kong/plugins/unique-foreign/daos.lua | 24 +
.../kong/plugins/unique-foreign/handler.lua | 4 +
.../migrations/000_base_unique_foreign.lua | 16 +
.../unique-foreign/migrations/init.lua | 3 +
.../kong/plugins/unique-foreign/schema.lua | 12 +
.../kong/plugins/with-migrations/daos.lua | 10 +
.../kong/plugins/with-migrations/handler.lua | 7 +
.../migrations/000_base_with_migrations.lua | 11 +
.../migrations/001_14_to_15.lua | 45 +
.../with-migrations/migrations/init.lua | 4 +
.../kong/plugins/with-migrations/schema.lua | 12 +
.../kong/plugins/worker-events/handler.lua | 64 +
.../kong/plugins/worker-events/schema.lua | 18 +
.../custom_vaults/kong/vaults/echo/init.lua | 17 +
.../custom_vaults/kong/vaults/echo/schema.lua | 14 +
.../custom_vaults/kong/vaults/mock/init.lua | 37 +
.../custom_vaults/kong/vaults/mock/schema.lua | 13 +
.../kong/vaults/mocksocket/init.lua | 37 +
.../kong/vaults/mocksocket/schema.lua | 13 +
.../custom_vaults/kong/vaults/random/init.lua | 13 +
.../kong/vaults/random/schema.lua | 19 +
.../custom_vaults/kong/vaults/test/init.lua | 258 +
.../custom_vaults/kong/vaults/test/schema.lua | 20 +
.../kong/spec/fixtures/dc_blueprints.lua | 212 +
.../spec/fixtures/default_status_listen.conf | 27 +
.../kong/spec/fixtures/dump_lmdb_key.lua | 4 +
.../error_templates/error_template.html | 12 +
.../error_templates/error_template.json | 4 +
.../error_templates/error_template.plain | 2 +
.../error_templates/error_template.xml | 6 +
.../kong/spec/fixtures/factories/plugins.lua | 154 +
.../spec/fixtures/forward-proxy-server.lua | 124 +
.../3.8.0/kong/spec/fixtures/go/go-hello.go | 79 +
.../3.8.0/kong/spec/fixtures/go/go.mod | 5 +
.../3.8.0/kong/spec/fixtures/go/go.sum | 84 +
.../spec/fixtures/grpc/direct_imports.proto | 7 +
.../grpc/google/api/annotations.proto | 31 +
.../spec/fixtures/grpc/google/api/http.proto | 318 +
.../fixtures/grpc/google/api/httpbody.proto | 78 +
.../fixtures/grpc/google/protobuf/any.proto | 154 +
.../fixtures/grpc/google/protobuf/api.proto | 210 +
.../grpc/google/protobuf/descriptor.proto | 883 +
.../grpc/google/protobuf/duration.proto | 117 +
.../fixtures/grpc/google/protobuf/empty.proto | 52 +
.../grpc/google/protobuf/field_mask.proto | 252 +
.../grpc/google/protobuf/source_context.proto | 48 +
.../grpc/google/protobuf/struct.proto | 96 +
.../grpc/google/protobuf/timestamp.proto | 135 +
.../fixtures/grpc/google/protobuf/type.proto | 187 +
.../grpc/google/protobuf/wrappers.proto | 118 +
.../3.8.0/kong/spec/fixtures/grpc/hello.proto | 21 +
.../kong/spec/fixtures/grpc/helloworld.proto | 35 +
.../fixtures/grpc/second_level_imports.proto | 7 +
.../kong/spec/fixtures/grpc/target/go.mod | 10 +
.../kong/spec/fixtures/grpc/target/go.sum | 170 +
.../spec/fixtures/grpc/target/grpc-target.go | 67 +
.../target/targetservice/targetservice.pb.go | 685 +
.../targetservice/targetservice_grpc.pb.go | 251 +
.../spec/fixtures/grpc/targetservice.proto | 95 +
.../3.8.0/kong/spec/fixtures/headers.conf | 28 +
kong-versions/3.8.0/kong/spec/fixtures/hosts | 1 +
.../3.8.0/kong/spec/fixtures/https_server.lua | 282 +
.../kong/spec/fixtures/invalid-module.lua | 5 +
.../3.8.0/kong/spec/fixtures/invalid.conf | 3 +
.../fixtures/invalid_nginx_directives.conf | 1 +
.../kong/spec/fixtures/kong_clustering.crt | 23 +
.../kong/spec/fixtures/kong_clustering.key | 28 +
.../kong/spec/fixtures/kong_clustering_ca.crt | 20 +
.../spec/fixtures/kong_clustering_client.crt | 20 +
.../spec/fixtures/kong_clustering_client.key | 27 +
.../3.8.0/kong/spec/fixtures/kong_spec.crt | 14 +
.../3.8.0/kong/spec/fixtures/kong_spec.key | 7 +
.../kong/db/migrations/core/000_base.lua | 18 +
.../kong/db/migrations/core/001_14_to_15.lua | 6 +
.../kong/db/migrations/core/init.lua | 3 +
.../3.8.0/kong/spec/fixtures/mock_cp.lua | 404 +
.../kong/spec/fixtures/mock_upstream.lua | 416 +
.../kong/spec/fixtures/mock_webserver_tpl.lua | 260 +
.../3.8.0/kong/spec/fixtures/mocker.lua | 61 +
.../lua-resty-dns/resty/dns/resolver.lua | 122 +
.../resty/websocket/peer.lua | 143 +
.../kong/spec/fixtures/mtls_certs/ca.crt | 33 +
.../kong/spec/fixtures/mtls_certs/ca.key | 51 +
.../spec/fixtures/mtls_certs/example.com.crt | 63 +
.../spec/fixtures/mtls_certs/example.com.key | 27 +
.../spec/fixtures/mtls_certs/example2.com.crt | 25 +
.../spec/fixtures/mtls_certs/example2.com.key | 27 +
.../kong/spec/fixtures/nginx-directives.conf | 8 +
.../spec/fixtures/ocsp_certs/ca-chain.crt | 65 +
.../kong/spec/fixtures/ocsp_certs/ca.crt | 33 +
.../kong/spec/fixtures/ocsp_certs/index.txt | 3 +
.../fixtures/ocsp_certs/index.txt.revoked | 3 +
.../fixtures/ocsp_certs/kong_clustering.crt | 63 +
.../fixtures/ocsp_certs/kong_clustering.key | 27 +
.../fixtures/ocsp_certs/kong_data_plane.crt | 62 +
.../fixtures/ocsp_certs/kong_data_plane.key | 27 +
.../kong/spec/fixtures/ocsp_certs/ocsp.crt | 33 +
.../kong/spec/fixtures/ocsp_certs/ocsp.key | 51 +
.../spec/fixtures/ocsp_certs/resp-good.dat | Bin 0 -> 2259 bytes
.../spec/fixtures/ocsp_certs/resp-revoked.dat | Bin 0 -> 2276 bytes
.../spec/fixtures/opentelemetry/otelcol.yaml | 32 +
.../perf/500services-each-4-routes.sql | 2549 ++
.../spec/fixtures/perf/charts/test_data1.json | 547 +
.../spec/fixtures/perf/charts/test_data2.json | 60 +
.../perf/terraform/aws-ec2/.gitignore | 8 +
.../fixtures/perf/terraform/aws-ec2/ec2.tf | 111 +
.../fixtures/perf/terraform/aws-ec2/main.tf | 26 +
.../fixtures/perf/terraform/aws-ec2/output.tf | 23 +
.../fixtures/perf/terraform/aws-ec2/ssh.tf | 10 +
.../perf/terraform/aws-ec2/variables.tf | 36 +
.../perf/terraform/bring-your-own/main.tf | 10 +
.../perf/terraform/bring-your-own/output.tf | 23 +
.../perf/terraform/bring-your-own/ssh.tf | 6 +
.../terraform/bring-your-own/variables.tf | 43 +
.../perf/terraform/digitalocean/.gitignore | 8 +
.../perf/terraform/digitalocean/droplets.tf | 34 +
.../perf/terraform/digitalocean/main.tf | 26 +
.../perf/terraform/digitalocean/output.tf | 23 +
.../perf/terraform/digitalocean/project.tf | 12 +
.../perf/terraform/digitalocean/ssh.tf | 10 +
.../perf/terraform/digitalocean/variables.tf | 49 +
.../perf/terraform/equinix-metal/.gitignore | 8 +
.../perf/terraform/equinix-metal/README.md | 5 +
.../perf/terraform/equinix-metal/main.tf | 26 +
.../perf/terraform/equinix-metal/metal.tf | 49 +
.../perf/terraform/equinix-metal/output.tf | 23 +
.../terraform/equinix-metal/scripts/wrk.lua | 47 +
.../perf/terraform/equinix-metal/ssh.tf | 5 +
.../perf/terraform/equinix-metal/tls.tf | 4 +
.../perf/terraform/equinix-metal/variables.tf | 48 +
.../spec/fixtures/prometheus/metrics.conf | 13 +
.../fixtures/proxy_wasm_filters/Cargo.lock | 753 +
.../fixtures/proxy_wasm_filters/Cargo.toml | 5 +
.../response_transformer/Cargo.toml | 15 +
.../response_transformer/src/filter.rs | 92 +
.../response_transformer/src/types.rs | 99 +
.../proxy_wasm_filters/tests/Cargo.toml | 18 +
.../proxy_wasm_filters/tests/src/filter.rs | 150 +
.../proxy_wasm_filters/tests/src/routines.rs | 30 +
.../tests/src/test_cases.rs | 23 +
.../proxy_wasm_filters/tests/src/test_http.rs | 147 +
.../proxy_wasm_filters/tests/src/types.rs | 30 +
.../3.8.0/kong/spec/fixtures/redis/ca.crt | 121 +
.../3.8.0/kong/spec/fixtures/redis/ca.key | 51 +
.../spec/fixtures/redis/docker-entrypoint.sh | 15 +
.../3.8.0/kong/spec/fixtures/redis/server.crt | 128 +
.../3.8.0/kong/spec/fixtures/redis/server.key | 51 +
.../3.8.0/kong/spec/fixtures/reload.conf | 3 +
.../fixtures/router_path_handling_tests.lua | 205 +
.../kong/spec/fixtures/sam-app/.gitignore | 244 +
.../kong/spec/fixtures/sam-app/README.md | 130 +
.../kong/spec/fixtures/sam-app/__init__.py | 0
.../spec/fixtures/sam-app/events/event.json | 62 +
.../fixtures/sam-app/hello_world/__init__.py | 0
.../spec/fixtures/sam-app/hello_world/app.py | 42 +
.../sam-app/hello_world/requirements.txt | 1 +
.../kong/spec/fixtures/sam-app/template.yaml | 41 +
.../spec/fixtures/sam-app/tests/__init__.py | 0
.../sam-app/tests/integration/__init__.py | 0
.../tests/integration/test_api_gateway.py | 45 +
.../fixtures/sam-app/tests/requirements.txt | 3 +
.../fixtures/sam-app/tests/unit/__init__.py | 0
.../sam-app/tests/unit/test_handler.py | 72 +
.../3.8.0/kong/spec/fixtures/shared_dict.lua | 44 +
.../3.8.0/kong/spec/fixtures/shm-stub.lua | 110 +
.../3.8.0/kong/spec/fixtures/ssl.lua | 605 +
.../kong/spec/fixtures/stress_generator.lua | 144 +
.../nginx_kong_test_custom_inject_http.lua | 257 +
.../nginx_kong_test_custom_inject_stream.lua | 54 +
...t_tcp_echo_server_custom_inject_stream.lua | 23 +
.../3.8.0/kong/spec/fixtures/to-strip.conf | 9 +
.../3.8.0/kong/spec/fixtures/valid-module.lua | 8 +
kong-versions/3.8.0/kong/spec/helpers.lua | 4491 +++
kong-versions/3.8.0/kong/spec/helpers/dns.lua | 201 +
.../3.8.0/kong/spec/helpers/http_mock.lua | 276 +
.../kong/spec/helpers/http_mock/asserts.lua | 163 +
.../kong/spec/helpers/http_mock/clients.lua | 31 +
.../spec/helpers/http_mock/debug_port.lua | 117 +
.../spec/helpers/http_mock/nginx_instance.lua | 95 +
.../kong/spec/helpers/http_mock/tapping.lua | 47 +
.../kong/spec/helpers/http_mock/template.lua | 247 +
.../3.8.0/kong/spec/helpers/perf.lua | 572 +
.../3.8.0/kong/spec/helpers/perf/charts.lua | 114 +
.../kong/spec/helpers/perf/charts/.gitignore | 3 +
.../kong/spec/helpers/perf/charts/charts.py | 127 +
.../spec/helpers/perf/charts/requirements.txt | 4 +
.../kong/spec/helpers/perf/drivers/docker.lua | 612 +
.../spec/helpers/perf/drivers/terraform.lua | 741 +
.../3.8.0/kong/spec/helpers/perf/git.lua | 89 +
.../3.8.0/kong/spec/helpers/perf/logger.lua | 62 +
.../3.8.0/kong/spec/helpers/perf/utils.lua | 250 +
.../3.8.0/kong/spec/helpers/redis_helper.lua | 40 +
kong-versions/3.8.0/kong/spec/helpers/ssl.lua | 268 +
.../3.8.0/kong/spec/helpers/wait.lua | 488 +
kong-versions/3.8.0/kong/spec/kong_tests.conf | 53 +
kong-versions/3.8.0/kong/spec/ldoc.css | 291 +
kong-versions/3.8.0/kong/spec/on_demand_specs | 4 +
kong-versions/3.8.0/kong/spec/renderdocs.sh | 40 +
kong-versions/3.8.0/kong/spec/require.lua | 93 +
.../3.8.0/kong/spec/upgrade_helpers.lua | 233 +
450 files changed, 57393 insertions(+), 1 deletion(-)
create mode 100644 kong-versions/3.8.0/kong/Makefile
create mode 100755 kong-versions/3.8.0/kong/bin/busted
create mode 100755 kong-versions/3.8.0/kong/bin/kong
create mode 100755 kong-versions/3.8.0/kong/bin/kong-health
create mode 100644 kong-versions/3.8.0/kong/spec/README.md
create mode 100644 kong-versions/3.8.0/kong/spec/busted-ci-helper.lua
create mode 100644 kong-versions/3.8.0/kong/spec/config.ld
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/1.2_custom_nginx.template
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/admin_api.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good-stream.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good_own_model.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/bad_upstream_response.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/internal_server_error.html
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/malformed_usage_response.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/no_usage_response.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/unauthorized.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/requests/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/requests/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/unauthorized.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/request-transformer/response-in-json.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/azure/request-transformer/response-in-json.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good-stream.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good_own_model.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/bad_upstream_response.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/internal_server_error.html
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/unauthorized.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/requests/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/requests/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/unauthorized.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/request-transformer/response-in-json.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/json-schema.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/ollama/chat-stream.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/requests/good-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/requests/good-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/unauthorized.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/request-transformer/response-in-json.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/llm-v1-chat/responses/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/llm-v1-completions/responses/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/request-transformer/response-in-json.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/oas.yaml
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good-stream.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good_multi_modal.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good_own_model.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/bad_upstream_response.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/internal_server_error.html
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/unauthorized.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/requests/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/requests/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/bad_request.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/good.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/unauthorized.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-in-json.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-not-json.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-with-bad-instructions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-with-instructions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/anthropic/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/anthropic/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/azure/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/azure/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/bedrock/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/cohere/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/cohere/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/gemini/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/ollama/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/ollama/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/raw/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/raw/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/mistral/ollama/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/mistral/openai/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/openai/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/openai/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/anthropic/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/anthropic/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/azure/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/azure/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/bedrock/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/cohere/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/cohere/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/gemini/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/ollama/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/ollama/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/raw/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/raw/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/mistral/ollama/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/mistral/openai/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/openai/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/openai/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/anthropic/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/anthropic/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/azure/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/azure/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/bedrock/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/cohere/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/cohere/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/gemini/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/ollama/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/ollama/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/raw/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/raw/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/mistral/ollama/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/mistral/openai/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/openai/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/openai/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/cohere/llm-v1-chat.txt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/cohere/llm-v1-completions.txt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/openai/llm-v1-chat.txt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/openai/llm-v1-completions.txt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-chat.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-completion-template.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-completions.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/aws/expected-output.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/aws/input.bin
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/complete-json/expected-output.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/complete-json/input.bin
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/partial-json-beginning/expected-output.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/partial-json-beginning/input.bin
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/partial-json-end/expected-output.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/partial-json-end/input.bin
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/text-event-stream/expected-output.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/text-event-stream/input.bin
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/aws-lambda.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/aws-sam.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/balancer_utils.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/blueprints.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/burst.yml
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_nginx.template
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/api.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/status_api.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/api.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/daos.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/migrations/000_base_cache_key_vs_endpoint_key.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/migrations/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cluster-error-reporting/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cluster-error-reporting/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker-last/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker-last/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests-response/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests-response/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dns-client-test/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dns-client-test/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dummy/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dummy/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering-response/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering-response/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator-last/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator-last/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-handler-log/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-handler-log/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/fail-once-auth/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/fail-once-auth/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/api.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/daos.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/migrations/000_base_foreign_entity.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/migrations/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/get-plugin-id/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/get-plugin-id/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/init-worker-lua-error/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/init-worker-lua-error/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalid-schema/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalid-schema/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalidations/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalidations/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger-last/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger-last/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/max-args/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/max-args/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/muti-external-http-calls/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/muti-external-http-calls/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/pdk-logger/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/pdk-logger/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-config-dump/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-config-dump/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/custom_dao.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/daos.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/strategies/postgres/custom_dao.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/preserve-nulls/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/preserve-nulls/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reconfiguration-completion/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reconfiguration-completion/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/redis-dummy/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/redis-dummy/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reference-ca-cert/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reference-ca-cert/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/api.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/request-aware-table/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/request-aware-table/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/response-phase/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/response-phase/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/rewriter/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/rewriter/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/secret-response/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/secret-response/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/short-circuit/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/short-circuit/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/api.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/api.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/tcp-trace-exporter/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/tcp-trace-exporter/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/daos.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/migrations/000_base_transformations.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/migrations/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/daos.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/migrations/000_base_unique_foreign.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/migrations/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/daos.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/000_base_with_migrations.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/001_14_to_15.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/worker-events/handler.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/worker-events/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/echo/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/echo/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mock/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mock/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mocksocket/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mocksocket/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/random/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/random/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/test/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/test/schema.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/dc_blueprints.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/default_status_listen.conf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/dump_lmdb_key.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.html
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.plain
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.xml
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/factories/plugins.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/forward-proxy-server.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/go/go-hello.go
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/go/go.mod
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/go/go.sum
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/direct_imports.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/annotations.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/http.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/httpbody.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/any.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/api.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/descriptor.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/duration.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/empty.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/field_mask.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/source_context.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/struct.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/timestamp.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/type.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/wrappers.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/hello.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/helloworld.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/second_level_imports.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/target/go.mod
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/target/go.sum
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/target/grpc-target.go
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/target/targetservice/targetservice.pb.go
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/target/targetservice/targetservice_grpc.pb.go
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/grpc/targetservice.proto
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/headers.conf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/hosts
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/https_server.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/invalid-module.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/invalid.conf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/invalid_nginx_directives.conf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/kong_clustering.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/kong_clustering.key
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_ca.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_client.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_client.key
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/kong_spec.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/kong_spec.key
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/000_base.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/001_14_to_15.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/init.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mock_cp.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mock_upstream.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mock_webserver_tpl.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mocker.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mocks/lua-resty-dns/resty/dns/resolver.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mocks/lua-resty-websocket/resty/websocket/peer.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/ca.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/ca.key
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example.com.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example.com.key
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example2.com.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example2.com.key
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/nginx-directives.conf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ca-chain.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ca.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/index.txt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/index.txt.revoked
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_clustering.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_clustering.key
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_data_plane.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_data_plane.key
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ocsp.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ocsp.key
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/resp-good.dat
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/resp-revoked.dat
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/opentelemetry/otelcol.yaml
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/500services-each-4-routes.sql
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/charts/test_data1.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/charts/test_data2.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/aws-ec2/.gitignore
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/aws-ec2/ec2.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/aws-ec2/main.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/aws-ec2/output.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/aws-ec2/ssh.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/aws-ec2/variables.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/bring-your-own/main.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/bring-your-own/output.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/bring-your-own/ssh.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/bring-your-own/variables.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/digitalocean/.gitignore
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/digitalocean/droplets.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/digitalocean/main.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/digitalocean/output.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/digitalocean/project.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/digitalocean/ssh.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/digitalocean/variables.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/equinix-metal/.gitignore
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/equinix-metal/README.md
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/equinix-metal/main.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/equinix-metal/metal.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/equinix-metal/output.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/equinix-metal/scripts/wrk.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/equinix-metal/ssh.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/equinix-metal/tls.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/perf/terraform/equinix-metal/variables.tf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/prometheus/metrics.conf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/Cargo.lock
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/Cargo.toml
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/response_transformer/Cargo.toml
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/response_transformer/src/filter.rs
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/response_transformer/src/types.rs
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/tests/Cargo.toml
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/tests/src/filter.rs
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/tests/src/routines.rs
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/tests/src/test_cases.rs
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/tests/src/test_http.rs
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/proxy_wasm_filters/tests/src/types.rs
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/redis/ca.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/redis/ca.key
create mode 100755 kong-versions/3.8.0/kong/spec/fixtures/redis/docker-entrypoint.sh
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/redis/server.crt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/redis/server.key
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/reload.conf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/router_path_handling_tests.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/.gitignore
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/README.md
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/__init__.py
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/events/event.json
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/hello_world/__init__.py
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/hello_world/app.py
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/hello_world/requirements.txt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/template.yaml
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/tests/__init__.py
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/tests/integration/__init__.py
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/tests/integration/test_api_gateway.py
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/tests/requirements.txt
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/tests/unit/__init__.py
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/sam-app/tests/unit/test_handler.py
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/shared_dict.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/shm-stub.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/ssl.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/stress_generator.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/template_inject/nginx_kong_test_custom_inject_http.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/template_inject/nginx_kong_test_custom_inject_stream.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/template_inject/nginx_kong_test_tcp_echo_server_custom_inject_stream.lua
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/to-strip.conf
create mode 100644 kong-versions/3.8.0/kong/spec/fixtures/valid-module.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/dns.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/http_mock.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/http_mock/asserts.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/http_mock/clients.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/http_mock/debug_port.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/http_mock/nginx_instance.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/http_mock/tapping.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/http_mock/template.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/perf.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/perf/charts.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/perf/charts/.gitignore
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/perf/charts/charts.py
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/perf/charts/requirements.txt
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/perf/drivers/docker.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/perf/drivers/terraform.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/perf/git.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/perf/logger.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/perf/utils.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/redis_helper.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/ssl.lua
create mode 100644 kong-versions/3.8.0/kong/spec/helpers/wait.lua
create mode 100644 kong-versions/3.8.0/kong/spec/kong_tests.conf
create mode 100644 kong-versions/3.8.0/kong/spec/ldoc.css
create mode 100644 kong-versions/3.8.0/kong/spec/on_demand_specs
create mode 100755 kong-versions/3.8.0/kong/spec/renderdocs.sh
create mode 100644 kong-versions/3.8.0/kong/spec/require.lua
create mode 100644 kong-versions/3.8.0/kong/spec/upgrade_helpers.lua
diff --git a/kong-versions/3.8.0.0/kong/spec-ee/kong-api-tests/test/gateway/plugins/app-dynamics.spec.ts b/kong-versions/3.8.0.0/kong/spec-ee/kong-api-tests/test/gateway/plugins/app-dynamics.spec.ts
index 0ba99649..3eb9c050 100644
--- a/kong-versions/3.8.0.0/kong/spec-ee/kong-api-tests/test/gateway/plugins/app-dynamics.spec.ts
+++ b/kong-versions/3.8.0.0/kong/spec-ee/kong-api-tests/test/gateway/plugins/app-dynamics.spec.ts
@@ -124,7 +124,8 @@ import {
await waitForConfigRebuild({ proxyReqHeader: { 'apiKey': apiKeyScoped } })
});
- it('should send request and see the Singularityheader when AppDynamics plugin is enabled', async function () {
+ //skip until we renew app dynamics license
+ it.skip('should send request and see the Singularityheader when AppDynamics plugin is enabled', async function () {
let resp;
// send 150 requests to seed data for the plugin
diff --git a/kong-versions/3.8.0/kong/Makefile b/kong-versions/3.8.0/kong/Makefile
new file mode 100644
index 00000000..402bdffd
--- /dev/null
+++ b/kong-versions/3.8.0/kong/Makefile
@@ -0,0 +1,207 @@
+OS := $(shell uname | awk '{print tolower($$0)}')
+MACHINE := $(shell uname -m)
+
+DEV_ROCKS = "busted 2.2.0" "busted-hjtest 0.0.5" "luacheck 1.2.0" "lua-llthreads2 0.1.6" "ldoc 1.5.0" "luacov 0.15.0"
+WIN_SCRIPTS = "bin/busted" "bin/kong" "bin/kong-health"
+BUSTED_ARGS ?= -v
+TEST_CMD ?= bin/busted $(BUSTED_ARGS)
+
+BUILD_NAME ?= kong-dev
+
+ifeq ($(OS), darwin)
+OPENSSL_DIR ?= $(shell brew --prefix)/opt/openssl
+GRPCURL_OS ?= osx
+YAML_DIR ?= $(shell brew --prefix)/opt/libyaml
+EXPAT_DIR ?= $(HOMEBREW_DIR)/opt/expat
+else
+OPENSSL_DIR ?= /usr
+GRPCURL_OS ?= $(OS)
+YAML_DIR ?= /usr
+EXPAT_DIR ?= $(LIBRARY_PREFIX)
+endif
+
+ifeq ($(MACHINE), aarch64)
+GRPCURL_MACHINE ?= arm64
+H2CLIENT_MACHINE ?= arm64
+else
+GRPCURL_MACHINE ?= $(MACHINE)
+H2CLIENT_MACHINE ?= $(MACHINE)
+endif
+
+ifeq ($(MACHINE), aarch64)
+BAZELISK_MACHINE ?= arm64
+else ifeq ($(MACHINE), x86_64)
+BAZELISK_MACHINE ?= amd64
+else
+BAZELISK_MACHINE ?= $(MACHINE)
+endif
+
+.PHONY: install dev \
+ lint test test-integration test-plugins test-all \
+ pdk-phase-check functional-tests \
+ fix-windows release wasm-test-filters test-logs
+
+ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+KONG_SOURCE_LOCATION ?= $(ROOT_DIR)
+GRPCURL_VERSION ?= 1.8.5
+BAZLISK_VERSION ?= 1.20.0
+H2CLIENT_VERSION ?= 0.4.4
+BAZEL := $(shell command -v bazel 2> /dev/null)
+VENV = /dev/null # backward compatibility when no venv is built
+
+# Use x86_64 grpcurl v1.8.5 for Apple silicon chips
+ifeq ($(GRPCURL_OS)_$(MACHINE)_$(GRPCURL_VERSION), osx_arm64_1.8.5)
+GRPCURL_MACHINE = x86_64
+endif
+
+PACKAGE_TYPE ?= deb
+
+bin/bazel:
+ @curl -s -S -L \
+ https://github.com/bazelbuild/bazelisk/releases/download/v$(BAZLISK_VERSION)/bazelisk-$(OS)-$(BAZELISK_MACHINE) -o bin/bazel
+ @chmod +x bin/bazel
+
+bin/grpcurl:
+ @curl -s -S -L \
+ https://github.com/fullstorydev/grpcurl/releases/download/v$(GRPCURL_VERSION)/grpcurl_$(GRPCURL_VERSION)_$(GRPCURL_OS)_$(GRPCURL_MACHINE).tar.gz | tar xz -C bin;
+ @$(RM) bin/LICENSE
+
+bin/h2client:
+ @curl -s -S -L \
+ https://github.com/Kong/h2client/releases/download/v$(H2CLIENT_VERSION)/h2client_$(H2CLIENT_VERSION)_$(OS)_$(H2CLIENT_MACHINE).tar.gz | tar xz -C bin;
+ @$(RM) bin/README.md
+
+
+check-bazel: bin/bazel
+ifndef BAZEL
+ $(eval BAZEL := bin/bazel)
+endif
+
+wasm-test-filters:
+ ./scripts/build-wasm-test-filters.sh
+
+build-kong: check-bazel
+ $(BAZEL) build //build:kong --verbose_failures --action_env=BUILD_NAME=$(BUILD_NAME)
+
+build-venv: check-bazel
+ $(eval VENV := bazel-bin/build/$(BUILD_NAME)-venv.sh)
+
+ @if [ ! -e bazel-bin/build/$(BUILD_NAME)-venv.sh ]; then \
+ $(BAZEL) build //build:venv --verbose_failures --action_env=BUILD_NAME=$(BUILD_NAME); \
+ fi
+
+build-openresty: check-bazel
+
+ @if [ ! -e bazel-bin/build/$(BUILD_NAME)/openresty ]; then \
+ $(BAZEL) build //build:install-openresty --verbose_failures --action_env=BUILD_NAME=$(BUILD_NAME); \
+ else \
+ $(BAZEL) build //build:dev-make-openresty --verbose_failures --action_env=BUILD_NAME=$(BUILD_NAME); \
+ fi
+
+install-dev-rocks: build-venv
+ @. $(VENV) ;\
+ for rock in $(DEV_ROCKS) ; do \
+ if luarocks list --porcelain $$rock | grep -q "installed" ; then \
+ echo $$rock already installed, skipping ; \
+ else \
+ echo $$rock not found, installing via luarocks... ; \
+ LIBRARY_PREFIX=$$(pwd)/bazel-bin/build/$(BUILD_NAME)/kong ; \
+ luarocks install $$rock OPENSSL_DIR=$$LIBRARY_PREFIX CRYPTO_DIR=$$LIBRARY_PREFIX YAML_DIR=$(YAML_DIR) || exit 1; \
+ fi \
+ done;
+
+dev: build-venv install-dev-rocks bin/grpcurl bin/h2client wasm-test-filters
+
+build-release: check-bazel
+ $(BAZEL) clean --expunge
+ $(BAZEL) build //build:kong --verbose_failures --config release
+
+package/deb: check-bazel build-release
+ $(BAZEL) build --config release :kong_deb
+
+package/rpm: check-bazel build-release
+ $(BAZEL) build --config release :kong_el8 --action_env=RPM_SIGNING_KEY_FILE --action_env=NFPM_RPM_PASSPHRASE
+ $(BAZEL) build --config release :kong_aws2 --action_env=RPM_SIGNING_KEY_FILE --action_env=NFPM_RPM_PASSPHRASE
+ $(BAZEL) build --config release :kong_aws2022 --action_env=RPM_SIGNING_KEY_FILE --action_env=NFPM_RPM_PASSPHRASE
+
+functional-tests: dev test
+
+install: dev
+ @$(VENV) luarocks make
+
+clean: check-bazel
+ $(BAZEL) clean
+ $(RM) bin/bazel bin/grpcurl bin/h2client
+
+expunge: check-bazel
+ $(BAZEL) clean --expunge
+ $(RM) bin/bazel bin/grpcurl bin/h2client
+
+lint: dev
+ @$(VENV) luacheck -q .
+ @!(grep -R -E -I -n -w '#only|#o' spec && echo "#only or #o tag detected") >&2
+ @!(grep -R -E -I -n -- '---\s+ONLY' t && echo "--- ONLY block detected") >&2
+
+update-copyright: build-venv
+ bash -c 'OPENSSL_DIR=$(OPENSSL_DIR) EXPAT_DIR=$(EXPAT_DIR) $(VENV) luajit $(KONG_SOURCE_LOCATION)/scripts/update-copyright'
+
+test: dev
+ @$(VENV) $(TEST_CMD) spec/01-unit
+
+test-integration: dev
+ @$(VENV) $(TEST_CMD) spec/02-integration
+
+test-plugins: dev
+ @$(VENV) $(TEST_CMD) spec/03-plugins
+
+test-all: dev
+ @$(VENV) $(TEST_CMD) spec/
+
+test-custom: dev
+ifndef test_spec
+ $(error test_spec variable needs to be set, i.e. make test-custom test_spec=foo/bar/baz_spec.lua)
+endif
+ @$(VENV) $(TEST_CMD) $(test_spec)
+
+test-logs:
+ tail -F servroot/logs/error.log
+
+pdk-phase-checks: dev
+ rm -f t/phase_checks.stats
+ rm -f t/phase_checks.report
+ PDK_PHASE_CHECKS_LUACOV=1 prove -I. t/01*/*/00-phase*.t
+ luacov -c t/phase_checks.luacov
+ grep "ngx\\." t/phase_checks.report
+ grep "check_" t/phase_checks.report
+
+fix-windows:
+ @for script in $(WIN_SCRIPTS) ; do \
+ echo Converting Windows file $$script ; \
+ mv $$script $$script.win ; \
+ tr -d '\015' <$$script.win >$$script ; \
+ rm $$script.win ; \
+ chmod 0755 $$script ; \
+ done;
+
+# the following targets are kept for backwards compatibility
+# dev is renamed to dev-legacy
+remove:
+ $(warning 'remove' target is deprecated, please use `make dev` instead)
+ -@luarocks remove kong
+
+dependencies: bin/grpcurl bin/h2client
+ $(warning 'dependencies' target is deprecated, this is now not needed when using `make dev`, but are kept for installation that are not built by Bazel)
+
+ for rock in $(DEV_ROCKS) ; do \
+ if luarocks list --porcelain $$rock | grep -q "installed" ; then \
+ echo $$rock already installed, skipping ; \
+ else \
+ echo $$rock not found, installing via luarocks... ; \
+ luarocks install $$rock OPENSSL_DIR=$(OPENSSL_DIR) CRYPTO_DIR=$(OPENSSL_DIR) YAML_DIR=$(YAML_DIR) || exit 1; \
+ fi \
+ done;
+
+install-legacy:
+ @luarocks make OPENSSL_DIR=$(OPENSSL_DIR) CRYPTO_DIR=$(OPENSSL_DIR) YAML_DIR=$(YAML_DIR)
+
+dev-legacy: remove install-legacy dependencies
diff --git a/kong-versions/3.8.0/kong/bin/busted b/kong-versions/3.8.0/kong/bin/busted
new file mode 100755
index 00000000..021e13a7
--- /dev/null
+++ b/kong-versions/3.8.0/kong/bin/busted
@@ -0,0 +1,104 @@
+#!/usr/bin/env resty
+
+setmetatable(_G, nil)
+
+local pl_path = require("pl.path")
+
+local pl_file = require("pl.file")
+
+local tools_system = require("kong.tools.system")
+
+local emmy_debugger = require("kong.tools.emmy_debugger")
+
+local cert_path do
+ local busted_cert_file = pl_path.tmpname()
+ local busted_cert_content = pl_file.read("spec/fixtures/kong_spec.crt")
+
+ local system_cert_path, err = tools_system.get_system_trusted_certs_filepath()
+ if system_cert_path then
+ busted_cert_content = busted_cert_content .. "\n" .. pl_file.read(system_cert_path)
+ end
+
+ pl_file.write(busted_cert_file, busted_cert_content)
+ cert_path = busted_cert_file
+end
+
+local DEFAULT_RESTY_FLAGS=string.format(" -c 4096 --http-conf 'lua_ssl_trusted_certificate %s;' ", cert_path)
+
+if not os.getenv("KONG_BUSTED_RESPAWNED") then
+ -- initial run, so go update the environment
+ local script = {}
+ for line in io.popen("set"):lines() do
+ local ktvar, val = line:match("^KONG_TEST_([^=]*)=(.*)")
+ if ktvar then
+ -- reinserted KONG_TEST_xxx as KONG_xxx; append
+ table.insert(script, "export KONG_" .. ktvar .. "=" ..val)
+ end
+
+ local var = line:match("^(KONG_[^=]*)")
+ local var_for_spec = line:match("^(KONG_SPEC_[^=]*)")
+ if var and not var_for_spec then
+ -- remove existing KONG_xxx and KONG_TEST_xxx variables; prepend
+ table.insert(script, 1, "unset " .. var)
+ end
+ end
+ -- add cli recursion detection
+ table.insert(script, "export KONG_BUSTED_RESPAWNED=1")
+
+ -- rebuild the invoked commandline, while inserting extra resty-flags
+ local resty_flags = DEFAULT_RESTY_FLAGS
+ local cmd = { "exec", "/usr/bin/env", "resty" }
+ local cmd_prefix_count = #cmd
+ for i = 0, #arg do
+ if arg[i]:sub(1, 12) == "RESTY_FLAGS=" then
+ resty_flags = arg[i]:sub(13, -1)
+
+ else
+ table.insert(cmd, "'" .. arg[i] .. "'")
+ end
+ end
+
+ -- create shared dict
+ resty_flags = resty_flags .. require("spec.fixtures.shared_dict")
+
+ if resty_flags then
+ table.insert(cmd, cmd_prefix_count+1, resty_flags)
+ end
+
+ table.insert(script, table.concat(cmd, " "))
+
+ -- recurse cli command, with proper variables (un)set for clean testing
+ local _, _, rc = os.execute(table.concat(script, "; "))
+ os.exit(rc)
+end
+
+pcall(require, "luarocks.loader")
+
+if os.getenv("BUSTED_EMMY_DEBUGGER") then
+ emmy_debugger.init({
+ debugger = os.getenv("BUSTED_EMMY_DEBUGGER"),
+ host = os.getenv("BUSTED_EMMY_DEBUGGER_HOST"),
+ port = os.getenv("BUSTED_EMMY_DEBUGGER_PORT"),
+ wait = true,
+ source_path = os.getenv("BUSTED_EMMY_DEBUGGER_SOURCE_PATH"),
+ })
+end
+
+require("kong.globalpatches")({
+ cli = true,
+ rbusted = true
+})
+
+-- some libraries used in test like spec/helpers
+-- calls cosocket in module level, and as LuaJIT's
+-- `require` is implemented in C, this throws
+-- "attempt to yield across C-call boundary" error
+-- the following pure-lua implementation is to bypass
+-- this limitation, without need to modify all tests
+_G.require = require "spec.require".require
+
+-- Busted command-line runner
+require 'busted.runner'({ standalone = false })
+
+
+-- vim: set ft=lua ts=2 sw=2 sts=2 et :
diff --git a/kong-versions/3.8.0/kong/bin/kong b/kong-versions/3.8.0/kong/bin/kong
new file mode 100755
index 00000000..7bbda589
--- /dev/null
+++ b/kong-versions/3.8.0/kong/bin/kong
@@ -0,0 +1,158 @@
+#!/usr/bin/env resty
+
+setmetatable(_G, nil)
+pcall(require, "luarocks.loader")
+package.path = (os.getenv("KONG_LUA_PATH_OVERRIDE") or "") .. "./?.lua;./?/init.lua;" .. package.path
+require("kong.globalpatches")({ cli = true })
+math.randomseed() -- Generate PRNG seed
+
+local pl_app = require "pl.lapp"
+local pl_utils = require "pl.utils"
+local pl_tablex = require "pl.tablex"
+local inject_confs = require "kong.cmd.utils.inject_confs"
+
+local options = [[
+ --v verbose
+ --vv debug
+]]
+
+local cmds_arr = {}
+local cmds = {
+ start = true,
+ stop = true,
+ quit = true,
+ restart = true,
+ reload = true,
+ health = true,
+ check = true,
+ prepare = true,
+ migrations = true,
+ version = true,
+ config = true,
+ roar = true,
+ hybrid = true,
+ vault = true,
+}
+
+-- unnecessary to inject nginx directives for these simple cmds
+local skip_inject_cmds = {
+ version = true,
+ roar = true,
+ check = true,
+ stop = true,
+ quit = true,
+ health = true,
+ hybrid = true,
+}
+
+for k in pairs(cmds) do
+ cmds_arr[#cmds_arr+1] = k
+end
+
+table.sort(cmds_arr)
+
+local help = string.format([[
+Usage: kong COMMAND [OPTIONS]
+
+The available commands are:
+ %s
+
+Options:
+%s]], table.concat(cmds_arr, "\n "), options)
+
+local cmd_name = table.remove(arg, 1)
+if not cmd_name then
+ pl_app(help)
+ pl_app.quit()
+elseif not cmds[cmd_name] then
+ pl_app(help)
+ pl_app.quit("No such command: " .. cmd_name)
+end
+
+local cmd = require("kong.cmd." .. cmd_name)
+local cmd_lapp = cmd.lapp
+
+if cmd_lapp then
+ cmd_lapp = cmd_lapp .. options -- append universal options
+ arg = pl_app(cmd_lapp)
+end
+
+-- check sub-commands
+if cmd.sub_commands then
+ local sub_cmd = table.remove(arg, 1)
+ if not sub_cmd then
+ pl_app.quit()
+ elseif not cmd.sub_commands[sub_cmd] then
+ pl_app.quit("No such command for " .. cmd_name .. ": " .. sub_cmd)
+ else
+ arg.command = sub_cmd
+ end
+end
+
+-- inject necessary nginx directives (e.g. lmdb_*, lua_ssl_*)
+-- into the temporary nginx.conf that `resty` will create
+local main_conf = ""
+local http_conf = ""
+local stream_conf = ""
+
+if not skip_inject_cmds[cmd_name] then
+ local pok, confs = xpcall(inject_confs.compile_confs, function(err)
+ if not (arg.v or arg.vv) then
+ err = err:match "^.-:.-:.(.*)$"
+ io.stderr:write("Error: " .. err .. "\n")
+ io.stderr:write("\n Run with --v (verbose) or --vv (debug) for more details\n")
+ else
+ local trace = debug.traceback(err, 2)
+ io.stderr:write("Error: \n")
+ io.stderr:write(trace .. "\n")
+ end
+
+ pl_app.quit(nil, true)
+ end, arg)
+
+ main_conf = confs.main_conf
+ http_conf = confs.http_conf
+ stream_conf = confs.stream_conf
+end
+
+-- construct the args table
+local args_table = { "{" }
+for k, v in pairs(arg) do
+ if type(k) == "string" then
+ k = "\"" .. k .. "\""
+ end
+ if type(v) == "string" then
+ v = "\"" .. v .. "\""
+ end
+
+ table.insert(args_table, string.format("[%s] = %s,", k, v))
+end
+table.insert(args_table, "}")
+
+local args_str = table.concat(args_table, " ")
+
+local inline_code = string.format([[
+setmetatable(_G, nil)
+
+pcall(require, "luarocks.loader")
+
+package.path = (os.getenv("KONG_LUA_PATH_OVERRIDE") or "") .. "./?.lua;./?/init.lua;" .. package.path
+
+require("kong.cmd.init")("%s", %s)
+]], cmd_name, args_str)
+
+local resty_ngx_log_level
+if arg.vv then
+ resty_ngx_log_level = "debug"
+elseif arg.v then
+ resty_ngx_log_level = "info"
+end
+
+local resty_cmd = string.format(
+ "resty %s --main-conf \"%s\" --http-conf \"%s\" --stream-conf \"%s\" -e '%s'",
+ resty_ngx_log_level and ("--errlog-level " .. resty_ngx_log_level) or "", main_conf,
+ http_conf, stream_conf, inline_code)
+
+local _, code = pl_utils.execute(resty_cmd)
+os.exit(code)
+-- vim: set ft=lua ts=2 sw=2 sts=2 et :
diff --git a/kong-versions/3.8.0/kong/bin/kong-health b/kong-versions/3.8.0/kong/bin/kong-health
new file mode 100755
index 00000000..9b39555f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/bin/kong-health
@@ -0,0 +1,79 @@
+#!/usr/bin/env resty
+
+setmetatable(_G, nil)
+package.path = (os.getenv("KONG_LUA_PATH_OVERRIDE") or "") .. "./?.lua;./?/init.lua;" .. package.path
+
+local kill = require "kong.cmd.utils.kill"
+local kong_default_conf = require "kong.templates.kong_defaults"
+local pl_app = require "pl.lapp"
+local pl_config = require "pl.config"
+local pl_path = require "pl.path"
+local pl_stringio = require "pl.stringio"
+
+local KONG_DEFAULT_PREFIX = "/usr/local/kong"
+
+
+local function get_kong_prefix()
+ local prefix = os.getenv("KONG_PREFIX")
+
+ if not prefix then
+ local s = pl_stringio.open(kong_default_conf)
+ local defaults = pl_config.read(s, {
+ smart = false,
+ list_delim = "_blank_" -- mandatory but we want to ignore it
+ })
+ s:close()
+ if defaults then
+ prefix = defaults.prefix
+ end
+
+ end
+
+ return prefix or KONG_DEFAULT_PREFIX
+end
+
+
+local function execute(args)
+ local prefix = args.prefix or get_kong_prefix(args)
+ assert(pl_path.exists(prefix), "no such prefix: " .. prefix)
+
+ local kong_env = pl_path.join(prefix, ".kong_env")
+ assert(pl_path.exists(kong_env), "Kong is not running at " .. prefix)
+
+ print("")
+ local pid_file = pl_path.join(prefix, "pids", "nginx.pid")
+ kill.is_running(pid_file)
+ assert(kill.is_running(pid_file), "Kong is not running at " .. prefix)
+ print("Kong is healthy at ", prefix)
+end
+
+
+local lapp = [[
+Usage: kong-health [OPTIONS]
+Check if the necessary services are running for this node.
+Options:
+ -p,--prefix (optional string) prefix at which Kong should be running
+ --v verbose
+ --vv debug
+]]
+
+local function run(args)
+ args = pl_app(lapp)
+ xpcall(function() execute(args) end, function(err)
+ if not (args.v or args.vv) then
+ err = err:match "^.-:.-:.(.*)$"
+ io.stderr:write("Error: " .. err .. "\n")
+ io.stderr:write("\n Run with --v (verbose) or --vv (debug) for more details\n")
+ else
+ local trace = debug.traceback(err, 2)
+ io.stderr:write("Error: \n")
+ io.stderr:write(trace .. "\n")
+ end
+ pl_app.quit(nil, true)
+ end)
+end
+
+
+run(arg)
+
+-- vim: set ft=lua ts=2 sw=2 sts=2 et :
diff --git a/kong-versions/3.8.0/kong/spec/README.md b/kong-versions/3.8.0/kong/spec/README.md
new file mode 100644
index 00000000..b2fd654e
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/README.md
@@ -0,0 +1,31 @@
+Test helpers for Kong (integration) tests
+=========================================
+
+To generate the documentation run the following command in the Kong source tree:
+
+```
+# install ldoc using LuaRocks
+luarocks install ldoc
+
+# generate and open the docs
+cd spec && ldoc . && open docs/index.html && cd ..
+```
+
+## Environment variables
+
+When testing, Kong will ignore the `KONG_xxx` environment variables that are
+usually used to configure it. This is to make sure that the tests run deterministically.
+If this behaviour needs to be overridden, the `KONG_TEST_xxx`
+version of the variable can be used, which will be respected by the Kong test
+instance.
+
+To prevent the test helpers from cleaning the Kong working directory, the
+variable `KONG_TEST_DONT_CLEAN` can be set.
+This comes in handy when inspecting the logs after the tests complete.
+
+When testing with Redis, the environment variable `KONG_SPEC_TEST_REDIS_HOST` can be
+used to specify where the Redis server can be found. If not specified, it will default
+to `127.0.0.1`. This setting is available to tests via `helpers.redis_host`.
+
+The configuration file to be used can be set with `KONG_SPEC_TEST_CONF_PATH`. It can be
+accessed via helpers as `helpers.test_conf_path`.
diff --git a/kong-versions/3.8.0/kong/spec/busted-ci-helper.lua b/kong-versions/3.8.0/kong/spec/busted-ci-helper.lua
new file mode 100644
index 00000000..1e9526a8
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/busted-ci-helper.lua
@@ -0,0 +1,71 @@
+-- busted-ci-helper.lua
+
+
+-- needed before requiring 'socket.unix'
+require 'socket'
+
+local busted = require 'busted'
+local cjson = require 'cjson'
+local socket_unix = require 'socket.unix'
+
+local busted_event_path = os.getenv("BUSTED_EVENT_PATH")
+
+-- Function to recursively copy a table, skipping keys associated with functions
+local function copyTable(original, copied, cache, max_depth, current_depth)
+ copied = copied or {}
+ cache = cache or {}
+ max_depth = max_depth or 5
+ current_depth = current_depth or 1
+
+ if cache[original] then return cache[original] end
+ cache[original] = copied
+
+ for key, value in pairs(original) do
+ if type(value) == "table" then
+ if current_depth < max_depth then
+ copied[key] = copyTable(value, {}, cache, max_depth, current_depth + 1)
+ end
+ elseif type(value) == "userdata" then
+ copied[key] = tostring(value)
+ elseif type(value) ~= "function" then
+ copied[key] = value
+ end
+ end
+
+ return copied
+end
+
+if busted_event_path then
+ local sock = assert(socket_unix())
+ assert(sock:connect(busted_event_path))
+
+ local events = {{ 'suite', 'reset' },
+ { 'suite', 'start' },
+ { 'suite', 'end' },
+ { 'file', 'start' },
+ { 'file', 'end' },
+ { 'test', 'start' },
+ { 'test', 'end' },
+ { 'pending' },
+ { 'failure', 'it' },
+ { 'error', 'it' },
+ { 'failure' },
+ { 'error' }}
+ for _, event in ipairs(events) do
+ busted.subscribe(event, function (...)
+ local args = {}
+ for i, original in ipairs{...} do
+ if type(original) == "table" then
+ args[i] = copyTable(original)
+ elseif type(original) == "userdata" then
+ args[i] = tostring(original)
+ elseif type(original) ~= "function" then
+ args[i] = original
+ end
+ end
+
+ sock:send(cjson.encode({ event = event[1] .. (event[2] and ":" .. event[2] or ""), args = args }) .. "\n")
+ return nil, true --continue
+ end)
+ end
+end
diff --git a/kong-versions/3.8.0/kong/spec/config.ld b/kong-versions/3.8.0/kong/spec/config.ld
new file mode 100644
index 00000000..e91166f7
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/config.ld
@@ -0,0 +1,11 @@
+project='Kong test helpers'
+title='Kong test framework'
+description='Test helper functions for Kong (integration) testing'
+format='markdown'
+file={'./helpers.lua','./helpers'}
+dir='docs'
+readme='README.md'
+sort=true
+sort_modules=true
+style='./'
+no_space_before_args=true
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/1.2_custom_nginx.template b/kong-versions/3.8.0/kong/spec/fixtures/1.2_custom_nginx.template
new file mode 100644
index 00000000..2f3851d9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/1.2_custom_nginx.template
@@ -0,0 +1,572 @@
+# This is a custom nginx configuration template for Kong specs
+# This is the Kong 1.2 default template
+
+> if nginx_user then
+user ${{NGINX_USER}};
+> end
+worker_processes ${{NGINX_WORKER_PROCESSES}};
+daemon ${{NGINX_DAEMON}};
+
+pid pids/nginx.pid; # mandatory even for custom config templates
+error_log logs/error.log ${{LOG_LEVEL}};
+
+events {}
+
+http {
+> if #proxy_listeners > 0 or #admin_listeners > 0 then
+ error_log logs/error.log ${{LOG_LEVEL}};
+
+> if nginx_optimizations then
+>-- send_timeout 60s; # default value
+>-- keepalive_timeout 75s; # default value
+>-- client_body_timeout 60s; # default value
+>-- client_header_timeout 60s; # default value
+>-- tcp_nopush on; # disabled until benchmarked
+>-- proxy_buffer_size 128k; # disabled until benchmarked
+>-- proxy_buffers 4 256k; # disabled until benchmarked
+>-- proxy_busy_buffers_size 256k; # disabled until benchmarked
+>-- reset_timedout_connection on; # disabled until benchmarked
+> end
+
+ proxy_ssl_server_name on;
+ underscores_in_headers on;
+
+ lua_package_path '${{LUA_PACKAGE_PATH}};;';
+ lua_package_cpath '${{LUA_PACKAGE_CPATH}};;';
+ lua_socket_pool_size ${{LUA_SOCKET_POOL_SIZE}};
+ lua_max_running_timers 4096;
+ lua_max_pending_timers 16384;
+ lua_shared_dict kong 5m;
+ lua_shared_dict kong_db_cache ${{MEM_CACHE_SIZE}};
+> if database == "off" then
+ lua_shared_dict kong_db_cache_2 ${{MEM_CACHE_SIZE}};
+> end
+ lua_shared_dict kong_db_cache_miss 12m;
+> if database == "off" then
+ lua_shared_dict kong_db_cache_miss_2 12m;
+> end
+ lua_shared_dict kong_secrets 5m;
+ lua_shared_dict kong_locks 8m;
+ lua_shared_dict kong_cluster_events 5m;
+ lua_shared_dict kong_healthchecks 5m;
+ lua_shared_dict kong_rate_limiting_counters 12m;
+ lua_socket_log_errors off;
+> if lua_ssl_trusted_certificate_combined then
+ lua_ssl_trusted_certificate '${{LUA_SSL_TRUSTED_CERTIFICATE_COMBINED}}';
+> end
+ lua_ssl_verify_depth ${{LUA_SSL_VERIFY_DEPTH}};
+
+ lua_shared_dict kong_mock_upstream_loggers 10m;
+
+ # injected nginx_http_* directives
+> for _, el in ipairs(nginx_http_directives) do
+ $(el.name) $(el.value);
+> end
+
+ init_by_lua_block {
+ Kong = require 'kong'
+ Kong.init()
+ }
+
+ init_worker_by_lua_block {
+ Kong.init_worker()
+ }
+
+> if #proxy_listeners > 0 then
+ upstream kong_upstream {
+ server 0.0.0.1;
+ balancer_by_lua_block {
+ Kong.balancer()
+ }
+> if upstream_keepalive and upstream_keepalive > 0 then
+ keepalive ${{UPSTREAM_KEEPALIVE}};
+> end
+ }
+
+ server {
+ server_name kong;
+> for i = 1, #proxy_listeners do
+ listen $(proxy_listeners[i].listener);
+> end
+ error_page 400 404 408 411 412 413 414 417 494 /kong_error_handler;
+ error_page 500 502 503 504 /kong_error_handler;
+
+ access_log logs/access.log;
+
+> if proxy_ssl_enabled then
+> for i = 1, #ssl_cert do
+ ssl_certificate $(ssl_cert[i]);
+ ssl_certificate_key $(ssl_cert_key[i]);
+> end
+ ssl_protocols TLSv1.2 TLSv1.3;
+ ssl_certificate_by_lua_block {
+ Kong.ssl_certificate()
+ }
+> end
+
+ # injected nginx_proxy_* directives
+> for _, el in ipairs(nginx_proxy_directives) do
+ $(el.name) $(el.value);
+> end
+> for i = 1, #trusted_ips do
+ set_real_ip_from $(trusted_ips[i]);
+> end
+
+ location / {
+ default_type '';
+
+ set $ctx_ref '';
+ set $upstream_te '';
+ set $upstream_host '';
+ set $upstream_upgrade '';
+ set $upstream_connection '';
+ set $upstream_scheme '';
+ set $upstream_uri '';
+ set $upstream_x_forwarded_for '';
+ set $upstream_x_forwarded_proto '';
+ set $upstream_x_forwarded_host '';
+ set $upstream_x_forwarded_port '';
+
+ rewrite_by_lua_block {
+ Kong.rewrite()
+ }
+
+ access_by_lua_block {
+ Kong.access()
+ }
+
+ proxy_http_version 1.1;
+ proxy_set_header Host $upstream_host;
+ proxy_set_header Upgrade $upstream_upgrade;
+ proxy_set_header Connection $upstream_connection;
+ proxy_set_header X-Forwarded-For $upstream_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $upstream_x_forwarded_proto;
+ proxy_set_header X-Forwarded-Host $upstream_x_forwarded_host;
+ proxy_set_header X-Forwarded-Port $upstream_x_forwarded_port;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_pass_header Server;
+ proxy_pass_header Date;
+ proxy_ssl_name $upstream_host;
+ proxy_pass $upstream_scheme://kong_upstream$upstream_uri;
+
+ header_filter_by_lua_block {
+ Kong.header_filter()
+ }
+
+ body_filter_by_lua_block {
+ Kong.body_filter()
+ }
+
+ log_by_lua_block {
+ Kong.log()
+ }
+ }
+
+ location = /kong_error_handler {
+ internal;
+ uninitialized_variable_warn off;
+
+ content_by_lua_block {
+ Kong.handle_error()
+ }
+
+ header_filter_by_lua_block {
+ Kong.header_filter()
+ }
+
+ body_filter_by_lua_block {
+ Kong.body_filter()
+ }
+
+ log_by_lua_block {
+ Kong.log()
+ }
+ }
+ }
+> end
+
+> if #admin_listeners > 0 then
+ server {
+ charset UTF-8;
+ server_name kong_admin;
+> for i = 1, #admin_listeners do
+ listen $(admin_listeners[i].listener);
+> end
+
+ access_log logs/admin_access.log;
+
+> if admin_ssl_enabled then
+> for i = 1, #admin_ssl_cert do
+ ssl_certificate $(admin_ssl_cert[i]);
+ ssl_certificate_key $(admin_ssl_cert_key[i]);
+> end
+ ssl_protocols TLSv1.2 TLSv1.3;
+> end
+
+ # injected nginx_admin_* directives
+> for _, el in ipairs(nginx_admin_directives) do
+ $(el.name) $(el.value);
+> end
+
+ location / {
+ default_type application/json;
+ content_by_lua_block {
+ Kong.serve_admin_api()
+ }
+ }
+
+ location /nginx_status {
+ internal;
+ access_log off;
+ stub_status;
+ }
+
+ location /robots.txt {
+ return 200 'User-agent: *\nDisallow: /';
+ }
+ }
+> end
+
+ server {
+ server_name mock_upstream;
+
+ listen 15555;
+ listen 15556 ssl;
+
+> for i = 1, #ssl_cert do
+ ssl_certificate $(ssl_cert[i]);
+ ssl_certificate_key $(ssl_cert_key[i]);
+> end
+ ssl_protocols TLSv1.2 TLSv1.3;
+
+ set_real_ip_from 127.0.0.1;
+
+ location / {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ ngx.status = 404
+ return mu.send_default_json_response()
+ }
+ }
+
+ location = / {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.send_default_json_response({
+ valid_routes = {
+ ["/ws"] = "Websocket echo server",
+ ["/get"] = "Accepts a GET request and returns it in JSON format",
+ ["/xml"] = "Returns a simple XML document",
+ ["/post"] = "Accepts a POST request and returns it in JSON format",
+ ["/response-headers?:key=:val"] = "Returns given response headers",
+ ["/cache/:n"] = "Sets a Cache-Control header for n seconds",
+ ["/anything"] = "Accepts any request and returns it in JSON format",
+ ["/request"] = "Alias to /anything",
+ ["/delay/:duration"] = "Delay the response for seconds",
+ ["/basic-auth/:user/:pass"] = "Performs HTTP basic authentication with the given credentials",
+ ["/status/:code"] = "Returns a response with the specified ",
+ ["/stream/:num"] = "Stream chunks of JSON data via chunked Transfer Encoding",
+ },
+ })
+ }
+ }
+
+ location = /ws {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.serve_web_sockets()
+ }
+ }
+
+ location /get {
+ access_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.filter_access_by_method("GET")
+ }
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.send_default_json_response()
+ }
+ }
+
+ location /xml {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ local xml = [[
+
+
+ Kong, Monolith destroyer.
+
+ ]]
+ return mu.send_text_response(xml, "application/xml")
+ }
+ }
+
+ location /post {
+ access_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.filter_access_by_method("POST")
+ }
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.send_default_json_response()
+ }
+ }
+
+ location = /response-headers {
+ access_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.filter_access_by_method("GET")
+ }
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.send_default_json_response({}, ngx.req.get_uri_args())
+ }
+ }
+
+ location = /hop-by-hop {
+ content_by_lua_block {
+ local header = ngx.header
+ header["Keep-Alive"] = "timeout=5, max=1000"
+ header["Proxy"] = "Remove-Me"
+ header["Proxy-Connection"] = "close"
+ header["Proxy-Authenticate"] = "Basic"
+ header["Proxy-Authorization"] = "Basic YWxhZGRpbjpvcGVuc2VzYW1l"
+ header["Transfer-Encoding"] = "chunked"
+ header["Content-Length"] = nil
+ header["TE"] = "trailers, deflate;q=0.5"
+ header["Trailer"] = "Expires"
+ header["Upgrade"] = "example/1, foo/2"
+
+ ngx.print("hello\r\n\r\nExpires: Wed, 21 Oct 2015 07:28:00 GMT\r\n\r\n")
+ ngx.exit(200)
+ }
+ }
+
+ location ~ "^/cache/(?\d+)$" {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.send_default_json_response({}, {
+ ["Cache-Control"] = "public, max-age=" .. ngx.var.n,
+ })
+ }
+ }
+
+ location ~ "^/basic-auth/(?[a-zA-Z0-9_]+)/(?.+)$" {
+ access_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.filter_access_by_basic_auth(ngx.var.username,
+ ngx.var.password)
+ }
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.send_default_json_response({
+ authenticated = true,
+ user = ngx.var.username,
+ })
+ }
+ }
+
+ location ~ "^/(request|anything)" {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.send_default_json_response()
+ }
+ }
+
+ location ~ "^/delay/(?\d{1,3})$" {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ local delay_seconds = tonumber(ngx.var.delay_seconds)
+ if not delay_seconds then
+ return ngx.exit(ngx.HTTP_NOT_FOUND)
+ end
+
+ ngx.sleep(delay_seconds)
+
+ return mu.send_default_json_response({
+ delay = delay_seconds,
+ })
+ }
+ }
+
+ location ~ "^/status/(?\d{3})$" {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ local code = tonumber(ngx.var.code)
+ if not code then
+ return ngx.exit(ngx.HTTP_NOT_FOUND)
+ end
+ ngx.status = code
+ return mu.send_default_json_response({
+ code = code,
+ })
+ }
+ }
+
+ location ~ "^/stream/(?\d+)$" {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ local rep = tonumber(ngx.var.num)
+ local res = require("cjson").encode(mu.get_default_json_response())
+
+ ngx.header["X-Powered-By"] = "mock_upstream"
+ ngx.header["Content-Type"] = "application/json"
+
+ for i = 1, rep do
+ ngx.say(res)
+ end
+ }
+ }
+
+ location ~ "^/post_log/(?[a-z0-9_]+)$" {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.store_log(ngx.var.logname)
+ }
+ }
+
+ location ~ "^/post_auth_log/(?[a-z0-9_]+)/(?[a-zA-Z0-9_]+)/(?.+)$" {
+ access_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.filter_access_by_basic_auth(ngx.var.username,
+ ngx.var.password)
+ }
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.store_log(ngx.var.logname)
+ }
+ }
+
+ location ~ "^/read_log/(?[a-z0-9_]+)$" {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.retrieve_log(ngx.var.logname)
+ }
+ }
+
+ location ~ "^/count_log/(?[a-z0-9_]+)$" {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.count_log(ngx.var.logname)
+ }
+ }
+
+ location ~ "^/reset_log/(?[a-z0-9_]+)$" {
+ content_by_lua_block {
+ local mu = require "spec.fixtures.mock_upstream"
+ return mu.reset_log(ngx.var.logname)
+ }
+ }
+ }
+
+ include '*.http_mock';
+
+> end
+}
+
+> if #stream_listeners > 0 then
+stream {
+ log_format basic '$remote_addr [$time_local] '
+ '$protocol $status $bytes_sent $bytes_received '
+ '$session_time';
+
+ lua_package_path '${{LUA_PACKAGE_PATH}};;';
+ lua_package_cpath '${{LUA_PACKAGE_CPATH}};;';
+ lua_shared_dict stream_kong 5m;
+ lua_shared_dict stream_kong_db_cache ${{MEM_CACHE_SIZE}};
+> if database == "off" then
+ lua_shared_dict stream_kong_db_cache_2 ${{MEM_CACHE_SIZE}};
+> end
+ lua_shared_dict stream_kong_db_cache_miss 12m;
+> if database == "off" then
+ lua_shared_dict stream_kong_db_cache_miss_2 12m;
+> end
+ lua_shared_dict stream_kong_locks 8m;
+ lua_shared_dict stream_kong_cluster_events 5m;
+ lua_shared_dict stream_kong_healthchecks 5m;
+ lua_shared_dict stream_kong_rate_limiting_counters 12m;
+ lua_shared_dict stream_prometheus_metrics 5m;
+
+ # injected nginx_stream_* directives
+> for _, el in ipairs(nginx_stream_directives) do
+ $(el.name) $(el.value);
+> end
+
+ init_by_lua_block {
+ -- shared dictionaries conflict between stream/http modules. use a prefix.
+ local shared = ngx.shared
+ ngx.shared = setmetatable({}, {
+ __index = function(t, k)
+ return shared["stream_"..k]
+ end,
+ })
+
+ Kong = require 'kong'
+ Kong.init()
+ }
+
+ init_worker_by_lua_block {
+ Kong.init_worker()
+ }
+
+ upstream kong_upstream {
+ server 0.0.0.1:1;
+ balancer_by_lua_block {
+ Kong.balancer()
+ }
+ }
+
+ server {
+> for i = 1, #stream_listeners do
+ listen $(stream_listeners[i].listener);
+> end
+
+ access_log logs/access.log basic;
+ error_log logs/error.log debug;
+
+> for i = 1, #trusted_ips do
+ set_real_ip_from $(trusted_ips[i]);
+> end
+
+ # injected nginx_sproxy_* directives
+> for _, el in ipairs(nginx_sproxy_directives) do
+ $(el.name) $(el.value);
+> end
+
+> if ssl_preread_enabled then
+ ssl_preread on;
+> end
+
+ preread_by_lua_block {
+ Kong.preread()
+ }
+
+ proxy_pass kong_upstream;
+
+ log_by_lua_block {
+ Kong.log()
+ }
+ }
+
+ server {
+ listen 15557;
+ listen 15558 ssl;
+
+> for i = 1, #ssl_cert do
+ ssl_certificate $(ssl_cert[i]);
+ ssl_certificate_key $(ssl_cert_key[i]);
+> end
+ ssl_protocols TLSv1.2;
+
+ content_by_lua_block {
+ local sock = assert(ngx.req.socket(true))
+ local data = sock:receive() -- read a line from downstream
+ ngx.say(data) -- echo whatever was sent
+ }
+ }
+
+ include '*.stream_mock';
+
+}
+> end
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/admin_api.lua b/kong-versions/3.8.0/kong/spec/fixtures/admin_api.lua
new file mode 100644
index 00000000..948fcb87
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/admin_api.lua
@@ -0,0 +1,93 @@
+local blueprints = require "spec.fixtures.blueprints"
+local helpers = require "spec.helpers"
+local cjson = require "cjson"
+
+
+local function api_send(method, path, body, forced_port)
+ local api_client = helpers.admin_client(nil, forced_port)
+ local res, err = api_client:send({
+ method = method,
+ path = path,
+ headers = {
+ ["Content-Type"] = "application/json"
+ },
+ body = body,
+ })
+ if not res then
+ api_client:close()
+ return nil, err
+ end
+
+ if res.status == 204 then
+ api_client:close()
+ return nil
+ end
+
+ local resbody = res:read_body()
+ api_client:close()
+ if res.status < 300 then
+ return cjson.decode(resbody)
+ end
+
+ return nil, "Error " .. tostring(res.status) .. ": " .. resbody
+end
+
+
+local admin_api_as_db = {}
+
+for name, dao in pairs(helpers.db.daos) do
+ local admin_api_name = dao.schema.admin_api_name or name
+ admin_api_as_db[name] = {
+ insert = function(_, tbl)
+ return api_send("POST", "/" .. admin_api_name, tbl)
+ end,
+ remove = function(_, tbl)
+ return api_send("DELETE", "/" .. admin_api_name .. "/" .. tbl.id)
+ end,
+ update = function(_, id, tbl)
+ return api_send("PATCH", "/" .. admin_api_name .. "/" .. id, tbl)
+ end,
+ truncate = function()
+ repeat
+ local res = api_send("GET", "/" .. admin_api_name)
+ assert(type(res) == "table" and type(res.data) == "table")
+ for _, entity in ipairs(res.data) do
+ local _, err = admin_api_as_db[name]:remove(entity)
+ if err then
+ return nil, err
+ end
+ end
+ until #res.data == 0
+
+ return true
+ end,
+ }
+end
+
+
+admin_api_as_db["basicauth_credentials"] = {
+ insert = function(_, tbl)
+ return api_send("POST", "/consumers/" .. tbl.consumer.id .. "/basic-auth", tbl)
+ end,
+ remove = function(_, tbl)
+ return api_send("DELETE", "/consumers/" .. tbl.consumer.id .. "/basic-auth/" .. tbl.id)
+ end,
+ update = function(_, id, tbl)
+ return api_send("PATCH", "/consumers/" .. tbl.consumer.id .. "/basic-auth/" .. id, tbl)
+ end,
+}
+
+admin_api_as_db["targets"] = {
+ insert = function(_, tbl)
+ return api_send("POST", "/upstreams/" .. tbl.upstream.id .. "/targets", tbl)
+ end,
+ remove = function(_, tbl)
+ return api_send("DELETE", "/upstreams/" .. tbl.upstream.id .. "/targets/" .. tbl.id)
+ end,
+ update = function(_, id, tbl)
+ return api_send("PATCH", "/upstreams/" .. tbl.upstream.id .. "/targets/" .. id, tbl)
+ end,
+}
+
+
+return blueprints.new(admin_api_as_db)
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/bad_request.json
new file mode 100644
index 00000000..99c40c7b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/bad_request.json
@@ -0,0 +1,12 @@
+{
+ "segassem":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ]
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good-stream.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good-stream.json
new file mode 100644
index 00000000..c05edd15
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good-stream.json
@@ -0,0 +1,13 @@
+{
+ "messages": [
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ],
+ "stream": true
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good.json
new file mode 100644
index 00000000..4cc10281
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good.json
@@ -0,0 +1,12 @@
+{
+ "messages":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good_own_model.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good_own_model.json
new file mode 100644
index 00000000..9c27eaa1
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/requests/good_own_model.json
@@ -0,0 +1,13 @@
+{
+ "messages":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ],
+ "model": "try-to-override-the-model"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/bad_request.json
new file mode 100644
index 00000000..e4d33de0
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/bad_request.json
@@ -0,0 +1,6 @@
+{
+ "error": {
+ "type": "invalid_request_error",
+ "message": "Invalid request"
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/bad_upstream_response.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/bad_upstream_response.json
new file mode 100644
index 00000000..3bf212bd
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/bad_upstream_response.json
@@ -0,0 +1,10 @@
+{
+ "nothing_object": {
+ "not_interesting_tag_names": "bad string",
+ "and_an_array": [
+ "because",
+ "why",
+ "not"
+ ]
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/good.json
new file mode 100644
index 00000000..174220a4
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/good.json
@@ -0,0 +1,15 @@
+{
+ "content": [
+ {
+ "text": "The sum of 1 + 1 is 2.",
+ "type": "text"
+ }
+ ],
+ "model": "claude-2.1",
+ "stop_reason": "end_turn",
+ "stop_sequence": "string",
+ "usage": {
+ "input_tokens": 0,
+ "output_tokens": 0
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/internal_server_error.html b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/internal_server_error.html
new file mode 100644
index 00000000..4b37ec9f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/internal_server_error.html
@@ -0,0 +1,11 @@
+
+
+
+ Fake Internal Server Error
+
+
+
+ This is a fake Internal Server Error
+ It has come from your Mock AI server.
+
+
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/malformed_usage_response.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/malformed_usage_response.json
new file mode 100644
index 00000000..0a8ec4da
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/malformed_usage_response.json
@@ -0,0 +1,15 @@
+{
+ "content": [
+ {
+ "text": "The sum of 1 + 1 is 2.",
+ "type": "text"
+ }
+ ],
+ "model": "claude-2.1",
+ "stop_reason": "end_turn",
+ "stop_sequence": "string",
+ "usage": {
+ "foo": 0,
+ "bar": 0
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/no_usage_response.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/no_usage_response.json
new file mode 100644
index 00000000..6f10d884
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/no_usage_response.json
@@ -0,0 +1,11 @@
+{
+ "content": [
+ {
+ "text": "The sum of 1 + 1 is 2.",
+ "type": "text"
+ }
+ ],
+ "model": "claude-2.1",
+ "stop_reason": "end_turn",
+ "stop_sequence": "string"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/unauthorized.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/unauthorized.json
new file mode 100644
index 00000000..a3f286ac
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-chat/responses/unauthorized.json
@@ -0,0 +1,6 @@
+{
+ "error": {
+ "type": "authentication_error",
+ "message": "Invalid API Key"
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/requests/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/requests/bad_request.json
new file mode 100644
index 00000000..795ead50
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/requests/bad_request.json
@@ -0,0 +1,3 @@
+{
+ "tpmorp": "bad prompt?"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/requests/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/requests/good.json
new file mode 100644
index 00000000..d66bba88
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/requests/good.json
@@ -0,0 +1,3 @@
+{
+ "prompt": "What are you?"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/bad_request.json
new file mode 100644
index 00000000..e4d33de0
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/bad_request.json
@@ -0,0 +1,6 @@
+{
+ "error": {
+ "type": "invalid_request_error",
+ "message": "Invalid request"
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/good.json
new file mode 100644
index 00000000..6214582e
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/good.json
@@ -0,0 +1,5 @@
+{
+ "completion": " Hello! My name is Claude.",
+ "stop_reason": "stop_sequence",
+ "model": "claude-2.1"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/unauthorized.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/unauthorized.json
new file mode 100644
index 00000000..a3f286ac
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/llm-v1-completions/responses/unauthorized.json
@@ -0,0 +1,6 @@
+{
+ "error": {
+ "type": "authentication_error",
+ "message": "Invalid API Key"
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/request-transformer/response-in-json.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/request-transformer/response-in-json.json
new file mode 100644
index 00000000..963e77d6
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/anthropic/request-transformer/response-in-json.json
@@ -0,0 +1,18 @@
+{
+ "content": [
+ {
+ "text": "{\n \"persons\": [\n {\n \"name\": \"Kong A\",\n \"age\": 62\n },\n {\n \"name\": \"Kong B\",\n \"age\": 84\n }\n ]\n }\n",
+ "type": "text"
+ }
+ ],
+ "id": "msg_013Zva2CMHLNnXjNJJKqJ2EF",
+ "model": "claude-2.1",
+ "role": "assistant",
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "type": "message",
+ "usage": {
+ "input_tokens": 10,
+ "output_tokens": 25
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/azure/request-transformer/response-in-json.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/azure/request-transformer/response-in-json.json
new file mode 100644
index 00000000..cc8f792c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/azure/request-transformer/response-in-json.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": " {\n \"persons\": [\n {\n \"name\": \"Kong A\",\n \"age\": 62\n },\n {\n \"name\": \"Kong B\",\n \"age\": 84\n }\n ]\n }\n",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1701947430,
+ "id": "chatcmpl-8T6YwgvjQVVnGbJ2w8hpOA17SeNy2",
+ "model": "gpt-3.5-turbo-0613",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 12,
+ "prompt_tokens": 25,
+ "total_tokens": 37
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/bad_request.json
new file mode 100644
index 00000000..99c40c7b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/bad_request.json
@@ -0,0 +1,12 @@
+{
+ "segassem":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ]
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good-stream.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good-stream.json
new file mode 100644
index 00000000..c05edd15
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good-stream.json
@@ -0,0 +1,13 @@
+{
+ "messages": [
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ],
+ "stream": true
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good.json
new file mode 100644
index 00000000..4cc10281
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good.json
@@ -0,0 +1,12 @@
+{
+ "messages":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good_own_model.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good_own_model.json
new file mode 100644
index 00000000..9c27eaa1
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/requests/good_own_model.json
@@ -0,0 +1,13 @@
+{
+ "messages":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ],
+ "model": "try-to-override-the-model"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/bad_request.json
new file mode 100644
index 00000000..e0894287
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/bad_request.json
@@ -0,0 +1,3 @@
+{
+ "message": "bad request"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/bad_upstream_response.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/bad_upstream_response.json
new file mode 100644
index 00000000..3bf212bd
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/bad_upstream_response.json
@@ -0,0 +1,10 @@
+{
+ "nothing_object": {
+ "not_interesting_tag_names": "bad string",
+ "and_an_array": [
+ "because",
+ "why",
+ "not"
+ ]
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/good.json
new file mode 100644
index 00000000..02dc99ab
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/good.json
@@ -0,0 +1,19 @@
+{
+ "text": "The sum of 1 + 1 is 2.",
+ "generation_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
+ "token_count": {
+ "billed_tokens": 339,
+ "prompt_tokens": 102,
+ "response_tokens": 258,
+ "total_tokens": 360
+ },
+ "meta": {
+ "api_version": {
+ "version": "1"
+ },
+ "billed_units": {
+ "input_tokens": 81,
+ "output_tokens": 258
+ }
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/internal_server_error.html b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/internal_server_error.html
new file mode 100644
index 00000000..4b37ec9f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/internal_server_error.html
@@ -0,0 +1,11 @@
+
+
+
+ Fake Internal Server Error
+
+
+
+ This is a fake Internal Server Error
+ It has come from your Mock AI server.
+
+
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/unauthorized.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/unauthorized.json
new file mode 100644
index 00000000..a27b4297
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-chat/responses/unauthorized.json
@@ -0,0 +1,3 @@
+{
+ "message": "invalid api token"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/requests/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/requests/bad_request.json
new file mode 100644
index 00000000..795ead50
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/requests/bad_request.json
@@ -0,0 +1,3 @@
+{
+ "tpmorp": "bad prompt?"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/requests/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/requests/good.json
new file mode 100644
index 00000000..d66bba88
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/requests/good.json
@@ -0,0 +1,3 @@
+{
+ "prompt": "What are you?"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/bad_request.json
new file mode 100644
index 00000000..e4d33de0
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/bad_request.json
@@ -0,0 +1,6 @@
+{
+ "error": {
+ "type": "invalid_request_error",
+ "message": "Invalid request"
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/good.json
new file mode 100644
index 00000000..f0dbde41
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/good.json
@@ -0,0 +1,34 @@
+{
+ "id": "string",
+ "prompt": "string",
+ "generations": [
+ {
+ "id": "123",
+ "text": "1 + 1 is 2.",
+ "index": 0,
+ "likelihood": 0,
+ "token_likelihoods": [
+ {
+ "token": "string",
+ "likelihood": 1.0
+ }
+ ]
+ }
+ ],
+ "meta": {
+ "api_version": {
+ "version": "string",
+ "is_deprecated": true,
+ "is_experimental": true
+ },
+ "billed_units": {
+ "input_tokens": 0,
+ "output_tokens": 0,
+ "search_units": 0,
+ "classifications": 0
+ },
+ "warnings": [
+ "string"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/unauthorized.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/unauthorized.json
new file mode 100644
index 00000000..a27b4297
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/llm-v1-completions/responses/unauthorized.json
@@ -0,0 +1,3 @@
+{
+ "message": "invalid api token"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/request-transformer/response-in-json.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/request-transformer/response-in-json.json
new file mode 100644
index 00000000..beda83d6
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/cohere/request-transformer/response-in-json.json
@@ -0,0 +1,19 @@
+{
+ "text": "{\n \"persons\": [\n {\n \"name\": \"Kong A\",\n \"age\": 62\n },\n {\n \"name\": \"Kong B\",\n \"age\": 84\n }\n ]\n }\n",
+ "generation_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
+ "token_count": {
+ "billed_tokens": 339,
+ "prompt_tokens": 102,
+ "response_tokens": 258,
+ "total_tokens": 360
+ },
+ "meta": {
+ "api_version": {
+ "version": "1"
+ },
+ "billed_units": {
+ "input_tokens": 81,
+ "output_tokens": 258
+ }
+ }
+ }
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/json-schema.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/json-schema.json
new file mode 100644
index 00000000..ff255e86
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/json-schema.json
@@ -0,0 +1,65 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "oneOf": [
+ {
+ "$ref": "#/definitions/llm-v1-completions"
+ },
+ {
+ "$ref": "#/definitions/llm-v1-chat"
+ }
+ ],
+ "definitions": {
+ "llm-v1-completions": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "prompt": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "title": "llm-v1-completions"
+ },
+ "llm-v1-chat": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "messages": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/message"
+ }
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "messages"
+ ],
+ "title": "llm-v1-chat"
+ },
+ "message": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "role": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "content",
+ "role"
+ ],
+ "title": "message"
+ }
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/ollama/chat-stream.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/ollama/chat-stream.json
new file mode 100644
index 00000000..790bb707
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/ollama/chat-stream.json
@@ -0,0 +1,13 @@
+{
+ "messages":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ],
+ "stream": true
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/requests/good-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/requests/good-chat.json
new file mode 100644
index 00000000..9942f41c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/requests/good-chat.json
@@ -0,0 +1,20 @@
+{
+ "messages":[
+ {
+ "role": "system",
+ "content": "You are a video game knowledgebase."
+ },
+ {
+ "role": "user",
+ "content": "What is Missingno.?"
+ },
+ {
+ "role": "system",
+ "content": "Missingno. is a weird character from a popular game."
+ },
+ {
+ "role": "user",
+ "content": "Why is it popular?"
+ }
+ ]
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/requests/good-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/requests/good-completions.json
new file mode 100644
index 00000000..286c7137
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/requests/good-completions.json
@@ -0,0 +1,3 @@
+{
+ "prompt": "What is Missingno.?"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/bad_request.json
new file mode 100644
index 00000000..6035fef9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/bad_request.json
@@ -0,0 +1,3 @@
+{
+ "error": "some error"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/good.json
new file mode 100644
index 00000000..a94180dc
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/good.json
@@ -0,0 +1,7 @@
+{
+ "data": [
+ {
+ "generated_text": "[INST]\nWhat is Sans? ?\n[/INST]\n\nIs a well known font."
+ }
+ ]
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/unauthorized.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/unauthorized.json
new file mode 100644
index 00000000..5471f480
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/raw/responses/unauthorized.json
@@ -0,0 +1,3 @@
+{
+ "error": "Model requires a Pro subscription."
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/request-transformer/response-in-json.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/request-transformer/response-in-json.json
new file mode 100644
index 00000000..7a433236
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/llama2/request-transformer/response-in-json.json
@@ -0,0 +1,7 @@
+{
+ "data": [
+ {
+ "generated_text": "[INST]\nWhat is Sans? ?\n[/INST]\n\n{\n \"persons\": [\n {\n \"name\": \"Kong A\",\n \"age\": 62\n },\n {\n \"name\": \"Kong B\",\n \"age\": 84\n }\n ]\n }\n"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/llm-v1-chat/responses/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/llm-v1-chat/responses/good.json
new file mode 100644
index 00000000..755abcf0
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/llm-v1-chat/responses/good.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "The sum of 1 + 1 is 2.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1701947430,
+ "id": "chatcmpl-8T6YwgvjQVVnGbJ2w8hpOA17SeNy2",
+ "model": "mistralai/Mistral-7B-Instruct-v0.1-instruct",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 12,
+ "prompt_tokens": 25,
+ "total_tokens": 37
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/llm-v1-completions/responses/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/llm-v1-completions/responses/good.json
new file mode 100644
index 00000000..c2248445
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/llm-v1-completions/responses/good.json
@@ -0,0 +1,19 @@
+{
+ "choices": [
+ {
+ "finish_reason": "length",
+ "index": 0,
+ "logprobs": null,
+ "text": "\n\nI am a language model AI created by OpenAI. I can answer questions"
+ }
+ ],
+ "created": 1701967000,
+ "id": "cmpl-8TBeaJVQIhE9kHEJbk1RnKzgFxIqN",
+ "model": "mistralai/Mistral-7B-Instruct-v0.1-instruct",
+ "object": "text_completion",
+ "usage": {
+ "completion_tokens": 16,
+ "prompt_tokens": 4,
+ "total_tokens": 20
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/request-transformer/response-in-json.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/request-transformer/response-in-json.json
new file mode 100644
index 00000000..754883eb
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/mistral/request-transformer/response-in-json.json
@@ -0,0 +1,16 @@
+{
+ "model": "mistral-tiny",
+ "created_at": "2024-01-15T08:13:38.876196Z",
+ "message": {
+ "role": "assistant",
+ "content": " {\n \"persons\": [\n {\n \"name\": \"Kong A\",\n \"age\": 62\n },\n {\n \"name\": \"Kong B\",\n \"age\": 84\n }\n ]\n }\n"
+ },
+ "done": true,
+ "total_duration": 4062418334,
+ "load_duration": 1229365792,
+ "prompt_eval_count": 26,
+ "prompt_eval_duration": 167969000,
+ "eval_count": 100,
+ "eval_duration": 2658646000
+ }
+
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/oas.yaml b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/oas.yaml
new file mode 100644
index 00000000..a020b440
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/oas.yaml
@@ -0,0 +1,207 @@
+openapi: 3.0.1
+info:
+ title: AI-Proxy Plugin Schema
+ description: AI-Proxy Plugin objects (and samples) for Kong Gateway LLM integration.
+ version: 0.0.1
+servers:
+- url: 'https://localhost:9000'
+ description: Null Service for AI-Proxy
+tags:
+- name: llm
+ description: LLM Methods
+paths:
+ /{provider}/completions:
+ post:
+ tags:
+ - llm
+ summary: Provider Completions
+ operationId: provider-prompt-completions
+ description: Provider Prompt Completions
+ parameters:
+ - name: provider
+ in: path
+ required: true
+ schema:
+ type: string
+ requestBody:
+ description: Specific Kong-Conforming Post Body
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Prompt'
+ required: true
+ responses:
+ '200':
+ description: successful operation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PromptResponse'
+ /{provider}}/chat:
+ post:
+ tags:
+ - llm
+ summary: Provider Chat
+ operationId: provider-chat
+ description: Provider Chat
+ parameters:
+ - name: provider
+ in: path
+ required: true
+ schema:
+ type: string
+ requestBody:
+ description: Specific Kong-Conforming Post Body
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Chat'
+ required: true
+ responses:
+ '200':
+ description: successful operation
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ChatResponse'
+
+components:
+ schemas:
+ Prompt:
+ required:
+ - prompt
+ type: object
+ description: 'Single-line prompt, sets up the entire question or completion prefix'
+ properties:
+ prompt:
+ type: string
+ Chat:
+ required:
+ - messages
+ type: object
+ description: 'Array of messages, or single-line template reference string'
+ properties:
+ messages:
+ anyOf:
+ - type: array
+ description: 'Array of role/content style chat messages'
+ minLength: 1
+ items:
+ $ref: '#/components/schemas/Message'
+ - type: string
+ description: 'Template reference, in the form {template://name}'
+ Message:
+ required:
+ - role
+ - content
+ type: object
+ description: 'Single chat message block'
+ properties:
+ role:
+ type: string
+ enum:
+ - "system"
+ - "user"
+ - "assistant"
+ content:
+ type: string
+ PromptResponse:
+ required:
+ - prompt
+ type: object
+ properties:
+ choices:
+ type: array
+ items:
+ type: object
+ properties:
+ finish_reason:
+ type: string
+ index:
+ type: integer
+ logprobs:
+ type: number
+ format: float
+ text:
+ type: string
+ required:
+ - finish_reason
+ - index
+ - logprobs
+ - text
+ created:
+ type: integer
+ id:
+ type: string
+ model:
+ type: string
+ object:
+ type: string
+ usage:
+ type: object
+ properties:
+ completion_tokens:
+ type: integer
+ prompt_tokens:
+ type: integer
+ total_tokens:
+ type: integer
+
+ ChatResponse:
+ required:
+ - messages
+ type: object
+ description: 'OpenAI-style chat response'
+
+ properties:
+ choices:
+ type: array
+ items:
+ type: object
+ properties:
+ finish_reason:
+ type: string
+ index:
+ type: integer
+ logprobs:
+ type: number
+ format: float
+ message:
+ type: object
+ properties:
+ content:
+ type: string
+ role:
+ type: string
+ required:
+ - content
+ - role
+ required:
+ - finish_reason
+ - index
+ - logprobs
+ - message
+ created:
+ type: integer
+ id:
+ type: string
+ model:
+ type: string
+ object:
+ type: string
+ system_fingerprint:
+ type: number
+ format: float
+ usage:
+ type: object
+ properties:
+ completion_tokens:
+ type: integer
+ prompt_tokens:
+ type: integer
+ total_tokens:
+ type: integer
+ required:
+ - completion_tokens
+ - prompt_tokens
+ - total_tokens
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/bad_request.json
new file mode 100644
index 00000000..99c40c7b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/bad_request.json
@@ -0,0 +1,12 @@
+{
+ "segassem":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ]
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good-stream.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good-stream.json
new file mode 100644
index 00000000..790bb707
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good-stream.json
@@ -0,0 +1,13 @@
+{
+ "messages":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ],
+ "stream": true
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good.json
new file mode 100644
index 00000000..5d32fa0a
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good.json
@@ -0,0 +1,13 @@
+{
+ "messages":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ],
+ "stream": false
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good_multi_modal.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good_multi_modal.json
new file mode 100644
index 00000000..2c1cf94d
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good_multi_modal.json
@@ -0,0 +1,24 @@
+{
+ "messages": [
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": [
+ {
+ "type": "text",
+ "text": "What's in this image?"
+ },
+ {
+ "type": "image_url",
+ "image_url": {
+ "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
+ }
+ }
+ ]
+ }
+ ],
+ "stream": false
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good_own_model.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good_own_model.json
new file mode 100644
index 00000000..e72de3c7
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/requests/good_own_model.json
@@ -0,0 +1,14 @@
+{
+ "messages":[
+ {
+ "role": "system",
+ "content": "You are a helpful assistant."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 1?"
+ }
+ ],
+ "model": "try-to-override-the-model",
+ "stream": false
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/bad_request.json
new file mode 100644
index 00000000..69b494a9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/bad_request.json
@@ -0,0 +1,8 @@
+{
+ "error": {
+ "code": null,
+ "message": "'messages' is a required property",
+ "param": null,
+ "type": "invalid_request_error"
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/bad_upstream_response.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/bad_upstream_response.json
new file mode 100644
index 00000000..3bf212bd
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/bad_upstream_response.json
@@ -0,0 +1,10 @@
+{
+ "nothing_object": {
+ "not_interesting_tag_names": "bad string",
+ "and_an_array": [
+ "because",
+ "why",
+ "not"
+ ]
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/good.json
new file mode 100644
index 00000000..8a3b0ab3
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/good.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "The sum of 1 + 1 is 2.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1701947430,
+ "id": "chatcmpl-8T6YwgvjQVVnGbJ2w8hpOA17SeNy2",
+ "model": "gpt-3.5-turbo-0613",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 12,
+ "prompt_tokens": 25,
+ "total_tokens": 37
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/internal_server_error.html b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/internal_server_error.html
new file mode 100644
index 00000000..4b37ec9f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/internal_server_error.html
@@ -0,0 +1,11 @@
+
+
+
+ Fake Internal Server Error
+
+
+
+ This is a fake Internal Server Error
+ It has come from your Mock AI server.
+
+
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/unauthorized.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/unauthorized.json
new file mode 100644
index 00000000..28908ba2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-chat/responses/unauthorized.json
@@ -0,0 +1,8 @@
+{
+ "error": {
+ "code": "invalid_api_key",
+ "message": "Incorrect API key provided: wro****ey. You can find your API key at https://platform.openai.com/account/api-keys.",
+ "param": null,
+ "type": "invalid_request_error"
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/requests/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/requests/bad_request.json
new file mode 100644
index 00000000..795ead50
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/requests/bad_request.json
@@ -0,0 +1,3 @@
+{
+ "tpmorp": "bad prompt?"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/requests/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/requests/good.json
new file mode 100644
index 00000000..d66bba88
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/requests/good.json
@@ -0,0 +1,3 @@
+{
+ "prompt": "What are you?"
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/bad_request.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/bad_request.json
new file mode 100644
index 00000000..def62036
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/bad_request.json
@@ -0,0 +1,8 @@
+{
+ "error": {
+ "code": null,
+ "message": "you must provide a 'prompt' parameter",
+ "param": null,
+ "type": "invalid_request_error"
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/good.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/good.json
new file mode 100644
index 00000000..8c357cd0
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/good.json
@@ -0,0 +1,19 @@
+{
+ "choices": [
+ {
+ "finish_reason": "length",
+ "index": 0,
+ "logprobs": null,
+ "text": "\n\nI am a language model AI created by OpenAI. I can answer questions"
+ }
+ ],
+ "created": 1701967000,
+ "id": "cmpl-8TBeaJVQIhE9kHEJbk1RnKzgFxIqN",
+ "model": "gpt-3.5-turbo-instruct",
+ "object": "text_completion",
+ "usage": {
+ "completion_tokens": 16,
+ "prompt_tokens": 4,
+ "total_tokens": 20
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/unauthorized.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/unauthorized.json
new file mode 100644
index 00000000..28908ba2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/llm-v1-completions/responses/unauthorized.json
@@ -0,0 +1,8 @@
+{
+ "error": {
+ "code": "invalid_api_key",
+ "message": "Incorrect API key provided: wro****ey. You can find your API key at https://platform.openai.com/account/api-keys.",
+ "param": null,
+ "type": "invalid_request_error"
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-in-json.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-in-json.json
new file mode 100644
index 00000000..cc8f792c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-in-json.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": " {\n \"persons\": [\n {\n \"name\": \"Kong A\",\n \"age\": 62\n },\n {\n \"name\": \"Kong B\",\n \"age\": 84\n }\n ]\n }\n",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1701947430,
+ "id": "chatcmpl-8T6YwgvjQVVnGbJ2w8hpOA17SeNy2",
+ "model": "gpt-3.5-turbo-0613",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 12,
+ "prompt_tokens": 25,
+ "total_tokens": 37
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-not-json.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-not-json.json
new file mode 100644
index 00000000..35c96e72
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-not-json.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "Sure! Here is your JSON: {\n \"persons\": [\n {\n \"name\": \"Kong A\",\n \"age\": 62\n },\n {\n \"name\": \"Kong B\",\n \"age\": 84\n }\n ]\n }.\n Can I do anything else for you?",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1701947430,
+ "id": "chatcmpl-8T6YwgvjQVVnGbJ2w8hpOA17SeNy2",
+ "model": "gpt-3.5-turbo-0613",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 12,
+ "prompt_tokens": 25,
+ "total_tokens": 37
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-with-bad-instructions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-with-bad-instructions.json
new file mode 100644
index 00000000..b2f10834
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-with-bad-instructions.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "Sure! Here's your response: {\n \"status\": 209,\n \"headers\": {\n \"content-type\": \"application/xml\"\n },\n \"body\": \"\n \n Kong A\n 62\n \n \n Kong B\n 84\n \n\"\n}.\nCan I help with anything else?",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1701947430,
+ "id": "chatcmpl-8T6YwgvjQVVnGbJ2w8hpOA17SeNy2",
+ "model": "gpt-3.5-turbo-0613",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 12,
+ "prompt_tokens": 25,
+ "total_tokens": 37
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-with-instructions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-with-instructions.json
new file mode 100644
index 00000000..29445e6a
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/openai/request-transformer/response-with-instructions.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "{\n \"status\": 209,\n \"headers\": {\n \"content-type\": \"application/xml\"\n },\n \"body\": \"\n \n Kong A\n 62\n \n \n Kong B\n 84\n \n\"\n}\n",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1701947430,
+ "id": "chatcmpl-8T6YwgvjQVVnGbJ2w8hpOA17SeNy2",
+ "model": "gpt-3.5-turbo-0613",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 12,
+ "prompt_tokens": 25,
+ "total_tokens": 37
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/anthropic/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/anthropic/llm-v1-chat.json
new file mode 100644
index 00000000..00756b59
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/anthropic/llm-v1-chat.json
@@ -0,0 +1,29 @@
+{
+ "model": "claude-2.1",
+ "messages": [
+ {
+ "role": "user",
+ "content": "What is 1 + 2?"
+ },
+ {
+ "role": "assistant",
+ "content": "The sum of 1 + 2 is 3. If you have any more math questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Multiply that by 2"
+ },
+ {
+ "role": "assistant",
+ "content": "Certainly! If you multiply 3 by 2, the result is 6. If you have any more questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Why can't you divide by zero?"
+ }
+ ],
+ "system": "You are a mathematician.",
+ "max_tokens": 512,
+ "temperature": 0.5,
+ "stream": false
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/anthropic/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/anthropic/llm-v1-completions.json
new file mode 100644
index 00000000..7af2711f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/anthropic/llm-v1-completions.json
@@ -0,0 +1,7 @@
+{
+ "model": "claude-2.1",
+ "prompt": "Human: Explain why you can't divide by zero?\n\nAssistant:",
+ "max_tokens_to_sample": 512,
+ "temperature": 0.5,
+ "stream": false
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/azure/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/azure/llm-v1-chat.json
new file mode 100644
index 00000000..5a9c2d9e
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/azure/llm-v1-chat.json
@@ -0,0 +1,33 @@
+{
+ "messages": [
+ {
+ "role": "system",
+ "content": "You are a mathematician."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 2?"
+ },
+ {
+ "role": "assistant",
+ "content": "The sum of 1 + 2 is 3. If you have any more math questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Multiply that by 2"
+ },
+ {
+ "role": "assistant",
+ "content": "Certainly! If you multiply 3 by 2, the result is 6. If you have any more questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Why can't you divide by zero?"
+ }
+ ],
+ "model": "gpt-4",
+ "max_tokens": 512,
+ "temperature": 0.5,
+ "stream": false,
+ "top_p": 1.0
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/azure/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/azure/llm-v1-completions.json
new file mode 100644
index 00000000..31c90e2b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/azure/llm-v1-completions.json
@@ -0,0 +1,8 @@
+{
+ "prompt": "Explain why you can't divide by zero?",
+ "model": "gpt-3.5-turbo-instruct",
+ "max_tokens": 512,
+ "temperature": 0.5,
+ "stream": false,
+ "top_p": 1
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/bedrock/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/bedrock/llm-v1-chat.json
new file mode 100644
index 00000000..ad68f6b2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/bedrock/llm-v1-chat.json
@@ -0,0 +1,55 @@
+{
+ "system": [
+ {
+ "text": "You are a mathematician."
+ }
+ ],
+ "messages": [
+ {
+ "content": [
+ {
+ "text": "What is 1 + 2?"
+ }
+ ],
+ "role": "user"
+ },
+ {
+ "content": [
+ {
+ "text": "The sum of 1 + 2 is 3. If you have any more math questions or if there's anything else I can help you with, feel free to ask!"
+ }
+ ],
+ "role": "assistant"
+ },
+ {
+ "content": [
+ {
+ "text": "Multiply that by 2"
+ }
+ ],
+ "role": "user"
+ },
+ {
+ "content": [
+ {
+ "text": "Certainly! If you multiply 3 by 2, the result is 6. If you have any more questions or if there's anything else I can help you with, feel free to ask!"
+ }
+ ],
+ "role": "assistant"
+ },
+ {
+ "content": [
+ {
+ "text": "Why can't you divide by zero?"
+ }
+ ],
+ "role": "user"
+ }
+ ],
+ "inferenceConfig": {
+ "maxTokens": 8192,
+ "temperature": 0.8,
+ "topP": 0.6
+ },
+ "anthropic_version": "bedrock-2023-05-31"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/cohere/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/cohere/llm-v1-chat.json
new file mode 100644
index 00000000..46ae6562
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/cohere/llm-v1-chat.json
@@ -0,0 +1,15 @@
+{
+ "chat_history": [
+ {"role": "USER", "message": "You are a mathematician."},
+ {"role": "USER", "message": "What is 1 + 2?"},
+ {"role": "CHATBOT", "message": "The sum of 1 + 2 is 3. If you have any more math questions or if there's anything else I can help you with, feel free to ask!"},
+ {"role": "USER", "message": "Multiply that by 2"},
+ {"role": "CHATBOT", "message": "Certainly! If you multiply 3 by 2, the result is 6. If you have any more questions or if there's anything else I can help you with, feel free to ask!"}
+ ],
+ "message": "Why can't you divide by zero?",
+ "model": "command",
+ "max_tokens": 512,
+ "temperature": 0.5,
+ "p": 1.0,
+ "stream": false
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/cohere/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/cohere/llm-v1-completions.json
new file mode 100644
index 00000000..400114b7
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/cohere/llm-v1-completions.json
@@ -0,0 +1,9 @@
+{
+ "prompt": "Explain why you can't divide by zero?",
+ "model": "command",
+ "max_tokens": 512,
+ "temperature": 0.5,
+ "p": 0.75,
+ "k": 5,
+ "stream": false
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/gemini/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/gemini/llm-v1-chat.json
new file mode 100644
index 00000000..f236df67
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/gemini/llm-v1-chat.json
@@ -0,0 +1,57 @@
+{
+ "contents": [
+ {
+ "role": "user",
+ "parts": [
+ {
+ "text": "What is 1 + 2?"
+ }
+ ]
+ },
+ {
+ "role": "model",
+ "parts": [
+ {
+ "text": "The sum of 1 + 2 is 3. If you have any more math questions or if there's anything else I can help you with, feel free to ask!"
+ }
+ ]
+ },
+ {
+ "role": "user",
+ "parts": [
+ {
+ "text": "Multiply that by 2"
+ }
+ ]
+ },
+ {
+ "role": "model",
+ "parts": [
+ {
+ "text": "Certainly! If you multiply 3 by 2, the result is 6. If you have any more questions or if there's anything else I can help you with, feel free to ask!"
+ }
+ ]
+ },
+ {
+ "role": "user",
+ "parts": [
+ {
+ "text": "Why can't you divide by zero?"
+ }
+ ]
+ }
+ ],
+ "generationConfig": {
+ "temperature": 0.8,
+ "topK": 1,
+ "topP": 0.6,
+ "maxOutputTokens": 8192
+ },
+ "systemInstruction": {
+ "parts": [
+ {
+ "text": "You are a mathematician."
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/ollama/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/ollama/llm-v1-chat.json
new file mode 100644
index 00000000..358a31d2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/ollama/llm-v1-chat.json
@@ -0,0 +1,34 @@
+{
+ "model": "llama2",
+ "messages": [
+ {
+ "role": "system",
+ "content": "You are a mathematician."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 2?"
+ },
+ {
+ "role": "assistant",
+ "content": "The sum of 1 + 2 is 3. If you have any more math questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Multiply that by 2"
+ },
+ {
+ "role": "assistant",
+ "content": "Certainly! If you multiply 3 by 2, the result is 6. If you have any more questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Why can't you divide by zero?"
+ }
+ ],
+ "stream": false,
+ "options": {
+ "num_predict": 512,
+ "temperature": 0.5
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/ollama/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/ollama/llm-v1-completions.json
new file mode 100644
index 00000000..d81dbead
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/ollama/llm-v1-completions.json
@@ -0,0 +1,9 @@
+{
+ "model": "llama2",
+ "prompt": "Explain why you can't divide by zero?",
+ "stream": false,
+ "options": {
+ "num_predict": 512,
+ "temperature": 0.5
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/raw/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/raw/llm-v1-chat.json
new file mode 100644
index 00000000..71c517de
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/raw/llm-v1-chat.json
@@ -0,0 +1,10 @@
+{
+ "inputs": "[INST] <> You are a mathematician. <> What is 1 + 2? [/INST] [INST] Multiply that by 2 [/INST] [INST] Why can't you divide by zero? [/INST]",
+ "parameters": {
+ "max_new_tokens": 512,
+ "temperature": 0.5,
+ "top_k": 40,
+ "top_p": 1,
+ "stream": false
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/raw/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/raw/llm-v1-completions.json
new file mode 100644
index 00000000..d4011887
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/llama2/raw/llm-v1-completions.json
@@ -0,0 +1,8 @@
+{
+ "inputs": " [INST] <> You are a helpful assistant. <> Explain why you can't divide by zero? [/INST]",
+ "parameters": {
+ "max_new_tokens": 512,
+ "temperature": 0.5,
+ "stream": false
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/mistral/ollama/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/mistral/ollama/llm-v1-chat.json
new file mode 100644
index 00000000..62150c54
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/mistral/ollama/llm-v1-chat.json
@@ -0,0 +1,34 @@
+{
+ "model": "mistral-tiny",
+ "messages": [
+ {
+ "role": "system",
+ "content": "You are a mathematician."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 2?"
+ },
+ {
+ "role": "assistant",
+ "content": "The sum of 1 + 2 is 3. If you have any more math questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Multiply that by 2"
+ },
+ {
+ "role": "assistant",
+ "content": "Certainly! If you multiply 3 by 2, the result is 6. If you have any more questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Why can't you divide by zero?"
+ }
+ ],
+ "stream": false,
+ "options": {
+ "num_predict": 512,
+ "temperature": 0.5
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/mistral/openai/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/mistral/openai/llm-v1-chat.json
new file mode 100644
index 00000000..adb87db4
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/mistral/openai/llm-v1-chat.json
@@ -0,0 +1,32 @@
+{
+ "messages": [
+ {
+ "role": "system",
+ "content": "You are a mathematician."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 2?"
+ },
+ {
+ "role": "assistant",
+ "content": "The sum of 1 + 2 is 3. If you have any more math questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Multiply that by 2"
+ },
+ {
+ "role": "assistant",
+ "content": "Certainly! If you multiply 3 by 2, the result is 6. If you have any more questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Why can't you divide by zero?"
+ }
+ ],
+ "model": "mistral-tiny",
+ "max_tokens": 512,
+ "stream": false,
+ "temperature": 0.5
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/openai/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/openai/llm-v1-chat.json
new file mode 100644
index 00000000..d7aa2028
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/openai/llm-v1-chat.json
@@ -0,0 +1,32 @@
+{
+ "messages": [
+ {
+ "role": "system",
+ "content": "You are a mathematician."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 2?"
+ },
+ {
+ "role": "assistant",
+ "content": "The sum of 1 + 2 is 3. If you have any more math questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Multiply that by 2"
+ },
+ {
+ "role": "assistant",
+ "content": "Certainly! If you multiply 3 by 2, the result is 6. If you have any more questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Why can't you divide by zero?"
+ }
+ ],
+ "model": "gpt-4",
+ "max_tokens": 512,
+ "stream": false,
+ "temperature": 0.5
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/openai/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/openai/llm-v1-completions.json
new file mode 100644
index 00000000..bc7368bb
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-requests/openai/llm-v1-completions.json
@@ -0,0 +1,7 @@
+{
+ "prompt": "Explain why you can't divide by zero?",
+ "model": "gpt-3.5-turbo-instruct",
+ "max_tokens": 512,
+ "temperature": 0.5,
+ "stream": false
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/anthropic/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/anthropic/llm-v1-chat.json
new file mode 100644
index 00000000..969489f8
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/anthropic/llm-v1-chat.json
@@ -0,0 +1,14 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop_sequence",
+ "index": 0,
+ "message": {
+ "content": "You cannot divide by zero because it is not a valid operation in mathematics.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "model": "claude-2.1",
+ "object": "chat.completion"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/anthropic/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/anthropic/llm-v1-completions.json
new file mode 100644
index 00000000..0c3eccb7
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/anthropic/llm-v1-completions.json
@@ -0,0 +1,11 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop_sequence",
+ "index": 0,
+ "text": "You cannot divide by zero because it is not a valid operation in mathematics."
+ }
+ ],
+ "model": "claude-2.1",
+ "object": "text_completion"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/azure/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/azure/llm-v1-chat.json
new file mode 100644
index 00000000..74b0c341
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/azure/llm-v1-chat.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "Dividing by zero is undefined in mathematics because it leads to results that are contradictory or nonsensical. \n\nHere's a simple way to think about it: Division is the inverse of multiplication. If you divide 10 by 2, you're asking \"what number times 2 gives me 10?\" The answer is 5, because 5 times 2 equals 10. \n\nBut if you ask \"what number times 0 gives me 10?\" there is no number that can fulfill this, because zero times any number always equals zero. \n\nTherefore, division by zero is undefined because there is no number that you can multiply by 0 to get a non-zero number.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1702325640,
+ "id": "chatcmpl-8Ugx63a79wKACVkaBbKnR2C2HPcxT",
+ "model": "gpt-4-0613",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 139,
+ "prompt_tokens": 130,
+ "total_tokens": 269
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/azure/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/azure/llm-v1-completions.json
new file mode 100644
index 00000000..68396057
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/azure/llm-v1-completions.json
@@ -0,0 +1,19 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "logprobs": null,
+ "text": "\n\nDividing by zero is undefined because it violates the fundamental mathematical principle of division, which states that when dividing a number by another number, the result is the number of times the divisor can fit into the dividend. In other words, division is the inverse operation of multiplication.\n\nHowever, when dividing by zero, there is no number that can be multiplied by zero to give a specific result. This is because any number multiplied by zero will always equal zero, therefore there is no solution or value that can be assigned to the quotient.\n\nAdditionally, dividing by zero can lead to contradictory or nonsensical results. For example, if we divide a number by a smaller and smaller number approaching zero, the resulting quotient becomes larger and larger, approaching infinity. On the other hand, if we divide a number by a larger and larger number approaching zero, the resulting quotient becomes smaller and smaller, approaching negative infinity. This inconsistency shows that dividing by zero does not follow the rules of arithmetic and is therefore considered undefined.\n\nIn summary, division by zero is not allowed because it is mathematically undefined and can lead to nonsensical results."
+ }
+ ],
+ "created": 1702325696,
+ "id": "cmpl-8Ugy0y4E5S8s5GfqNal9TYhXMyitF",
+ "model": "gpt-3.5-turbo-instruct",
+ "object": "text_completion",
+ "usage": {
+ "completion_tokens": 225,
+ "prompt_tokens": 10,
+ "total_tokens": 235
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/bedrock/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/bedrock/llm-v1-chat.json
new file mode 100644
index 00000000..948d3fb4
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/bedrock/llm-v1-chat.json
@@ -0,0 +1,19 @@
+{
+ "choices": [
+ {
+ "finish_reason": "end_turn",
+ "index": 0,
+ "message": {
+ "content": "You cannot divide by zero because it is not a valid operation in mathematics.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "object": "chat.completion",
+ "usage": {
+ "completion_tokens": 119,
+ "prompt_tokens": 19,
+ "total_tokens": 138
+ },
+ "model": "bedrock"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/cohere/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/cohere/llm-v1-chat.json
new file mode 100644
index 00000000..9e3f88ee
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/cohere/llm-v1-chat.json
@@ -0,0 +1,20 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "You cannot divide by zero because it is not a valid operation in mathematics.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "id": "f8aabbeb-f745-4e9b-85b1-71a3269620d9",
+ "model": "command",
+ "object": "chat.completion",
+ "usage": {
+ "completion_tokens": 258,
+ "prompt_tokens": 102,
+ "total_tokens": 360
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/cohere/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/cohere/llm-v1-completions.json
new file mode 100644
index 00000000..7240745e
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/cohere/llm-v1-completions.json
@@ -0,0 +1,17 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "text": " You cannot divide by zero because it is not a valid operation in mathematics. Division is the process of finding how many times one number can fit into another number while subtraction is finding the difference between two numbers. For example, if you have a pizza that is divided into 5 pieces and you eat 2 pieces, you have 3 pieces left. This is expressed as $5 \\div 2 = 3$. However, if you eat all 5 pieces, there are no pieces left. We cannot define the result of"
+ }
+ ],
+ "id": "77d630a0-c350-4f4e-bbff-ae6eda8919f3",
+ "model": "command",
+ "object": "text_completion",
+ "usage": {
+ "completion_tokens": 100,
+ "prompt_tokens": 8,
+ "total_tokens": 108
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/gemini/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/gemini/llm-v1-chat.json
new file mode 100644
index 00000000..90a1656d
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/gemini/llm-v1-chat.json
@@ -0,0 +1,14 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "Ah, vous voulez savoir le double de ce résultat ? Eh bien, le double de 2 est **4**. \n",
+ "role": "assistant"
+ }
+ }
+ ],
+ "model": "gemini-pro",
+ "object": "chat.completion"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/ollama/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/ollama/llm-v1-chat.json
new file mode 100644
index 00000000..08bb7a7e
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/ollama/llm-v1-chat.json
@@ -0,0 +1,19 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "You cannot divide by zero because it is not a valid operation in mathematics.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "model": "llama2",
+ "object": "chat.completion",
+ "usage": {
+ "completion_tokens": 139,
+ "prompt_tokens": 130,
+ "total_tokens": 269
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/ollama/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/ollama/llm-v1-completions.json
new file mode 100644
index 00000000..e8702be8
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/ollama/llm-v1-completions.json
@@ -0,0 +1,15 @@
+{
+ "choices": [
+ {
+ "index": 0,
+ "text": "You cannot divide by zero because it is not a valid operation in mathematics."
+ }
+ ],
+ "object": "text_completion",
+ "model": "llama2",
+ "usage": {
+ "completion_tokens": 139,
+ "prompt_tokens": 130,
+ "total_tokens": 269
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/raw/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/raw/llm-v1-chat.json
new file mode 100644
index 00000000..4214b115
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/raw/llm-v1-chat.json
@@ -0,0 +1,12 @@
+{
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "content": "You cannot divide by zero because it is not a valid operation in mathematics.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "object": "chat.completion"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/raw/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/raw/llm-v1-completions.json
new file mode 100644
index 00000000..65c6b38f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/llama2/raw/llm-v1-completions.json
@@ -0,0 +1,9 @@
+{
+ "choices": [
+ {
+ "index": 0,
+ "text": "You cannot divide by zero because it is not a valid operation in mathematics."
+ }
+ ],
+ "object": "text_completion"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/mistral/ollama/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/mistral/ollama/llm-v1-chat.json
new file mode 100644
index 00000000..f5b53122
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/mistral/ollama/llm-v1-chat.json
@@ -0,0 +1,19 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "You cannot divide by zero because it is not a valid operation in mathematics.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "model": "mistral-tiny",
+ "object": "chat.completion",
+ "usage": {
+ "completion_tokens": 139,
+ "prompt_tokens": 130,
+ "total_tokens": 269
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/mistral/openai/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/mistral/openai/llm-v1-chat.json
new file mode 100644
index 00000000..d1c1c905
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/mistral/openai/llm-v1-chat.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "Dividing by zero is undefined in mathematics because it leads to results that are contradictory or nonsensical. \n\nHere's a simple way to think about it: Division is the inverse of multiplication. If you divide 10 by 2, you're asking \"what number times 2 gives me 10?\" The answer is 5, because 5 times 2 equals 10. \n\nBut if you ask \"what number times 0 gives me 10?\" there is no number that can fulfill this, because zero times any number always equals zero. \n\nTherefore, division by zero is undefined because there is no number that you can multiply by 0 to get a non-zero number.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1702325640,
+ "id": "chatcmpl-8Ugx63a79wKACVkaBbKnR2C2HPcxT",
+ "model": "mistral-tiny",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 139,
+ "prompt_tokens": 130,
+ "total_tokens": 269
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/openai/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/openai/llm-v1-chat.json
new file mode 100644
index 00000000..74b0c341
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/openai/llm-v1-chat.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "Dividing by zero is undefined in mathematics because it leads to results that are contradictory or nonsensical. \n\nHere's a simple way to think about it: Division is the inverse of multiplication. If you divide 10 by 2, you're asking \"what number times 2 gives me 10?\" The answer is 5, because 5 times 2 equals 10. \n\nBut if you ask \"what number times 0 gives me 10?\" there is no number that can fulfill this, because zero times any number always equals zero. \n\nTherefore, division by zero is undefined because there is no number that you can multiply by 0 to get a non-zero number.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1702325640,
+ "id": "chatcmpl-8Ugx63a79wKACVkaBbKnR2C2HPcxT",
+ "model": "gpt-4-0613",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 139,
+ "prompt_tokens": 130,
+ "total_tokens": 269
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/openai/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/openai/llm-v1-completions.json
new file mode 100644
index 00000000..68396057
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/expected-responses/openai/llm-v1-completions.json
@@ -0,0 +1,19 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "logprobs": null,
+ "text": "\n\nDividing by zero is undefined because it violates the fundamental mathematical principle of division, which states that when dividing a number by another number, the result is the number of times the divisor can fit into the dividend. In other words, division is the inverse operation of multiplication.\n\nHowever, when dividing by zero, there is no number that can be multiplied by zero to give a specific result. This is because any number multiplied by zero will always equal zero, therefore there is no solution or value that can be assigned to the quotient.\n\nAdditionally, dividing by zero can lead to contradictory or nonsensical results. For example, if we divide a number by a smaller and smaller number approaching zero, the resulting quotient becomes larger and larger, approaching infinity. On the other hand, if we divide a number by a larger and larger number approaching zero, the resulting quotient becomes smaller and smaller, approaching negative infinity. This inconsistency shows that dividing by zero does not follow the rules of arithmetic and is therefore considered undefined.\n\nIn summary, division by zero is not allowed because it is mathematically undefined and can lead to nonsensical results."
+ }
+ ],
+ "created": 1702325696,
+ "id": "cmpl-8Ugy0y4E5S8s5GfqNal9TYhXMyitF",
+ "model": "gpt-3.5-turbo-instruct",
+ "object": "text_completion",
+ "usage": {
+ "completion_tokens": 225,
+ "prompt_tokens": 10,
+ "total_tokens": 235
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/anthropic/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/anthropic/llm-v1-chat.json
new file mode 100644
index 00000000..624214cf
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/anthropic/llm-v1-chat.json
@@ -0,0 +1,12 @@
+{
+ "content": [{
+ "text": "You cannot divide by zero because it is not a valid operation in mathematics.",
+ "type": "text"
+ }],
+ "stop_reason": "stop_sequence",
+ "model": "claude-2.1",
+ "usage": {
+ "input_tokens": 0,
+ "output_tokens": 0
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/anthropic/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/anthropic/llm-v1-completions.json
new file mode 100644
index 00000000..eed219f5
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/anthropic/llm-v1-completions.json
@@ -0,0 +1,5 @@
+{
+ "completion": "You cannot divide by zero because it is not a valid operation in mathematics.",
+ "stop_reason": "stop_sequence",
+ "model": "claude-2.1"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/azure/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/azure/llm-v1-chat.json
new file mode 100644
index 00000000..74b0c341
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/azure/llm-v1-chat.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "Dividing by zero is undefined in mathematics because it leads to results that are contradictory or nonsensical. \n\nHere's a simple way to think about it: Division is the inverse of multiplication. If you divide 10 by 2, you're asking \"what number times 2 gives me 10?\" The answer is 5, because 5 times 2 equals 10. \n\nBut if you ask \"what number times 0 gives me 10?\" there is no number that can fulfill this, because zero times any number always equals zero. \n\nTherefore, division by zero is undefined because there is no number that you can multiply by 0 to get a non-zero number.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1702325640,
+ "id": "chatcmpl-8Ugx63a79wKACVkaBbKnR2C2HPcxT",
+ "model": "gpt-4-0613",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 139,
+ "prompt_tokens": 130,
+ "total_tokens": 269
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/azure/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/azure/llm-v1-completions.json
new file mode 100644
index 00000000..68396057
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/azure/llm-v1-completions.json
@@ -0,0 +1,19 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "logprobs": null,
+ "text": "\n\nDividing by zero is undefined because it violates the fundamental mathematical principle of division, which states that when dividing a number by another number, the result is the number of times the divisor can fit into the dividend. In other words, division is the inverse operation of multiplication.\n\nHowever, when dividing by zero, there is no number that can be multiplied by zero to give a specific result. This is because any number multiplied by zero will always equal zero, therefore there is no solution or value that can be assigned to the quotient.\n\nAdditionally, dividing by zero can lead to contradictory or nonsensical results. For example, if we divide a number by a smaller and smaller number approaching zero, the resulting quotient becomes larger and larger, approaching infinity. On the other hand, if we divide a number by a larger and larger number approaching zero, the resulting quotient becomes smaller and smaller, approaching negative infinity. This inconsistency shows that dividing by zero does not follow the rules of arithmetic and is therefore considered undefined.\n\nIn summary, division by zero is not allowed because it is mathematically undefined and can lead to nonsensical results."
+ }
+ ],
+ "created": 1702325696,
+ "id": "cmpl-8Ugy0y4E5S8s5GfqNal9TYhXMyitF",
+ "model": "gpt-3.5-turbo-instruct",
+ "object": "text_completion",
+ "usage": {
+ "completion_tokens": 225,
+ "prompt_tokens": 10,
+ "total_tokens": 235
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/bedrock/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/bedrock/llm-v1-chat.json
new file mode 100644
index 00000000..e995bbd9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/bedrock/llm-v1-chat.json
@@ -0,0 +1,21 @@
+{
+ "metrics": {
+ "latencyMs": 14767
+ },
+ "output": {
+ "message": {
+ "content": [
+ {
+ "text": "You cannot divide by zero because it is not a valid operation in mathematics."
+ }
+ ],
+ "role": "assistant"
+ }
+ },
+ "stopReason": "end_turn",
+ "usage": {
+ "completion_tokens": 119,
+ "prompt_tokens": 19,
+ "total_tokens": 138
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/cohere/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/cohere/llm-v1-chat.json
new file mode 100644
index 00000000..bbed8b91
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/cohere/llm-v1-chat.json
@@ -0,0 +1,20 @@
+{
+ "generation_id": "f8aabbeb-f745-4e9b-85b1-71a3269620d9",
+ "meta": {
+ "api_version": {
+ "version": "1"
+ },
+ "billed_units": {
+ "input_tokens": 81,
+ "output_tokens": 258
+ }
+ },
+ "response_id": "3ed9cd6c-afcc-4591-a4d3-5745ba88922e",
+ "text": "You cannot divide by zero because it is not a valid operation in mathematics.",
+ "token_count": {
+ "billed_tokens": 339,
+ "prompt_tokens": 102,
+ "response_tokens": 258,
+ "total_tokens": 360
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/cohere/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/cohere/llm-v1-completions.json
new file mode 100644
index 00000000..1a7c75aa
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/cohere/llm-v1-completions.json
@@ -0,0 +1,20 @@
+{
+ "generations": [
+ {
+ "finish_reason": "MAX_TOKENS",
+ "id": "d9b056b7-5506-4407-8b8f-b65b995f4203",
+ "text": " You cannot divide by zero because it is not a valid operation in mathematics. Division is the process of finding how many times one number can fit into another number while subtraction is finding the difference between two numbers. For example, if you have a pizza that is divided into 5 pieces and you eat 2 pieces, you have 3 pieces left. This is expressed as $5 \\div 2 = 3$. However, if you eat all 5 pieces, there are no pieces left. We cannot define the result of"
+ }
+ ],
+ "id": "77d630a0-c350-4f4e-bbff-ae6eda8919f3",
+ "meta": {
+ "api_version": {
+ "version": "1"
+ },
+ "billed_units": {
+ "input_tokens": 8,
+ "output_tokens": 100
+ }
+ },
+ "prompt": "Why can't you divide by zero?"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/gemini/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/gemini/llm-v1-chat.json
new file mode 100644
index 00000000..96933d98
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/gemini/llm-v1-chat.json
@@ -0,0 +1,39 @@
+{
+ "candidates": [
+ {
+ "content": {
+ "parts": [
+ {
+ "text": "Ah, vous voulez savoir le double de ce résultat ? Eh bien, le double de 2 est **4**. \n"
+ }
+ ],
+ "role": "model"
+ },
+ "finishReason": "STOP",
+ "index": 0,
+ "safetyRatings": [
+ {
+ "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
+ "probability": "NEGLIGIBLE"
+ },
+ {
+ "category": "HARM_CATEGORY_HATE_SPEECH",
+ "probability": "NEGLIGIBLE"
+ },
+ {
+ "category": "HARM_CATEGORY_HARASSMENT",
+ "probability": "NEGLIGIBLE"
+ },
+ {
+ "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
+ "probability": "NEGLIGIBLE"
+ }
+ ]
+ }
+ ],
+ "usageMetadata": {
+ "promptTokenCount": 14,
+ "candidatesTokenCount": 128,
+ "totalTokenCount": 142
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/ollama/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/ollama/llm-v1-chat.json
new file mode 100644
index 00000000..98a3bbfc
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/ollama/llm-v1-chat.json
@@ -0,0 +1,15 @@
+{
+ "model": "llama2",
+ "created_at": "2024-01-15T08:13:38.876196Z",
+ "message": {
+ "role": "assistant",
+ "content": "You cannot divide by zero because it is not a valid operation in mathematics."
+ },
+ "done": true,
+ "total_duration": 4062418334,
+ "load_duration": 1229365792,
+ "prompt_eval_count": 26,
+ "prompt_eval_duration": 167969000,
+ "eval_count": 100,
+ "eval_duration": 2658646000
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/ollama/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/ollama/llm-v1-completions.json
new file mode 100644
index 00000000..644d4078
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/ollama/llm-v1-completions.json
@@ -0,0 +1,14 @@
+{
+ "model": "llama2",
+ "created_at": "2024-01-15T08:14:21.967358Z",
+ "response": "Because I said so.",
+ "done": true,
+ "context": [
+ ],
+ "total_duration": 613583209,
+ "load_duration": 2220959,
+ "prompt_eval_count": 13,
+ "prompt_eval_duration": 307784000,
+ "eval_count": 12,
+ "eval_duration": 299573000
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/raw/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/raw/llm-v1-chat.json
new file mode 100644
index 00000000..fdec6c60
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/raw/llm-v1-chat.json
@@ -0,0 +1,7 @@
+{
+ "data": [
+ {
+ "generated_text": "[INST] <> You are a mathematician. <> What is 1 + 2? [/INST] [INST] Multiply that by 2 [/INST] [INST] Why can't you divide by zero? [/INST]\n\nYou cannot divide by zero because it is not a valid operation in mathematics."
+ }
+ ]
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/raw/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/raw/llm-v1-completions.json
new file mode 100644
index 00000000..cf080117
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/llama2/raw/llm-v1-completions.json
@@ -0,0 +1,7 @@
+{
+ "data": [
+ {
+ "generated_text": " [INST] <> You are a helpful assistant. <> Explain why you can't divide by zero? [/INST]\n\nYou cannot divide by zero because it is not a valid operation in mathematics."
+ }
+ ]
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/mistral/ollama/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/mistral/ollama/llm-v1-chat.json
new file mode 100644
index 00000000..45520146
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/mistral/ollama/llm-v1-chat.json
@@ -0,0 +1,15 @@
+{
+ "model": "mistral-tiny",
+ "created_at": "2024-01-15T08:13:38.876196Z",
+ "message": {
+ "role": "assistant",
+ "content": "You cannot divide by zero because it is not a valid operation in mathematics."
+ },
+ "done": true,
+ "total_duration": 4062418334,
+ "load_duration": 1229365792,
+ "prompt_eval_count": 26,
+ "prompt_eval_duration": 167969000,
+ "eval_count": 100,
+ "eval_duration": 2658646000
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/mistral/openai/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/mistral/openai/llm-v1-chat.json
new file mode 100644
index 00000000..d1c1c905
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/mistral/openai/llm-v1-chat.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "Dividing by zero is undefined in mathematics because it leads to results that are contradictory or nonsensical. \n\nHere's a simple way to think about it: Division is the inverse of multiplication. If you divide 10 by 2, you're asking \"what number times 2 gives me 10?\" The answer is 5, because 5 times 2 equals 10. \n\nBut if you ask \"what number times 0 gives me 10?\" there is no number that can fulfill this, because zero times any number always equals zero. \n\nTherefore, division by zero is undefined because there is no number that you can multiply by 0 to get a non-zero number.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1702325640,
+ "id": "chatcmpl-8Ugx63a79wKACVkaBbKnR2C2HPcxT",
+ "model": "mistral-tiny",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 139,
+ "prompt_tokens": 130,
+ "total_tokens": 269
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/openai/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/openai/llm-v1-chat.json
new file mode 100644
index 00000000..74b0c341
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/openai/llm-v1-chat.json
@@ -0,0 +1,22 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "message": {
+ "content": "Dividing by zero is undefined in mathematics because it leads to results that are contradictory or nonsensical. \n\nHere's a simple way to think about it: Division is the inverse of multiplication. If you divide 10 by 2, you're asking \"what number times 2 gives me 10?\" The answer is 5, because 5 times 2 equals 10. \n\nBut if you ask \"what number times 0 gives me 10?\" there is no number that can fulfill this, because zero times any number always equals zero. \n\nTherefore, division by zero is undefined because there is no number that you can multiply by 0 to get a non-zero number.",
+ "role": "assistant"
+ }
+ }
+ ],
+ "created": 1702325640,
+ "id": "chatcmpl-8Ugx63a79wKACVkaBbKnR2C2HPcxT",
+ "model": "gpt-4-0613",
+ "object": "chat.completion",
+ "system_fingerprint": null,
+ "usage": {
+ "completion_tokens": 139,
+ "prompt_tokens": 130,
+ "total_tokens": 269
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/openai/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/openai/llm-v1-completions.json
new file mode 100644
index 00000000..68396057
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-responses/openai/llm-v1-completions.json
@@ -0,0 +1,19 @@
+{
+ "choices": [
+ {
+ "finish_reason": "stop",
+ "index": 0,
+ "logprobs": null,
+ "text": "\n\nDividing by zero is undefined because it violates the fundamental mathematical principle of division, which states that when dividing a number by another number, the result is the number of times the divisor can fit into the dividend. In other words, division is the inverse operation of multiplication.\n\nHowever, when dividing by zero, there is no number that can be multiplied by zero to give a specific result. This is because any number multiplied by zero will always equal zero, therefore there is no solution or value that can be assigned to the quotient.\n\nAdditionally, dividing by zero can lead to contradictory or nonsensical results. For example, if we divide a number by a smaller and smaller number approaching zero, the resulting quotient becomes larger and larger, approaching infinity. On the other hand, if we divide a number by a larger and larger number approaching zero, the resulting quotient becomes smaller and smaller, approaching negative infinity. This inconsistency shows that dividing by zero does not follow the rules of arithmetic and is therefore considered undefined.\n\nIn summary, division by zero is not allowed because it is mathematically undefined and can lead to nonsensical results."
+ }
+ ],
+ "created": 1702325696,
+ "id": "cmpl-8Ugy0y4E5S8s5GfqNal9TYhXMyitF",
+ "model": "gpt-3.5-turbo-instruct",
+ "object": "text_completion",
+ "usage": {
+ "completion_tokens": 225,
+ "prompt_tokens": 10,
+ "total_tokens": 235
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/cohere/llm-v1-chat.txt b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/cohere/llm-v1-chat.txt
new file mode 100644
index 00000000..f6158488
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/cohere/llm-v1-chat.txt
@@ -0,0 +1 @@
+{"is_finished":false,"event_type":"text-generation","text":"the answer"}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/cohere/llm-v1-completions.txt b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/cohere/llm-v1-completions.txt
new file mode 100644
index 00000000..4add796f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/cohere/llm-v1-completions.txt
@@ -0,0 +1 @@
+{"text":"the answer","is_finished":false,"event_type":"text-generation"}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/openai/llm-v1-chat.txt b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/openai/llm-v1-chat.txt
new file mode 100644
index 00000000..2f7c45fe
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/openai/llm-v1-chat.txt
@@ -0,0 +1 @@
+data: {"choices": [{"delta": {"content": "the answer"},"finish_reason": null,"index": 0,"logprobs": null}],"created": 1711938086,"id": "chatcmpl-991aYb1iD8OSD54gcxZxv8uazlTZy","model": "gpt-4-0613","object": "chat.completion.chunk","system_fingerprint": null}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/openai/llm-v1-completions.txt b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/openai/llm-v1-completions.txt
new file mode 100644
index 00000000..e9e1b313
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/real-stream-frames/openai/llm-v1-completions.txt
@@ -0,0 +1 @@
+data: {"choices": [{"finish_reason": null,"index": 0,"logprobs": null,"text": "the answer"}],"created": 1711938803,"id": "cmpl-991m7YSJWEnzrBqk41In8Xer9RIEB","model": "gpt-3.5-turbo-instruct","object": "text_completion"}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-chat.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-chat.json
new file mode 100644
index 00000000..c3f059f1
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-chat.json
@@ -0,0 +1,28 @@
+{
+ "messages": [
+ {
+ "role": "system",
+ "content": "You are a mathematician."
+ },
+ {
+ "role": "user",
+ "content": "What is 1 + 2?"
+ },
+ {
+ "role": "assistant",
+ "content": "The sum of 1 + 2 is 3. If you have any more math questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Multiply that by 2"
+ },
+ {
+ "role": "assistant",
+ "content": "Certainly! If you multiply 3 by 2, the result is 6. If you have any more questions or if there's anything else I can help you with, feel free to ask!"
+ },
+ {
+ "role": "user",
+ "content": "Why can't you divide by zero?"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-completion-template.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-completion-template.json
new file mode 100644
index 00000000..17486d19
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-completion-template.json
@@ -0,0 +1,8 @@
+{
+ "prompt": {
+ "name": "python-chat",
+ "properties": {
+ "program": "fibonacci sequence"
+ }
+ }
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-completions.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-completions.json
new file mode 100644
index 00000000..158e601b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/requests/llm-v1-completions.json
@@ -0,0 +1,3 @@
+{
+ "prompt": "Explain why you can't divide by zero?"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/aws/expected-output.json b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/aws/expected-output.json
new file mode 100644
index 00000000..8761c559
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/aws/expected-output.json
@@ -0,0 +1,20 @@
+[
+ {
+ "data": "{\"body\":\"{\\\"p\\\":\\\"abcdefghijkl\\\",\\\"role\\\":\\\"assistant\\\"}\",\"headers\":{\":event-type\":\"messageStart\",\":content-type\":\"application\/json\",\":message-type\":\"event\"}}"
+ },
+ {
+ "data": "{\"body\":\"{\\\"contentBlockIndex\\\":0,\\\"delta\\\":{\\\"text\\\":\\\"Hello! Relativity is a set of physical theories that are collectively known as special relativity and general relativity, proposed by Albert Einstein. These theories revolutionized our understanding of space, time, and gravity, and have had far-reach\\\"},\\\"p\\\":\\\"abcd\\\"}\",\"headers\":{\":event-type\":\"contentBlockDelta\",\":content-type\":\"application\\/json\",\":message-type\":\"event\"}}"
+ },
+ {
+ "data": "{\"headers\":{\":event-type\":\"contentBlockDelta\",\":message-type\":\"event\",\":content-type\":\"application\\/json\"},\"body\":\"{\\\"contentBlockIndex\\\":0,\\\"delta\\\":{\\\"text\\\":\\\"ing implications in various scientific and technological fields. Special relativity applies to all physical phenomena in the absence of gravity, while general relativity explains the law of gravity and its effects on the nature of space, time, and matter.\\\"},\\\"p\\\":\\\"abcdefghijk\\\"}\"}"
+ },
+ {
+ "data": "{\"body\":\"{\\\"contentBlockIndex\\\":0,\\\"p\\\":\\\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQR\\\"}\",\"headers\":{\":content-type\":\"application\\/json\",\":event-type\":\"contentBlockStop\",\":message-type\":\"event\"}}"
+ },
+ {
+ "data": "{\"body\":\"{\\\"p\\\":\\\"abcdefghijklm\\\",\\\"stopReason\\\":\\\"end_turn\\\"}\",\"headers\":{\":message-type\":\"event\",\":content-type\":\"application\\/json\",\":event-type\":\"messageStop\"}}"
+ },
+ {
+ "data": "{\"headers\":{\":message-type\":\"event\",\":content-type\":\"application\\/json\",\":event-type\":\"metadata\"},\"body\":\"{\\\"metrics\\\":{\\\"latencyMs\\\":2613},\\\"p\\\":\\\"abcdefghijklmnopqrstuvwxyzABCDEF\\\",\\\"usage\\\":{\\\"inputTokens\\\":9,\\\"outputTokens\\\":97,\\\"totalTokens\\\":106}}\"}"
+ }
+]
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/aws/input.bin b/kong-versions/3.8.0/kong/spec/fixtures/ai-proxy/unit/streaming-chunk-formats/aws/input.bin
new file mode 100644
index 0000000000000000000000000000000000000000..8f9d03b4f7e02272e671c429836521d8db102676
GIT binary patch
literal 1506
zcmc&!!A=xG5FHOj6C{B@XxpO;f+VOLJ%FH~g0c{ZiAri`YImCL?QXk!c6T820bVq6
z(Zr)S4+cGXF!2}s0ZsS-6XQWWTC*&$t9ud?4?UUb>3aRD-m40N;873+rF(C#lm?2}
zK;=h#YVbsGs*cV<6_-6&KUfU4@`pc%z!)h)@ItF|8&0diV&`}#`gj{^iyL0#P!1!k
zRAaGGlf1yKmYDB4C!7c6d1lrxr$KP+84+2#xHj>km&kDE>S?LN+6+n$f6b;FXEE7k8(_2+~OWvo|w&{l=?I)p``p8!lz6)2F#&ny24DHI?7x!AEUMc9ld~OV3CDd
zN(?CmWy)$wHx&cNoWW4gd3%TlDq>YsXnVE`%vf!-!-$nrHYLkwJ)0HEc@%1tt;Fc?
z@K%crEt6aTu}Kj+u`HpKY+lnysA|sD83?h!yr|Q&eW`^!p}mh78pvXZSOx5eMF?Y_
z6%G{R*^_sl?~*Jpb6Mo~kx&0wmOLj>Kd_x+La_!|p%bccD9D_mBEoi>9>Z8^sjF?F
zDgtHXM%i*7A#xk%5^4rg9%^f1RJx7|@=Hi)24#mT#Js50{Teo7A+e8+3|mG5>DG>v
z(Cmt8(-Yn?tW?MWNmox8sB^v7X
z`?A;OA2-hL&0Sa8JR}1qjbg3=orDT8q2i?mz8ibFz*eA~?dh
zApk2vmyZ@2CFGxUfj-Vpj!$&;+5TkgS3IJg if ssl_cert[1] then
+> for i = 1, #ssl_cert do
+ ssl_certificate $(ssl_cert[i]);
+ ssl_certificate_key $(ssl_cert_key[i]);
+> end
+> else
+ ssl_certificate ${{SSL_CERT}};
+ ssl_certificate_key ${{SSL_CERT_KEY}};
+> end
+ ssl_protocols TLSv1.2 TLSv1.3;
+
+ location ~ "/2015-03-31/functions/(?:[^/])*/invocations" {
+ content_by_lua_block {
+ local function x()
+ local function say(res, status)
+ ngx.header["x-amzn-RequestId"] = "foo"
+
+ if string.match(ngx.var.uri, "functionWithUnhandledError") then
+ ngx.header["X-Amz-Function-Error"] = "Unhandled"
+ end
+
+ ngx.status = status
+
+ if string.match(ngx.var.uri, "functionWithBadJSON") then
+ local badRes = "{\"foo\":\"bar\""
+ ngx.header["Content-Length"] = #badRes + 1
+ ngx.say(badRes)
+
+ elseif string.match(ngx.var.uri, "functionWithNoResponse") then
+ ngx.header["Content-Length"] = 0
+
+ elseif string.match(ngx.var.uri, "functionWithBase64EncodedResponse") then
+ ngx.header["Content-Type"] = "application/json"
+ ngx.say("{\"statusCode\": 200, \"body\": \"dGVzdA==\", \"isBase64Encoded\": true}")
+
+ elseif string.match(ngx.var.uri, "functionWithNotBase64EncodedResponse") then
+ ngx.header["Content-Type"] = "application/json"
+ ngx.say("{\"statusCode\": 200, \"body\": \"dGVzdA=\", \"isBase64Encoded\": false}")
+
+ elseif string.match(ngx.var.uri, "functionWithIllegalBase64EncodedResponse") then
+ ngx.say("{\"statusCode\": 200, \"body\": \"dGVzdA=\", \"isBase64Encoded\": \"abc\"}")
+
+ elseif string.match(ngx.var.uri, "functionWithMultiValueHeadersResponse") then
+ ngx.header["Content-Type"] = "application/json"
+ ngx.say("{\"statusCode\": 200, \"headers\": { \"Age\": \"3600\"}, \"multiValueHeaders\": {\"Access-Control-Allow-Origin\": [\"site1.com\", \"site2.com\"]}}")
+
+ elseif string.match(ngx.var.uri, "functionEcho") then
+ require("spec.fixtures.mock_upstream").send_default_json_response()
+
+ elseif string.match(ngx.var.uri, "functionWithTransferEncodingHeader") then
+ ngx.say("{\"statusCode\": 200, \"headers\": { \"Transfer-Encoding\": \"chunked\", \"transfer-encoding\": \"chunked\"}}")
+
+ elseif string.match(ngx.var.uri, "functionWithLatency") then
+ -- additional latency
+ ngx.sleep(2)
+ ngx.say("{\"statusCodge\": 200, \"body\": \"dGVzdA=\", \"isBase64Encoded\": false}")
+
+ elseif string.match(ngx.var.uri, "functionWithEmptyArray") then
+ ngx.header["Content-Type"] = "application/json"
+ local str = "{\"statusCode\": 200, \"testbody\": [], \"isBase64Encoded\": false}"
+ ngx.say(str)
+
+ elseif string.match(ngx.var.uri, "functionWithArrayCTypeInMVHAndEmptyArray") then
+ ngx.header["Content-Type"] = "application/json"
+ ngx.say("{\"statusCode\": 200, \"isBase64Encoded\": true, \"body\": \"eyJrZXkiOiAidmFsdWUiLCAia2V5MiI6IFtdfQ==\", \"headers\": {}, \"multiValueHeaders\": {\"Content-Type\": [\"application/json+test\"]}}")
+
+ elseif type(res) == 'string' then
+ ngx.header["Content-Length"] = #res + 1
+ ngx.say(res)
+
+ else
+ ngx.req.discard_body()
+ ngx.header['Content-Length'] = 0
+ end
+
+ ngx.exit(0)
+ end
+
+ ngx.sleep(.2) -- mock some network latency
+
+ local invocation_type = ngx.var.http_x_amz_invocation_type
+ if invocation_type == 'Event' then
+ say(nil, 202)
+
+ elseif invocation_type == 'DryRun' then
+ say(nil, 204)
+ end
+
+ local qargs = ngx.req.get_uri_args()
+ ngx.req.read_body()
+ local request_body = ngx.req.get_body_data()
+ if request_body == nil then
+ local body_file = ngx.req.get_body_file()
+ if body_file then
+ ngx.log(ngx.DEBUG, "reading file cached to disk: ",body_file)
+ local file = io.open(body_file, "rb")
+ request_body = file:read("*all")
+ file:close()
+ end
+ end
+ print(request_body)
+ local args = require("cjson").decode(request_body)
+
+ say(request_body, 200)
+ end
+ local ok, err = pcall(x)
+ if not ok then
+ ngx.log(ngx.ERR, "Mock error: ", err)
+ end
+ }
+ }
+ }
+
+ ]]
+ },
+}
+
+fixtures.stream_mock = {
+ lambda_proxy = [[
+ server {
+ listen 13128;
+
+ content_by_lua_block {
+ require("spec.fixtures.forward-proxy-server").connect()
+ }
+ }
+ ]],
+}
+
+fixtures.dns_mock:A {
+ name = "lambda.us-east-1.amazonaws.com",
+ address = "127.0.0.1",
+}
+
+return fixtures
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/aws-sam.lua b/kong-versions/3.8.0/kong/spec/fixtures/aws-sam.lua
new file mode 100644
index 00000000..6316f7c5
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/aws-sam.lua
@@ -0,0 +1,73 @@
+--AWS SAM Local Test Helper
+local ngx_pipe = require "ngx.pipe"
+local helpers = require "spec.helpers"
+local utils = require "spec.helpers.perf.utils"
+local fmt = string.format
+
+local _M = {}
+
+
+--- Get system architecture by uname
+-- @function get_os_architecture
+-- @return architecture string if success, or nil and an error message
+function _M.get_os_architecture()
+ local ret, err = utils.execute("uname -m")
+
+ return ret, err
+end
+
+
+function _M.is_sam_installed()
+ local ret, err = utils.execute("sam --version")
+ if err then
+ return nil, fmt("SAM CLI version check failed(code: %s): %s", err, ret)
+ end
+
+ return true
+end
+
+
+local sam_proc
+
+
+function _M.start_local_lambda()
+ local port = helpers.get_available_port()
+ if not port then
+ return nil, "No available port found"
+ end
+
+ -- run in background
+ local err
+ sam_proc, err = ngx_pipe.spawn({"sam",
+ "local",
+ "start-lambda",
+ "--template-file", "spec/fixtures/sam-app/template.yaml",
+ "--port", port
+ })
+ if not sam_proc then
+ return nil, err
+ end
+
+ local ret, err = utils.execute("pgrep -f 'sam local'")
+ if err then
+ return nil, fmt("Start SAM CLI failed(code: %s): %s", err, ret)
+ end
+
+ return true, port
+end
+
+
+function _M.stop_local_lambda()
+ if sam_proc then
+ local ok, err = sam_proc:kill(15)
+ if not ok then
+ return nil, fmt("Stop SAM CLI failed: %s", err)
+ end
+ sam_proc = nil
+ end
+
+ return true
+end
+
+
+return _M
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/balancer_utils.lua b/kong-versions/3.8.0/kong/spec/fixtures/balancer_utils.lua
new file mode 100644
index 00000000..92e4b0c4
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/balancer_utils.lua
@@ -0,0 +1,662 @@
+local cjson = require "cjson"
+local declarative = require "kong.db.declarative"
+local helpers = require "spec.helpers"
+local format_host = require("kong.tools.ip").format_host
+local kong_table = require "kong.tools.table"
+local https_server = require "spec.fixtures.https_server"
+local uuid = require("kong.tools.uuid").uuid
+
+
+local CONSISTENCY_FREQ = 1
+local HEALTHCHECK_INTERVAL = 1
+local SLOTS = 10
+local TEST_LOG = false -- extra verbose logging
+local healthchecks_defaults = {
+ active = {
+ timeout = 1,
+ concurrency = 10,
+ http_path = "/",
+ healthy = {
+ interval = 0, -- 0 = disabled by default
+ http_statuses = { 200, 302 },
+ successes = 2,
+ },
+ unhealthy = {
+ interval = 0, -- 0 = disabled by default
+ http_statuses = { 429, 404,
+ 500, 501, 502, 503, 504, 505 },
+ tcp_failures = 2,
+ timeouts = 3,
+ http_failures = 5,
+ },
+ },
+ passive = {
+ healthy = {
+ http_statuses = { 200, 201, 202, 203, 204, 205, 206, 207, 208, 226,
+ 300, 301, 302, 303, 304, 305, 306, 307, 308 },
+ successes = 5,
+ },
+ unhealthy = {
+ http_statuses = { 429, 500, 503 },
+ tcp_failures = 2,
+ timeouts = 7,
+ http_failures = 5,
+ },
+ },
+}
+local get_available_port = helpers.get_available_port
+
+
+local prefix = ""
+
+
+local function healthchecks_config(config)
+ return kong_table.cycle_aware_deep_merge(healthchecks_defaults, config)
+end
+
+
+local function direct_request(host, port, path, protocol, host_header)
+ local pok, client = pcall(helpers.http_client, {
+ host = host,
+ port = port,
+ scheme = protocol,
+ })
+ if not pok then
+ return nil, "pcall: " .. client .. " : " .. host ..":"..port
+ end
+ if not client then
+ return nil, "client"
+ end
+
+ local res, err = client:send {
+ method = "GET",
+ path = path,
+ headers = { ["Host"] = host_header or host }
+ }
+ local body = res and res:read_body()
+ client:close()
+ if err then
+ return nil, err
+ end
+ return body
+end
+
+
+local function put_target_endpoint(upstream_id, host, port, endpoint)
+ if host == "[::1]" then
+ host = "[0000:0000:0000:0000:0000:0000:0000:0001]"
+ end
+ local path = "/upstreams/" .. upstream_id
+ .. "/targets/"
+ .. format_host(host, port)
+ .. "/" .. endpoint
+ local api_client = helpers.admin_client()
+ local res, err = assert(api_client:put(prefix .. path, {
+ headers = {
+ ["Content-Type"] = "application/json",
+ },
+ body = {},
+ }))
+ api_client:close()
+ return res, err
+end
+
+-- client_sync_request requires a route with
+-- hosts = { "200.test" } to sync requests
+local function client_sync_request(proxy_host , proxy_port)
+ -- kong have two port 9100(TCP) and 80(HTTP)
+ -- we just need to request http
+ if proxy_port == 9100 then
+ proxy_port = 80
+ end
+ local proxy_client = helpers.proxy_client({
+ host = proxy_host,
+ port = proxy_port,
+ })
+
+ local res = assert(proxy_client:send {
+ method = "GET",
+ headers = {
+ ["Host"] = "200.test",
+ },
+ path = "/",
+ })
+ local status = res.status
+ proxy_client:close()
+ return status == 200
+end
+
+local function client_requests(n, host_or_headers, proxy_host, proxy_port, protocol, uri)
+ local oks, fails = 0, 0
+ local last_status
+ for _ = 1, n do
+ -- hack sync avoid concurrency request
+ -- There is an issue here, if a request is completed and a response is received,
+ -- it does not necessarily mean that the log phase has been executed
+ -- (many operations require execution in the log phase, such as passive health checks),
+ -- so we need to ensure that the log phase has been completely executed here.
+ -- We choose to wait here for the log phase of the last connection to finish.
+ client_sync_request(proxy_host, proxy_port)
+ local client
+ if proxy_host and proxy_port then
+ client = helpers.http_client({
+ host = proxy_host,
+ port = proxy_port,
+ scheme = protocol,
+ })
+
+ else
+ if protocol == "https" then
+ client = helpers.proxy_ssl_client()
+ else
+ client = helpers.proxy_client()
+ end
+ end
+
+ local res = client:send {
+ method = "GET",
+ path = uri or "/",
+ headers = type(host_or_headers) == "string"
+ and { ["Host"] = host_or_headers }
+ or host_or_headers
+ or {}
+ }
+ if not res then
+ fails = fails + 1
+ if TEST_LOG then
+ print("FAIL (no body)")
+ end
+ elseif res.status == 200 then
+ oks = oks + 1
+ if TEST_LOG then
+ print("OK ", res.status, res:read_body())
+ end
+ elseif res.status > 399 then
+ fails = fails + 1
+ if TEST_LOG then
+ print("FAIL ", res.status, res:read_body())
+ end
+ end
+ last_status = res and res.status
+ client:close()
+ end
+ return oks, fails, last_status
+end
+
+
+local add_certificate
+local add_upstream
+local remove_upstream
+local patch_upstream
+local get_upstream
+local get_upstream_health
+local get_balancer_health
+local put_target_address_health
+local get_router_version
+local add_target
+local update_target
+local add_api
+local patch_api
+local gen_multi_host
+local invalidate_router
+do
+ local gen_sym
+ do
+ local sym = 0
+ gen_sym = function(name)
+ sym = sym + 1
+ return name .. "_" .. sym
+ end
+ end
+
+ local function api_send(method, path, body, forced_port)
+ local api_client = helpers.admin_client(nil, forced_port)
+ local res, err = api_client:send({
+ method = method,
+ path = prefix .. path,
+ headers = {
+ ["Content-Type"] = "application/json"
+ },
+ body = body,
+ })
+ if not res then
+ api_client:close()
+ return nil, err
+ end
+ local res_body = res.status ~= 204 and cjson.decode((res:read_body()))
+ api_client:close()
+ return res.status, res_body
+ end
+
+ add_certificate = function(bp, data)
+ local certificate_id = uuid()
+ local req = kong_table.cycle_aware_deep_copy(data) or {}
+ req.id = certificate_id
+ bp.certificates:insert(req)
+ return certificate_id
+ end
+
+ add_upstream = function(bp, data)
+ local upstream_id = uuid()
+ local req = kong_table.cycle_aware_deep_copy(data) or {}
+ local upstream_name = req.name or gen_sym("upstream")
+ req.name = upstream_name
+ req.slots = req.slots or SLOTS
+ req.id = upstream_id
+ bp.upstreams:insert(req)
+ return upstream_name, upstream_id
+ end
+
+ remove_upstream = function(bp, upstream_id)
+ bp.upstreams:remove({ id = upstream_id })
+ end
+
+ patch_upstream = function(upstream_id, data)
+ local res = api_send("PATCH", "/upstreams/" .. upstream_id, data)
+ assert(res == 200)
+ end
+
+ get_upstream = function(upstream_id, forced_port)
+ local path = "/upstreams/" .. upstream_id
+ local status, body = api_send("GET", path, nil, forced_port)
+ if status == 200 then
+ return body
+ end
+ end
+
+ get_upstream_health = function(upstream_id, forced_port)
+ local path = "/upstreams/" .. upstream_id .."/health"
+ local status, body = api_send("GET", path, nil, forced_port)
+ if status == 200 then
+ return body
+ end
+ end
+
+ get_balancer_health = function(upstream_id, forced_port)
+ local path = "/upstreams/" .. upstream_id .."/health?balancer_health=1"
+ local status, body = api_send("GET", path, nil, forced_port)
+ if status == 200 then
+ return body
+ end
+ end
+
+ put_target_address_health = function(upstream_id, target_id, address, mode, forced_port)
+ local path = "/upstreams/" .. upstream_id .. "/targets/" .. target_id .. "/" .. address .. "/" .. mode
+ return api_send("PUT", path, {}, forced_port)
+ end
+
+ get_router_version = function(forced_port)
+ local path = "/cache/router:version"
+ local status, body = api_send("GET", path, nil, forced_port)
+ if status == 200 then
+ return body.message
+ end
+ end
+
+ invalidate_router = function(forced_port)
+ local path = "/cache/router:version"
+ local status, body = api_send("DELETE", path, nil, forced_port)
+ if status == 204 then
+ return true
+ end
+
+ return nil, body
+ end
+
+ do
+ local host_num = 0
+ gen_multi_host = function()
+ host_num = host_num + 1
+ return "multiple-hosts-" .. tostring(host_num) .. ".test"
+ end
+ end
+
+ add_target = function(bp, upstream_id, host, port, data)
+ port = port or get_available_port()
+ local req = kong_table.cycle_aware_deep_copy(data) or {}
+ if host == "[::1]" then
+ host = "[0000:0000:0000:0000:0000:0000:0000:0001]"
+ end
+ req.target = req.target or format_host(host, port)
+ req.weight = req.weight or 10
+ req.upstream = { id = upstream_id }
+ local new_target = bp.targets:insert(req)
+ return port, new_target
+ end
+
+ update_target = function(bp, upstream_id, host, port, data)
+ local req = kong_table.cycle_aware_deep_copy(data) or {}
+ if host == "[::1]" then
+ host = "[0000:0000:0000:0000:0000:0000:0000:0001]"
+ end
+ req.target = req.target or format_host(host, port)
+ req.weight = req.weight or 10
+ req.upstream = { id = upstream_id }
+ bp.targets:update(req.id or req.target, req)
+ end
+
+ add_api = function(bp, upstream_name, opts)
+ opts = opts or {}
+ local route_id = uuid()
+ local service_id = uuid()
+ local route_host = gen_sym("host")
+ local sproto = opts.service_protocol or opts.route_protocol or "http"
+ local rproto = opts.route_protocol or "http"
+ local sport = rproto == "tcp" and 9100 or 80
+
+ local rpaths = {
+ "/",
+ "~/(?[^/]+)/(?[0-9]+)/?", -- uri capture hash value
+ }
+
+ -- add a 200 route to sync kong async thread
+ local route = bp.routes:insert {
+ hosts = { "200.test" },
+ }
+
+ bp.plugins:insert {
+ route = route,
+ name = "request-termination",
+ config = {
+ status_code = 200,
+ message = "Terminated"
+ },
+ }
+
+ bp.services:insert({
+ id = service_id,
+ host = upstream_name,
+ port = sport,
+ protocol = sproto,
+ read_timeout = opts.read_timeout,
+ write_timeout = opts.write_timeout,
+ connect_timeout = opts.connect_timeout,
+ retries = opts.retries,
+ })
+ bp.routes:insert({
+ id = route_id,
+ service = { id = service_id },
+ protocols = { rproto },
+ hosts = rproto ~= "tcp" and { route_host } or nil,
+ destinations = (rproto == "tcp") and {{ port = 9100 }} or nil,
+ paths = rproto ~= "tcp" and rpaths or nil,
+ })
+
+ bp.plugins:insert({
+ name = "post-function",
+ service = { id = service_id },
+ config = {
+ header_filter = {[[
+ local value = ngx.ctx and
+ ngx.ctx.balancer_data and
+ ngx.ctx.balancer_data.hash_value
+ if value == "" or value == nil then
+ value = "NONE"
+ end
+
+ ngx.header["x-balancer-hash-value"] = value
+ ngx.header["x-uri"] = ngx.var.request_uri
+ ]]},
+ },
+ })
+
+ return route_host, service_id, route_id
+ end
+
+ patch_api = function(bp, service_id, new_upstream, read_timeout)
+ bp.services:update(service_id, {
+ url = new_upstream,
+ read_timeout = read_timeout,
+ })
+ end
+end
+
+
+local poll_wait_health
+local poll_wait_address_health
+do
+ local function poll_wait(upstream_id, host, port, admin_port, fn)
+ if host == "[::1]" then
+ host = "[0000:0000:0000:0000:0000:0000:0000:0001]"
+ end
+ local hard_timeout = ngx.now() + 70
+ while ngx.now() < hard_timeout do
+ local health = get_upstream_health(upstream_id, admin_port)
+ if health then
+ for _, d in ipairs(health.data) do
+ if d.target == host .. ":" .. port and fn(d) then
+ return true
+ end
+ end
+ end
+ ngx.sleep(0.1) -- poll-wait
+ end
+ return false
+ end
+
+ poll_wait_health = function(upstream_id, host, port, value, admin_port)
+ local ok = poll_wait(upstream_id, host, port, admin_port, function(d)
+ return d.health == value
+ end)
+ if ok then
+ return true
+ end
+ assert(false, "timed out waiting for " .. host .. ":" .. port .. " in " ..
+ upstream_id .. " to become " .. value)
+ end
+
+ poll_wait_address_health = function(upstream_id, host, port, address_host, address_port, value)
+ local ok = poll_wait(upstream_id, host, port, nil, function(d)
+ for _, ad in ipairs(d.data.addresses) do
+ if ad.ip == address_host
+ and ad.port == address_port
+ and ad.health == value then
+ return true
+ end
+ end
+ end)
+ if ok then
+ return true
+ end
+ assert(false, "timed out waiting for " .. address_host .. ":" .. address_port .. " in " ..
+ upstream_id .. " to become " .. value)
+ end
+end
+
+
+local function wait_for_router_update(bp, old_rv, localhost, proxy_port, admin_port)
+ -- add dummy upstream just to rebuild router
+ local dummy_upstream_name, dummy_upstream_id = add_upstream(bp)
+ local dummy_port = add_target(bp, dummy_upstream_id, localhost)
+ local dummy_api_host = add_api(bp, dummy_upstream_name)
+ local dummy_server = https_server.new(dummy_port, localhost)
+ dummy_server:start()
+
+ -- forces the router to be rebuild, reduces the flakiness of the test suite
+ -- TODO: find out what's wrong with router invalidation in the particular
+ -- test setup causing the flakiness
+ assert(invalidate_router(admin_port))
+
+ helpers.wait_until(function()
+ client_requests(1, dummy_api_host, "127.0.0.1", proxy_port)
+ local rv = get_router_version(admin_port)
+ return rv ~= old_rv
+ end, 5)
+
+ dummy_server:shutdown()
+end
+
+
+local function tcp_client_requests(nreqs, host, port)
+ local fails, ok1, ok2 = 0, 0, 0
+ for _ = 1, nreqs do
+ local sock = ngx.socket.tcp()
+ assert(sock:connect(host, port))
+ assert(sock:send("hello\n"))
+ local response, err = sock:receive()
+ if err then
+ fails = fails + 1
+ elseif response:match("^1 ") then
+ ok1 = ok1 + 1
+ elseif response:match("^2 ") then
+ ok2 = ok2 + 1
+ end
+ end
+ return ok1, ok2, fails
+end
+
+
+local function begin_testcase_setup(strategy, bp)
+ if strategy == "off" then
+ bp.done()
+ end
+end
+
+local function begin_testcase_setup_update(strategy, bp)
+ if strategy == "off" then
+ bp.reset_back()
+ end
+end
+
+
+local function end_testcase_setup(strategy, bp)
+ if strategy == "off" then
+ -- setup some dummy entities for checking the config update status
+ local host = "localhost"
+ local port = get_available_port()
+
+ local server = https_server.new(port, host, "http", nil, 1)
+ server:start()
+
+ local upstream_name, upstream_id = add_upstream(bp)
+ add_target(bp, upstream_id, host, port)
+ local api_host = add_api(bp, upstream_name)
+
+ local cfg = bp.done()
+ local yaml = declarative.to_yaml_string(cfg)
+ local admin_client = helpers.admin_client()
+ local res = assert(admin_client:send {
+ method = "POST",
+ path = "/config",
+ body = {
+ config = yaml,
+ },
+ headers = {
+ ["Content-Type"] = "multipart/form-data",
+ }
+ })
+ assert(res ~= nil)
+ assert(res.status == 201)
+ admin_client:close()
+
+ local ok, err = pcall(function ()
+ -- wait for dummy config ready
+ helpers.pwait_until(function ()
+ local oks = client_requests(3, api_host)
+ assert(oks == 3)
+ end, 15)
+ end)
+
+ server:shutdown()
+
+
+ if not ok then
+ error(err)
+ end
+
+ else
+ helpers.wait_for_all_config_update()
+ end
+end
+
+
+local function get_db_utils_for_dc_and_admin_api(strategy, tables)
+ local bp = assert(helpers.get_db_utils(strategy, tables))
+ if strategy ~= "off" then
+ bp = require("spec.fixtures.admin_api")
+ end
+ return bp
+end
+
+
+local function setup_prefix(p)
+ prefix = p
+ local bp = require("spec.fixtures.admin_api")
+ bp.set_prefix(prefix)
+end
+
+
+local function teardown_prefix()
+ prefix = ""
+ local bp = require("spec.fixtures.admin_api")
+ bp.set_prefix(prefix)
+end
+
+
+local function test_with_prefixes(itt, strategy, prefixes)
+ return function(description, fn)
+ if strategy == "off" then
+ itt(description, fn)
+ return
+ end
+
+ for _, name in ipairs(prefixes) do
+ itt(name .. ": " .. description, function()
+ setup_prefix("/" .. name)
+ local ok = fn()
+ teardown_prefix()
+ return ok
+ end)
+ end
+ end
+end
+
+
+local localhosts = {
+ ipv4 = "127.0.0.1",
+ ipv6 = "[::1]",
+ hostname = "localhost",
+}
+
+
+local consistencies = {"strict", "eventual"}
+
+
+local balancer_utils = {}
+--balancer_utils.
+balancer_utils.add_certificate = add_certificate
+balancer_utils.add_api = add_api
+balancer_utils.add_target = add_target
+balancer_utils.update_target = update_target
+balancer_utils.add_upstream = add_upstream
+balancer_utils.remove_upstream = remove_upstream
+balancer_utils.begin_testcase_setup = begin_testcase_setup
+balancer_utils.begin_testcase_setup_update = begin_testcase_setup_update
+balancer_utils.client_requests = client_requests
+balancer_utils.consistencies = consistencies
+balancer_utils.CONSISTENCY_FREQ = CONSISTENCY_FREQ
+balancer_utils.direct_request = direct_request
+balancer_utils.end_testcase_setup = end_testcase_setup
+balancer_utils.gen_multi_host = gen_multi_host
+balancer_utils.get_available_port = get_available_port
+balancer_utils.get_balancer_health = get_balancer_health
+balancer_utils.get_db_utils_for_dc_and_admin_api = get_db_utils_for_dc_and_admin_api
+balancer_utils.get_router_version = get_router_version
+balancer_utils.get_upstream = get_upstream
+balancer_utils.get_upstream_health = get_upstream_health
+balancer_utils.healthchecks_config = healthchecks_config
+balancer_utils.HEALTHCHECK_INTERVAL = HEALTHCHECK_INTERVAL
+balancer_utils.localhosts = localhosts
+balancer_utils.patch_api = patch_api
+balancer_utils.patch_upstream = patch_upstream
+balancer_utils.poll_wait_address_health = poll_wait_address_health
+balancer_utils.poll_wait_health = poll_wait_health
+balancer_utils.put_target_address_health = put_target_address_health
+balancer_utils.put_target_endpoint = put_target_endpoint
+balancer_utils.SLOTS = SLOTS
+balancer_utils.tcp_client_requests = tcp_client_requests
+balancer_utils.wait_for_router_update = wait_for_router_update
+balancer_utils.test_with_prefixes = test_with_prefixes
+
+
+return balancer_utils
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/blueprints.lua b/kong-versions/3.8.0/kong/spec/fixtures/blueprints.lua
new file mode 100644
index 00000000..681c794b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/blueprints.lua
@@ -0,0 +1,430 @@
+local ssl_fixtures = require "spec.fixtures.ssl"
+local cycle_aware_deep_merge = require("kong.tools.table").cycle_aware_deep_merge
+local fmt = string.format
+
+
+local Blueprint = {}
+Blueprint.__index = Blueprint
+
+
+function Blueprint:build(overrides)
+ overrides = overrides or {}
+ return cycle_aware_deep_merge(self.build_function(overrides), overrides)
+end
+
+
+function Blueprint:insert(overrides, options)
+ local entity, err = self.dao:insert(self:build(overrides), options)
+ if err then
+ error(err, 2)
+ end
+ return entity
+end
+
+
+-- insert blueprint in workspace specified by `ws`
+function Blueprint:insert_ws(overrides, workspace)
+ local old_workspace = ngx.ctx.workspace
+
+ ngx.ctx.workspace = workspace.id
+ local entity = self:insert(overrides)
+ ngx.ctx.workspace = old_workspace
+
+ return entity
+end
+
+
+function Blueprint:remove(overrides, options)
+ local entity, err = self.dao:remove({ id = overrides.id }, options)
+ if err then
+ error(err, 2)
+ end
+ return entity
+end
+
+
+function Blueprint:update(id, overrides, options)
+ local entity, err = self.dao:update(id, overrides, options)
+ if err then
+ error(err, 2)
+ end
+ return entity
+end
+
+
+function Blueprint:insert_n(n, overrides, options)
+ local res = {}
+ for i=1,n do
+ res[i] = self:insert(overrides, options)
+ end
+ return res
+end
+
+function Blueprint:truncate()
+ local _, err = self.dao:truncate()
+ if err then
+ error(err, 2)
+ end
+ return true
+end
+
+local function new_blueprint(dao, build_function)
+ return setmetatable({
+ dao = dao,
+ build_function = build_function,
+ }, Blueprint)
+end
+
+
+local Sequence = {}
+Sequence.__index = Sequence
+
+
+function Sequence:next()
+ return fmt(self.sequence_string, self:gen())
+end
+
+function Sequence:gen()
+ self.count = self.count + 1
+ return self.count
+end
+
+local function new_sequence(sequence_string, gen)
+ return setmetatable({
+ count = 0,
+ sequence_string = sequence_string,
+ gen = gen,
+ }, Sequence)
+end
+
+
+local _M = {}
+
+
+function _M.new(db)
+ local res = {}
+
+ -- prepare Sequences and random values
+ local sni_seq = new_sequence("server-name-%d")
+ local upstream_name_seq = new_sequence("upstream-%d")
+ local consumer_custom_id_seq = new_sequence("consumer-id-%d")
+ local consumer_username_seq = new_sequence("consumer-username-%d")
+ local named_service_name_seq = new_sequence("service-name-%d")
+ local named_service_host_seq = new_sequence("service-host-%d.test")
+ local named_route_name_seq = new_sequence("route-name-%d")
+ local named_route_host_seq = new_sequence("route-host-%d.test")
+ local acl_group_seq = new_sequence("acl-group-%d")
+ local jwt_key_seq = new_sequence("jwt-key-%d")
+ local oauth_code_seq = new_sequence("oauth-code-%d")
+ local keyauth_key_seq = new_sequence("keyauth-key-%d")
+ local hmac_username_seq = new_sequence("hmac-username-%d")
+ local workspace_name_seq = new_sequence("workspace-name-%d")
+ local key_sets_seq = new_sequence("key-sets-%d")
+ local keys_seq = new_sequence("keys-%d")
+
+ local random_ip = tostring(math.random(1, 255)) .. "." ..
+ tostring(math.random(1, 255)) .. "." ..
+ tostring(math.random(1, 255)) .. "." ..
+ tostring(math.random(1, 255))
+ local random_target = random_ip .. ":" .. tostring(math.random(1, 65535))
+
+ res.snis = new_blueprint(db.snis, function(overrides)
+ return {
+ name = overrides.name or sni_seq:next(),
+ certificate = overrides.certificate or res.certificates:insert(),
+ }
+ end)
+
+ res.certificates = new_blueprint(db.certificates, function()
+ return {
+ cert = ssl_fixtures.cert,
+ key = ssl_fixtures.key,
+ }
+ end)
+
+ res.ca_certificates = new_blueprint(db.ca_certificates, function()
+ return {
+ cert = ssl_fixtures.cert_ca,
+ }
+ end)
+
+ res.upstreams = new_blueprint(db.upstreams, function(overrides)
+ local slots = overrides.slots or 100
+ local name = overrides.name or upstream_name_seq:next()
+ local host_header = overrides.host_header or nil
+
+ return {
+ name = name,
+ slots = slots,
+ host_header = host_header,
+ }
+ end)
+
+ res.consumers = new_blueprint(db.consumers, function()
+ return {
+ custom_id = consumer_custom_id_seq:next(),
+ username = consumer_username_seq:next(),
+ }
+ end)
+
+ res.targets = new_blueprint(db.targets, function(overrides)
+ return {
+ weight = overrides.weight or 10,
+ upstream = overrides.upstream or res.upstreams:insert(),
+ target = overrides.target or random_target,
+ }
+ end)
+
+ res.plugins = new_blueprint(db.plugins, function()
+ return {}
+ end)
+
+ res.routes = new_blueprint(db.routes, function(overrides)
+ local service
+ if overrides.no_service then
+ service = nil
+ overrides.no_service = nil
+ else
+ service = overrides.service or res.services:insert()
+ end
+ return {
+ service = service,
+ }
+ end)
+
+ res.services = new_blueprint(db.services, function()
+ return {
+ protocol = "http",
+ host = "127.0.0.1",
+ port = 15555,
+ }
+ end)
+
+ res.clustering_data_planes = new_blueprint(db.clustering_data_planes, function()
+ return {
+ hostname = "dp.example.com",
+ ip = "127.0.0.1",
+ config_hash = "a9a166c59873245db8f1a747ba9a80a7",
+ }
+ end)
+
+ res.named_services = new_blueprint(db.services, function()
+ return {
+ protocol = "http",
+ name = named_service_name_seq:next(),
+ host = named_service_host_seq:next(),
+ port = 15555,
+ }
+ end)
+
+ res.named_routes = new_blueprint(db.routes, function(overrides)
+ return {
+ name = named_route_name_seq:next(),
+ hosts = { named_route_host_seq:next() },
+ service = overrides.service or res.services:insert(),
+ }
+ end)
+
+ res.acl_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "acl",
+ config = {},
+ }
+ end)
+
+ res.acls = new_blueprint(db.acls, function()
+ return {
+ group = acl_group_seq:next(),
+ }
+ end)
+
+ res.cors_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "cors",
+ config = {
+ origins = { "example.com" },
+ methods = { "GET" },
+ headers = { "origin", "type", "accepts"},
+ exposed_headers = { "x-auth-token" },
+ max_age = 23,
+ credentials = true,
+ }
+ }
+ end)
+
+ res.loggly_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "loggly",
+ config = {}, -- all fields have default values already
+ }
+ end)
+
+ res.tcp_log_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "tcp-log",
+ config = {
+ host = "127.0.0.1",
+ port = 35001,
+ },
+ }
+ end)
+
+ res.udp_log_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "udp-log",
+ config = {
+ host = "127.0.0.1",
+ port = 35001,
+ },
+ }
+ end)
+
+ res.jwt_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "jwt",
+ config = {},
+ }
+ end)
+
+ res.jwt_secrets = new_blueprint(db.jwt_secrets, function()
+ return {
+ key = jwt_key_seq:next(),
+ secret = "secret",
+ }
+ end)
+
+ res.oauth2_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "oauth2",
+ config = {
+ scopes = { "email", "profile" },
+ enable_authorization_code = true,
+ mandatory_scope = true,
+ provision_key = "provision123",
+ token_expiration = 5,
+ enable_implicit_grant = true,
+ }
+ }
+ end)
+
+ res.oauth2_credentials = new_blueprint(db.oauth2_credentials, function()
+ return {
+ name = "oauth2 credential",
+ client_secret = "secret",
+ }
+ end)
+
+ res.oauth2_authorization_codes = new_blueprint(db.oauth2_authorization_codes, function()
+ return {
+ code = oauth_code_seq:next(),
+ scope = "default",
+ }
+ end)
+
+ res.oauth2_tokens = new_blueprint(db.oauth2_tokens, function()
+ return {
+ token_type = "bearer",
+ expires_in = 1000000000,
+ scope = "default",
+ }
+ end)
+
+ res.key_auth_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "key-auth",
+ config = {},
+ }
+ end)
+
+ res.keyauth_credentials = new_blueprint(db.keyauth_credentials, function()
+ return {
+ key = keyauth_key_seq:next(),
+ }
+ end)
+
+ res.basicauth_credentials = new_blueprint(db.basicauth_credentials, function()
+ return {}
+ end)
+
+ res.hmac_auth_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "hmac-auth",
+ config = {},
+ }
+ end)
+
+ res.hmacauth_credentials = new_blueprint(db.hmacauth_credentials, function()
+ return {
+ username = hmac_username_seq:next(),
+ secret = "secret",
+ }
+ end)
+
+ res.rate_limiting_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "rate-limiting",
+ config = {},
+ }
+ end)
+
+ res.response_ratelimiting_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "response-ratelimiting",
+ config = {},
+ }
+ end)
+
+ res.datadog_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "datadog",
+ config = {},
+ }
+ end)
+
+ res.statsd_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "statsd",
+ config = {},
+ }
+ end)
+
+ res.workspaces = new_blueprint(db.workspaces, function()
+ return {
+ name = workspace_name_seq:next(),
+ }
+ end)
+
+ res.rewriter_plugins = new_blueprint(db.plugins, function()
+ return {
+ name = "rewriter",
+ config = {},
+ }
+ end)
+
+ res.key_sets = new_blueprint(db.key_sets, function()
+ return {
+ name = key_sets_seq:next(),
+ }
+ end)
+
+ res.keys = new_blueprint(db.keys, function()
+ return {
+ name = keys_seq:next(),
+ }
+ end)
+
+ res.vaults = new_blueprint(db.vaults, function()
+ return {}
+ end)
+
+ local filter_chains_seq = new_sequence("filter-chains-%d")
+ res.filter_chains = new_blueprint(db.filter_chains, function()
+ return {
+ name = filter_chains_seq:next(),
+ }
+ end)
+
+ return res
+end
+
+return _M
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/burst.yml b/kong-versions/3.8.0/kong/spec/fixtures/burst.yml
new file mode 100644
index 00000000..46f03c31
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/burst.yml
@@ -0,0 +1,23649 @@
+_format_version: "1.1"
+services:
+- connect_timeout: 60000
+ host: something-static.4test-any.svc
+ name: 4test-any.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-any.example.test
+ name: 4test-any.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-any.svc
+ name: 4test-any.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-any.example.test
+ name: 4test-any.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-any.svc
+ name: 4test-any.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-any-admin.example.test
+ name: 4test-any.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-any.example.test
+ name: 4test-any.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-any.svc
+ name: 4test-any.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-any-admin.example.test
+ name: 4test-any.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-any.svc
+ name: 4test-any.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-any.example.test
+ name: 4test-any.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing1-otherthing.svc
+ name: 4test-athing1-otherthing.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-otherthing.example.test
+ name: 4test-athing1-otherthing.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing1-otherthing.svc
+ name: 4test-athing1-otherthing.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-otherthing.example.test
+ name: 4test-athing1-otherthing.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing1-otherthing.svc
+ name: 4test-athing1-otherthing.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-otherthing-admin.example.test
+ name: 4test-athing1-otherthing.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing1-otherthing.example.test
+ name: 4test-athing1-otherthing.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing1-otherthing.svc
+ name: 4test-athing1-otherthing.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-otherthing-admin.example.test
+ name: 4test-athing1-otherthing.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing1-otherthing.svc
+ name: 4test-athing1-otherthing.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-otherthing.example.test
+ name: 4test-athing1-otherthing.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing1-name.svc
+ name: 4test-athing1-name.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-name.example.test
+ name: 4test-athing1-name.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing1-name.svc
+ name: 4test-athing1-name.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-name.example.test
+ name: 4test-athing1-name.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing1-name.svc
+ name: 4test-athing1-name.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-name-admin.example.test
+ name: 4test-athing1-name.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing1-name.example.test
+ name: 4test-athing1-name.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing1-name.svc
+ name: 4test-athing1-name.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-name-admin.example.test
+ name: 4test-athing1-name.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing1-name.svc
+ name: 4test-athing1-name.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-name.example.test
+ name: 4test-athing1-name.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing1-othername.svc
+ name: 4test-athing1-othername.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-othername.example.test
+ name: 4test-athing1-othername.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing1-othername.svc
+ name: 4test-athing1-othername.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-othername.example.test
+ name: 4test-athing1-othername.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing1-othername.svc
+ name: 4test-athing1-othername.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-othername-admin.example.test
+ name: 4test-athing1-othername.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing1-othername.example.test
+ name: 4test-athing1-othername.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing1-othername.svc
+ name: 4test-athing1-othername.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-othername-admin.example.test
+ name: 4test-athing1-othername.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing1-othername.svc
+ name: 4test-athing1-othername.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-othername.example.test
+ name: 4test-athing1-othername.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing1-morenames.svc
+ name: 4test-athing1-morenames.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-morenames.example.test
+ name: 4test-athing1-morenames.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing1-morenames.svc
+ name: 4test-athing1-morenames.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-morenames.example.test
+ name: 4test-athing1-morenames.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing1-morenames.svc
+ name: 4test-athing1-morenames.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-morenames-admin.example.test
+ name: 4test-athing1-morenames.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing1-morenames.example.test
+ name: 4test-athing1-morenames.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing1-morenames.svc
+ name: 4test-athing1-morenames.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-morenames-admin.example.test
+ name: 4test-athing1-morenames.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing1-morenames.svc
+ name: 4test-athing1-morenames.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing1-morenames.example.test
+ name: 4test-athing1-morenames.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-thatthing.svc
+ name: 4test-thatthing.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-thatthing.example.test
+ name: 4test-thatthing.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-thatthing.svc
+ name: 4test-thatthing.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-thatthing.example.test
+ name: 4test-thatthing.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-thatthing.svc
+ name: 4test-thatthing.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-thatthing-admin.example.test
+ name: 4test-thatthing.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-thatthing.example.test
+ name: 4test-thatthing.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-thatthing.svc
+ name: 4test-thatthing.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-thatthing-admin.example.test
+ name: 4test-thatthing.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-thatthing.svc
+ name: 4test-thatthing.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-thatthing.example.test
+ name: 4test-thatthing.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing2-suchthing.svc
+ name: 4test-athing2-suchthing.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing2-suchthing.example.test
+ name: 4test-athing2-suchthing.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing2-suchthing.svc
+ name: 4test-athing2-suchthing.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing2-suchthing.example.test
+ name: 4test-athing2-suchthing.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing2-suchthing.svc
+ name: 4test-athing2-suchthing.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing2-suchthing-admin.example.test
+ name: 4test-athing2-suchthing.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing2-suchthing.example.test
+ name: 4test-athing2-suchthing.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing2-suchthing.svc
+ name: 4test-athing2-suchthing.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing2-suchthing-admin.example.test
+ name: 4test-athing2-suchthing.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing2-suchthing.svc
+ name: 4test-athing2-suchthing.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing2-suchthing.example.test
+ name: 4test-athing2-suchthing.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing2-wow.svc
+ name: 4test-athing2-wow.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing2-wow.example.test
+ name: 4test-athing2-wow.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing2-wow.svc
+ name: 4test-athing2-wow.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing2-wow.example.test
+ name: 4test-athing2-wow.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing2-wow.svc
+ name: 4test-athing2-wow.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing2-wow-admin.example.test
+ name: 4test-athing2-wow.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing2-wow.example.test
+ name: 4test-athing2-wow.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing2-wow.svc
+ name: 4test-athing2-wow.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing2-wow-admin.example.test
+ name: 4test-athing2-wow.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing2-wow.svc
+ name: 4test-athing2-wow.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing2-wow.example.test
+ name: 4test-athing2-wow.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-manythings.svc
+ name: 4test-manythings.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-manythings.example.test
+ name: 4test-manythings.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-manythings.svc
+ name: 4test-manythings.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-manythings.example.test
+ name: 4test-manythings.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-manythings.svc
+ name: 4test-manythings.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-manythings-admin.example.test
+ name: 4test-manythings.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-manythings.example.test
+ name: 4test-manythings.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-manythings.svc
+ name: 4test-manythings.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-manythings-admin.example.test
+ name: 4test-manythings.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-manythings.svc
+ name: 4test-manythings.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-manythings.example.test
+ name: 4test-manythings.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-verythings.svc
+ name: 4test-verythings.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-verythings.example.test
+ name: 4test-verythings.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-verythings.svc
+ name: 4test-verythings.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-verythings.example.test
+ name: 4test-verythings.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-verythings.svc
+ name: 4test-verythings.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-verythings-admin.example.test
+ name: 4test-verythings.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-verythings.example.test
+ name: 4test-verythings.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-verythings.svc
+ name: 4test-verythings.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-verythings-admin.example.test
+ name: 4test-verythings.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-verythings.svc
+ name: 4test-verythings.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-verythings.example.test
+ name: 4test-verythings.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing3-tester2.svc
+ name: 4test-athing3-tester2.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing3-tester2.example.test
+ name: 4test-athing3-tester2.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing3-tester2.svc
+ name: 4test-athing3-tester2.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing3-tester2.example.test
+ name: 4test-athing3-tester2.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing3-tester2.svc
+ name: 4test-athing3-tester2.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing3-tester2-admin.example.test
+ name: 4test-athing3-tester2.testing-ingress-admin.01
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing3-tester2.example.test
+ name: 4test-athing3-tester2.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static.4test-athing3-tester2.svc
+ name: 4test-athing3-tester2.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing3-tester2-admin.example.test
+ name: 4test-athing3-tester2.testing-ingress-admin.00
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing3-tester2.example.test
+ name: 4test-athing3-tester2.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing3-oldthings.svc
+ name: 4test-athing3-oldthings.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing3-oldthings.example.test
+ name: 4test-athing3-oldthings.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing3-oldthings.svc
+ name: 4test-athing3-oldthings.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing3-oldthings.example.test
+ name: 4test-athing3-oldthings.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing3-oldthings.svc
+ name: 4test-athing3-oldthings.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing3-oldthings-admin.example.test
+ name: 4test-athing3-oldthings.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing3-oldthings.example.test
+ name: 4test-athing3-oldthings.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing3-oldthings.svc
+ name: 4test-athing3-oldthings.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing3-oldthings-admin.example.test
+ name: 4test-athing3-oldthings.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing3-oldthings.svc
+ name: 4test-athing3-oldthings.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing3-oldthings.example.test
+ name: 4test-athing3-oldthings.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-demo1.svc
+ name: 4test-demo1.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-demo1.example.test
+ name: 4test-demo1.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-demo1.svc
+ name: 4test-demo1.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-demo1.example.test
+ name: 4test-demo1.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-demo1.svc
+ name: 4test-demo1.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-demo1-admin.example.test
+ name: 4test-demo1.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-demo1.example.test
+ name: 4test-demo1.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-demo1.svc
+ name: 4test-demo1.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-demo1-admin.example.test
+ name: 4test-demo1.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-demo1.svc
+ name: 4test-demo1.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-demo1.example.test
+ name: 4test-demo1.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-demo2.svc
+ name: 4test-demo2.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-demo2.example.test
+ name: 4test-demo2.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-demo2.svc
+ name: 4test-demo2.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-demo2.example.test
+ name: 4test-demo2.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-demo2.svc
+ name: 4test-demo2.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-demo2-admin.example.test
+ name: 4test-demo2.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-demo2.example.test
+ name: 4test-demo2.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-demo2.svc
+ name: 4test-demo2.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-demo2-admin.example.test
+ name: 4test-demo2.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-demo2.svc
+ name: 4test-demo2.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-demo2.example.test
+ name: 4test-demo2.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-dev.svc
+ name: 4test-dev.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-dev.example.test
+ name: 4test-dev.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-dev.svc
+ name: 4test-dev.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-dev.example.test
+ name: 4test-dev.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-dev.svc
+ name: 4test-dev.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-dev-admin.example.test
+ name: 4test-dev.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-dev.example.test
+ name: 4test-dev.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-dev.svc
+ name: 4test-dev.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-dev-admin.example.test
+ name: 4test-dev.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-dev.svc
+ name: 4test-dev.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-dev.example.test
+ name: 4test-dev.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing4-sothings.svc
+ name: 4test-athing4-sothings.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing4-sothings.example.test
+ name: 4test-athing4-sothings.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing4-sothings.svc
+ name: 4test-athing4-sothings.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing4-sothings.example.test
+ name: 4test-athing4-sothings.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing4-sothings.svc
+ name: 4test-athing4-sothings.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing4-sothings-admin.example.test
+ name: 4test-athing4-sothings.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing4-sothings.example.test
+ name: 4test-athing4-sothings.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing4-sothings.svc
+ name: 4test-athing4-sothings.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing4-sothings-admin.example.test
+ name: 4test-athing4-sothings.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing4-sothings.svc
+ name: 4test-athing4-sothings.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing4-sothings.example.test
+ name: 4test-athing4-sothings.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing5-cousin.svc
+ name: 4test-athing5-cousin.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-cousin.example.test
+ name: 4test-athing5-cousin.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing5-cousin.svc
+ name: 4test-athing5-cousin.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-cousin.example.test
+ name: 4test-athing5-cousin.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing5-cousin.svc
+ name: 4test-athing5-cousin.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-cousin-admin.example.test
+ name: 4test-athing5-cousin.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing5-cousin.example.test
+ name: 4test-athing5-cousin.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing5-cousin.svc
+ name: 4test-athing5-cousin.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-cousin-admin.example.test
+ name: 4test-athing5-cousin.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing5-cousin.svc
+ name: 4test-athing5-cousin.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-cousin.example.test
+ name: 4test-athing5-cousin.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing5-verythings.svc
+ name: 4test-athing5-verythings.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-verythings.example.test
+ name: 4test-athing5-verythings.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing5-verythings.svc
+ name: 4test-athing5-verythings.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-verythings.example.test
+ name: 4test-athing5-verythings.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing5-verythings.svc
+ name: 4test-athing5-verythings.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-verythings-admin.example.test
+ name: 4test-athing5-verythings.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing5-verythings.example.test
+ name: 4test-athing5-verythings.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing5-verythings.svc
+ name: 4test-athing5-verythings.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-verythings-admin.example.test
+ name: 4test-athing5-verythings.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing5-verythings.svc
+ name: 4test-athing5-verythings.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-verythings.example.test
+ name: 4test-athing5-verythings.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing5-ygbkm.svc
+ name: 4test-athing5-ygbkm.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-ygbkm.example.test
+ name: 4test-athing5-ygbkm.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing5-ygbkm.svc
+ name: 4test-athing5-ygbkm.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-ygbkm.example.test
+ name: 4test-athing5-ygbkm.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing5-ygbkm.svc
+ name: 4test-athing5-ygbkm.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-ygbkm-admin.example.test
+ name: 4test-athing5-ygbkm.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing5-ygbkm.example.test
+ name: 4test-athing5-ygbkm.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing5-ygbkm.svc
+ name: 4test-athing5-ygbkm.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-ygbkm-admin.example.test
+ name: 4test-athing5-ygbkm.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing5-ygbkm.svc
+ name: 4test-athing5-ygbkm.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-ygbkm.example.test
+ name: 4test-athing5-ygbkm.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing5-gothings.svc
+ name: 4test-athing5-gothings.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-gothings.example.test
+ name: 4test-athing5-gothings.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing5-gothings.svc
+ name: 4test-athing5-gothings.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-gothings.example.test
+ name: 4test-athing5-gothings.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing5-gothings.svc
+ name: 4test-athing5-gothings.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-gothings-admin.example.test
+ name: 4test-athing5-gothings.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing5-gothings.example.test
+ name: 4test-athing5-gothings.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing5-gothings.svc
+ name: 4test-athing5-gothings.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-gothings-admin.example.test
+ name: 4test-athing5-gothings.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing5-gothings.svc
+ name: 4test-athing5-gothings.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-gothings.example.test
+ name: 4test-athing5-gothings.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing5-clever.svc
+ name: 4test-athing5-clever.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-clever.example.test
+ name: 4test-athing5-clever.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing5-clever.svc
+ name: 4test-athing5-clever.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-clever.example.test
+ name: 4test-athing5-clever.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing5-clever.svc
+ name: 4test-athing5-clever.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-clever-admin.example.test
+ name: 4test-athing5-clever.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing5-clever.example.test
+ name: 4test-athing5-clever.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing5-clever.svc
+ name: 4test-athing5-clever.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-clever-admin.example.test
+ name: 4test-athing5-clever.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing5-clever.svc
+ name: 4test-athing5-clever.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing5-clever.example.test
+ name: 4test-athing5-clever.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing6-itis.svc
+ name: 4test-athing6-itis.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing6-itis.example.test
+ name: 4test-athing6-itis.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing6-itis.svc
+ name: 4test-athing6-itis.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing6-itis.example.test
+ name: 4test-athing6-itis.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing6-itis.svc
+ name: 4test-athing6-itis.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing6-itis-admin.example.test
+ name: 4test-athing6-itis.testing-ingress-admin.01
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing6-itis.example.test
+ name: 4test-athing6-itis.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static.4test-athing6-itis.svc
+ name: 4test-athing6-itis.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing6-itis-admin.example.test
+ name: 4test-athing6-itis.testing-ingress-admin.00
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing6-itis.example.test
+ name: 4test-athing6-itis.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-tldr.svc
+ name: 4test-tldr.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-tldr.example.test
+ name: 4test-tldr.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-tldr.svc
+ name: 4test-tldr.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-tldr.example.test
+ name: 4test-tldr.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-tldr.svc
+ name: 4test-tldr.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-tldr-admin.example.test
+ name: 4test-tldr.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-tldr.example.test
+ name: 4test-tldr.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-tldr.svc
+ name: 4test-tldr.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-tldr-admin.example.test
+ name: 4test-tldr.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-tldr.svc
+ name: 4test-tldr.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-tldr.example.test
+ name: 4test-tldr.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-shock.svc
+ name: 4test-shock.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-shock.example.test
+ name: 4test-shock.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-shock.svc
+ name: 4test-shock.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-shock.example.test
+ name: 4test-shock.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-shock.svc
+ name: 4test-shock.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-shock-admin.example.test
+ name: 4test-shock.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-shock.example.test
+ name: 4test-shock.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-shock.svc
+ name: 4test-shock.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-shock-admin.example.test
+ name: 4test-shock.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-shock.svc
+ name: 4test-shock.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-shock.example.test
+ name: 4test-shock.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-local.svc
+ name: 4test-local.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-local.example.test
+ name: 4test-local.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-local.svc
+ name: 4test-local.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-local.example.test
+ name: 4test-local.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-local.svc
+ name: 4test-local.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-local-admin.example.test
+ name: 4test-local.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-local.example.test
+ name: 4test-local.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-local.svc
+ name: 4test-local.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-local-admin.example.test
+ name: 4test-local.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-local.svc
+ name: 4test-local.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-local.example.test
+ name: 4test-local.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-newthings.svc
+ name: 4test-newthings.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-newthings.example.test
+ name: 4test-newthings.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-newthings.svc
+ name: 4test-newthings.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-newthings.example.test
+ name: 4test-newthings.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-newthings.svc
+ name: 4test-newthings.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-newthings-admin.example.test
+ name: 4test-newthings.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-newthings.example.test
+ name: 4test-newthings.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-newthings.svc
+ name: 4test-newthings.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-newthings-admin.example.test
+ name: 4test-newthings.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-newthings.svc
+ name: 4test-newthings.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-newthings.example.test
+ name: 4test-newthings.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing7-halftest.svc
+ name: 4test-athing7-halftest.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-halftest.example.test
+ name: 4test-athing7-halftest.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing7-halftest.svc
+ name: 4test-athing7-halftest.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-halftest.example.test
+ name: 4test-athing7-halftest.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing7-halftest.svc
+ name: 4test-athing7-halftest.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-halftest-admin.example.test
+ name: 4test-athing7-halftest.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing7-halftest.example.test
+ name: 4test-athing7-halftest.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing7-halftest.svc
+ name: 4test-athing7-halftest.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-halftest-admin.example.test
+ name: 4test-athing7-halftest.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing7-halftest.svc
+ name: 4test-athing7-halftest.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-halftest.example.test
+ name: 4test-athing7-halftest.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing7-moartests.svc
+ name: 4test-athing7-moartests.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-moartests.example.test
+ name: 4test-athing7-moartests.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing7-moartests.svc
+ name: 4test-athing7-moartests.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-moartests.example.test
+ name: 4test-athing7-moartests.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing7-moartests.svc
+ name: 4test-athing7-moartests.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-moartests-admin.example.test
+ name: 4test-athing7-moartests.testing-ingress-admin.01
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing7-moartests.example.test
+ name: 4test-athing7-moartests.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static.4test-athing7-moartests.svc
+ name: 4test-athing7-moartests.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-moartests-admin.example.test
+ name: 4test-athing7-moartests.testing-ingress-admin.00
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing7-moartests.example.test
+ name: 4test-athing7-moartests.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing7-gettests.svc
+ name: 4test-athing7-gettests.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-gettests.example.test
+ name: 4test-athing7-gettests.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing7-gettests.svc
+ name: 4test-athing7-gettests.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-gettests.example.test
+ name: 4test-athing7-gettests.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing7-gettests.svc
+ name: 4test-athing7-gettests.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-gettests-admin.example.test
+ name: 4test-athing7-gettests.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing7-gettests.example.test
+ name: 4test-athing7-gettests.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing7-gettests.svc
+ name: 4test-athing7-gettests.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-gettests-admin.example.test
+ name: 4test-athing7-gettests.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing7-gettests.svc
+ name: 4test-athing7-gettests.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing7-gettests.example.test
+ name: 4test-athing7-gettests.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-gottests.svc
+ name: 4test-gottests.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-gottests.example.test
+ name: 4test-gottests.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-gottests.svc
+ name: 4test-gottests.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-gottests.example.test
+ name: 4test-gottests.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-gottests.svc
+ name: 4test-gottests.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-gottests-admin.example.test
+ name: 4test-gottests.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-gottests.example.test
+ name: 4test-gottests.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-gottests.svc
+ name: 4test-gottests.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-gottests-admin.example.test
+ name: 4test-gottests.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-gottests.svc
+ name: 4test-gottests.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-gottests.example.test
+ name: 4test-gottests.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-fam.svc
+ name: 4test-fam.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-fam.example.test
+ name: 4test-fam.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-fam.svc
+ name: 4test-fam.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-fam.example.test
+ name: 4test-fam.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-fam.svc
+ name: 4test-fam.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-fam-admin.example.test
+ name: 4test-fam.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-fam.example.test
+ name: 4test-fam.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-fam.svc
+ name: 4test-fam.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-fam-admin.example.test
+ name: 4test-fam.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-fam.svc
+ name: 4test-fam.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-fam.example.test
+ name: 4test-fam.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing8-2007.svc
+ name: 4test-athing8-2007.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing8-2007.example.test
+ name: 4test-athing8-2007.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing8-2007.svc
+ name: 4test-athing8-2007.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing8-2007.example.test
+ name: 4test-athing8-2007.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing8-2007.svc
+ name: 4test-athing8-2007.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing8-2007-admin.example.test
+ name: 4test-athing8-2007.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing8-2007.example.test
+ name: 4test-athing8-2007.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing8-2007.svc
+ name: 4test-athing8-2007.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing8-2007-admin.example.test
+ name: 4test-athing8-2007.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing8-2007.svc
+ name: 4test-athing8-2007.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing8-2007.example.test
+ name: 4test-athing8-2007.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-grantests.svc
+ name: 4test-grantests.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-grantests.example.test
+ name: 4test-grantests.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-grantests.svc
+ name: 4test-grantests.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-grantests.example.test
+ name: 4test-grantests.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-grantests.svc
+ name: 4test-grantests.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-grantests-admin.example.test
+ name: 4test-grantests.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-grantests.example.test
+ name: 4test-grantests.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-grantests.svc
+ name: 4test-grantests.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-grantests-admin.example.test
+ name: 4test-grantests.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-grantests.svc
+ name: 4test-grantests.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-grantests.example.test
+ name: 4test-grantests.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-btests.svc
+ name: 4test-btests.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-btests.example.test
+ name: 4test-btests.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-btests.svc
+ name: 4test-btests.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-btests.example.test
+ name: 4test-btests.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-btests.svc
+ name: 4test-btests.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-btests-admin.example.test
+ name: 4test-btests.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-btests.example.test
+ name: 4test-btests.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-btests.svc
+ name: 4test-btests.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-btests-admin.example.test
+ name: 4test-btests.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-btests.svc
+ name: 4test-btests.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-btests.example.test
+ name: 4test-btests.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-lttl.svc
+ name: 4test-lttl.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-lttl.example.test
+ name: 4test-lttl.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-lttl.svc
+ name: 4test-lttl.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-lttl.example.test
+ name: 4test-lttl.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-lttl.svc
+ name: 4test-lttl.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-lttl-admin.example.test
+ name: 4test-lttl.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-lttl.example.test
+ name: 4test-lttl.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-lttl.svc
+ name: 4test-lttl.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-lttl-admin.example.test
+ name: 4test-lttl.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-lttl.svc
+ name: 4test-lttl.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-lttl.example.test
+ name: 4test-lttl.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing9-valid.svc
+ name: 4test-athing9-valid.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-valid.example.test
+ name: 4test-athing9-valid.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing9-valid.svc
+ name: 4test-athing9-valid.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-valid.example.test
+ name: 4test-athing9-valid.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing9-valid.svc
+ name: 4test-athing9-valid.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-valid-admin.example.test
+ name: 4test-athing9-valid.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing9-valid.example.test
+ name: 4test-athing9-valid.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing9-valid.svc
+ name: 4test-athing9-valid.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-valid-admin.example.test
+ name: 4test-athing9-valid.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing9-valid.svc
+ name: 4test-athing9-valid.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-valid.example.test
+ name: 4test-athing9-valid.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing9-morevalid.svc
+ name: 4test-athing9-morevalid.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-morevalid.example.test
+ name: 4test-athing9-morevalid.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing9-morevalid.svc
+ name: 4test-athing9-morevalid.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-morevalid.example.test
+ name: 4test-athing9-morevalid.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing9-morevalid.svc
+ name: 4test-athing9-morevalid.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-morevalid-admin.example.test
+ name: 4test-athing9-morevalid.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing9-morevalid.example.test
+ name: 4test-athing9-morevalid.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing9-morevalid.svc
+ name: 4test-athing9-morevalid.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-morevalid-admin.example.test
+ name: 4test-athing9-morevalid.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing9-morevalid.svc
+ name: 4test-athing9-morevalid.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-morevalid.example.test
+ name: 4test-athing9-morevalid.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing9-wanttotest.svc
+ name: 4test-athing9-wanttotest.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-wanttotest.example.test
+ name: 4test-athing9-wanttotest.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing9-wanttotest.svc
+ name: 4test-athing9-wanttotest.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-wanttotest.example.test
+ name: 4test-athing9-wanttotest.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing9-wanttotest.svc
+ name: 4test-athing9-wanttotest.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-wanttotest-admin.example.test
+ name: 4test-athing9-wanttotest.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing9-wanttotest.example.test
+ name: 4test-athing9-wanttotest.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing9-wanttotest.svc
+ name: 4test-athing9-wanttotest.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-wanttotest-admin.example.test
+ name: 4test-athing9-wanttotest.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing9-wanttotest.svc
+ name: 4test-athing9-wanttotest.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-wanttotest.example.test
+ name: 4test-athing9-wanttotest.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing9-whichtest.svc
+ name: 4test-athing9-whichtest.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-whichtest.example.test
+ name: 4test-athing9-whichtest.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing9-whichtest.svc
+ name: 4test-athing9-whichtest.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-whichtest.example.test
+ name: 4test-athing9-whichtest.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing9-whichtest.svc
+ name: 4test-athing9-whichtest.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-whichtest-admin.example.test
+ name: 4test-athing9-whichtest.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing9-whichtest.example.test
+ name: 4test-athing9-whichtest.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing9-whichtest.svc
+ name: 4test-athing9-whichtest.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-whichtest-admin.example.test
+ name: 4test-athing9-whichtest.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing9-whichtest.svc
+ name: 4test-athing9-whichtest.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-whichtest.example.test
+ name: 4test-athing9-whichtest.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing9-frank.svc
+ name: 4test-athing9-frank.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-frank.example.test
+ name: 4test-athing9-frank.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing9-nsf.svc
+ name: 4test-athing9-nsf.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-nsf.example.test
+ name: 4test-athing9-nsf.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing9-nsf.svc
+ name: 4test-athing9-nsf.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-nsf.example.test
+ name: 4test-athing9-nsf.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing9-nsf.svc
+ name: 4test-athing9-nsf.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-nsf-admin.example.test
+ name: 4test-athing9-nsf.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing9-nsf.example.test
+ name: 4test-athing9-nsf.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing9-nsf.svc
+ name: 4test-athing9-nsf.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-nsf-admin.example.test
+ name: 4test-athing9-nsf.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing9-nsf.svc
+ name: 4test-athing9-nsf.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing9-nsf.example.test
+ name: 4test-athing9-nsf.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing10-jnk.svc
+ name: 4test-athing10-jnk.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-jnk.example.test
+ name: 4test-athing10-jnk.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing10-jnk.svc
+ name: 4test-athing10-jnk.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-jnk.example.test
+ name: 4test-athing10-jnk.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing10-jnk.svc
+ name: 4test-athing10-jnk.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-jnk-admin.example.test
+ name: 4test-athing10-jnk.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing10-jnk.example.test
+ name: 4test-athing10-jnk.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing10-jnk.svc
+ name: 4test-athing10-jnk.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-jnk-admin.example.test
+ name: 4test-athing10-jnk.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing10-jnk.svc
+ name: 4test-athing10-jnk.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-jnk.example.test
+ name: 4test-athing10-jnk.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing10-local.svc
+ name: 4test-athing10-local.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-local.example.test
+ name: 4test-athing10-local.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing10-local.svc
+ name: 4test-athing10-local.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-local.example.test
+ name: 4test-athing10-local.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing10-local.svc
+ name: 4test-athing10-local.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-local-admin.example.test
+ name: 4test-athing10-local.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing10-local.example.test
+ name: 4test-athing10-local.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing10-local.svc
+ name: 4test-athing10-local.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-local-admin.example.test
+ name: 4test-athing10-local.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing10-local.svc
+ name: 4test-athing10-local.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-local.example.test
+ name: 4test-athing10-local.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing10-bbitw.svc
+ name: 4test-athing10-bbitw.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-bbitw.example.test
+ name: 4test-athing10-bbitw.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing10-bbitw.svc
+ name: 4test-athing10-bbitw.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-bbitw.example.test
+ name: 4test-athing10-bbitw.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing10-bbitw.svc
+ name: 4test-athing10-bbitw.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-bbitw-admin.example.test
+ name: 4test-athing10-bbitw.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing10-bbitw.example.test
+ name: 4test-athing10-bbitw.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing10-bbitw.svc
+ name: 4test-athing10-bbitw.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-bbitw-admin.example.test
+ name: 4test-athing10-bbitw.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing10-bbitw.svc
+ name: 4test-athing10-bbitw.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-bbitw.example.test
+ name: 4test-athing10-bbitw.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing10-gettests.svc
+ name: 4test-athing10-gettests.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-gettests.example.test
+ name: 4test-athing10-gettests.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing10-gettests.svc
+ name: 4test-athing10-gettests.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-gettests.example.test
+ name: 4test-athing10-gettests.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing10-gettests.svc
+ name: 4test-athing10-gettests.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-gettests-admin.example.test
+ name: 4test-athing10-gettests.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing10-gettests.example.test
+ name: 4test-athing10-gettests.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing10-gettests.svc
+ name: 4test-athing10-gettests.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-gettests-admin.example.test
+ name: 4test-athing10-gettests.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing10-gettests.svc
+ name: 4test-athing10-gettests.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-gettests.example.test
+ name: 4test-athing10-gettests.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-athing10-phn.svc
+ name: 4test-athing10-phn.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-phn.example.test
+ name: 4test-athing10-phn.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-athing10-phn.svc
+ name: 4test-athing10-phn.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-phn.example.test
+ name: 4test-athing10-phn.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-athing10-phn.svc
+ name: 4test-athing10-phn.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-tim-admin.example.test
+ name: 4test-athing10-phn.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-athing10-phn.example.test
+ name: 4test-athing10-phn.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-athing10-phn.svc
+ name: 4test-athing10-phn.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-tim-admin.example.test
+ name: 4test-athing10-phn.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-athing10-phn.svc
+ name: 4test-athing10-phn.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-athing10-phn.example.test
+ name: 4test-athing10-phn.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-test1.svc
+ name: 4test-test1.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-test1.example.test
+ name: 4test-test1.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-test1.svc
+ name: 4test-test1.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-test1.example.test
+ name: 4test-test1.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-test1.svc
+ name: 4test-test1.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-test1-admin.example.test
+ name: 4test-test1.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-test1.example.test
+ name: 4test-test1.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-test1.svc
+ name: 4test-test1.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-test1-admin.example.test
+ name: 4test-test1.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-test1.svc
+ name: 4test-test1.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-test1.example.test
+ name: 4test-test1.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: something-static.4test-test2.svc
+ name: 4test-test2.something-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-test2.example.test
+ name: 4test-test2.something-ingress-static.00
+ paths:
+ - /something/4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing-ws.4test-test2.svc
+ name: 4test-test2.testing-testing-ws.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-test2.example.test
+ name: 4test-test2.testing-ingress-app.01
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/ws
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-testing.4test-test2.svc
+ name: 4test-test2.testing-testing.8000
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-test2-admin.example.test
+ name: 4test-test2.testing-ingress-admin.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+ - hosts:
+ - 4test-test2.example.test
+ name: 4test-test2.testing-ingress-app.00
+ methods:
+ - POST
+ - GET
+ - PATCH
+ - PUT
+ - DELETE
+ paths:
+ - /4test/api
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: false
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: testing-static-admin.4test-test2.svc
+ name: 4test-test2.testing-static-admin.80
+ path: /static/admin
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-test2-admin.example.test
+ name: 4test-test2.testing-ingress-admin-static.00
+ methods:
+ - GET
+ paths:
+ - /4test/static/admin
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+ plugins:
+ - name: ip-restriction
+ config:
+ deny: null
+ allow:
+ - 0.0.0.0/0
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
+- connect_timeout: 60000
+ host: testing-static.4test-test2.svc
+ name: 4test-test2.testing-static.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - 4test-test2.example.test
+ name: 4test-test2.testing-ingress-static.00
+ paths:
+ - /4test
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: konga.kong.svc
+ name: kong.konga.http
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - konga-k8s-demo01-kong.example.test
+ name: kong.konga.00
+ paths:
+ - /
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: grafana.monitoring.svc
+ name: monitoring.grafana.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - monitor-k8s-demo01-kong.example.test
+ name: monitoring.grafana.00
+ paths:
+ - /
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+- connect_timeout: 60000
+ host: prometheus-alertmanager.monitoring.svc
+ name: monitoring.prometheus-alertmanager.80
+ path: /
+ port: 80
+ protocol: http
+ read_timeout: 60000
+ retries: 5
+ write_timeout: 60000
+ routes:
+ - hosts:
+ - alerts-k8s-demo01.example.test
+ name: monitoring.prometheus-alertmanager.00
+ paths:
+ - /
+ preserve_host: true
+ protocols:
+ - http
+ - https
+ regex_priority: 0
+ strip_path: true
+ https_redirect_status_code: 426
+upstreams:
+- name: grafana.monitoring.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.148.48:3000
+ weight: 100
+- name: konga.kong.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.223.36:1337
+ weight: 100
+- name: prometheus-alertmanager.monitoring.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.228.142:9093
+ weight: 100
+- name: something-static.4test-any.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.117:80
+ weight: 100
+- name: something-static.4test-athing1-otherthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.197.249:80
+ weight: 100
+- name: something-static.4test-athing1-name.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.172:80
+ weight: 100
+- name: something-static.4test-athing1-othername.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.96.92.92:80
+ weight: 100
+- name: something-static.4test-athing1-morenames.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.209:80
+ weight: 100
+- name: something-static.4test-thatthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.31.239:80
+ weight: 100
+- name: something-static.4test-athing2-suchthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.1.134:80
+ weight: 100
+- name: something-static.4test-athing2-wow.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.1.159:80
+ weight: 100
+- name: something-static.4test-manythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.180.113:80
+ weight: 100
+- name: something-static.4test-verythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.52:80
+ weight: 100
+- name: something-static.4test-athing3-tester2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.115.236.20:80
+ weight: 100
+- name: something-static.4test-athing3-oldthings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.222.132:80
+ weight: 100
+- name: something-static.4test-demo1.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.115.236.35:80
+ weight: 100
+- name: something-static.4test-demo2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.235:80
+ weight: 100
+- name: something-static.4test-dev.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.228.172:80
+ weight: 100
+- name: something-static.4test-athing4-sothings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.74:80
+ weight: 100
+- name: something-static.4test-athing5-cousin.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.85.47:80
+ weight: 100
+- name: something-static.4test-athing5-verythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.126:80
+ weight: 100
+- name: something-static.4test-athing5-ygbkm.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.141.107:80
+ weight: 100
+- name: something-static.4test-athing5-gothings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.30:80
+ weight: 100
+- name: something-static.4test-athing5-clever.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.72:80
+ weight: 100
+- name: something-static.4test-athing6-itis.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.101.121:80
+ weight: 100
+- name: something-static.4test-tldr.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.100:80
+ weight: 100
+- name: something-static.4test-shock.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.171:80
+ weight: 100
+- name: something-static.4test-local.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.107.57.110:80
+ weight: 100
+- name: something-static.4test-newthings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.85.49:80
+ weight: 100
+- name: something-static.4test-athing7-halftest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.152:80
+ weight: 100
+- name: something-static.4test-athing7-moartests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.119.243.142:80
+ weight: 100
+- name: something-static.4test-athing7-gettests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.107.57.83:80
+ weight: 100
+- name: something-static.4test-gottests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.148.20:80
+ weight: 100
+- name: something-static.4test-fam.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.96.92.105:80
+ weight: 100
+- name: something-static.4test-athing8-2007.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.1.132:80
+ weight: 100
+- name: something-static.4test-grantests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.229.89:80
+ weight: 100
+- name: something-static.4test-btests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.205:80
+ weight: 100
+- name: something-static.4test-lttl.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.119.243.166:80
+ weight: 100
+- name: something-static.4test-athing9-valid.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.150:80
+ weight: 100
+- name: something-static.4test-athing9-morevalid.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.100:80
+ weight: 100
+- name: something-static.4test-athing9-wanttotest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.229.121:80
+ weight: 100
+- name: something-static.4test-athing9-whichtest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.119:80
+ weight: 100
+- name: something-static.4test-athing9-frank.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.141:80
+ weight: 100
+- name: something-static.4test-athing9-nsf.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.187:80
+ weight: 100
+- name: something-static.4test-athing10-jnk.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.148.40:80
+ weight: 100
+- name: something-static.4test-athing10-local.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.99.213.12:80
+ weight: 100
+- name: something-static.4test-athing10-bbitw.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.85.5:80
+ weight: 100
+- name: something-static.4test-athing10-gettests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.69:80
+ weight: 100
+- name: something-static.4test-athing10-phn.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.97.79.106:80
+ weight: 100
+- name: something-static.4test-test1.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.223.44:80
+ weight: 100
+- name: something-static.4test-test2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.228.136:80
+ weight: 100
+- name: testing-testing-ws.4test-any.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.24:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing1-otherthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.228.169:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing1-name.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.1.174:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing1-othername.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.97.79.91:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing1-morenames.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.180.74:8000
+ weight: 100
+- name: testing-testing-ws.4test-thatthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.216:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing2-suchthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.85:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing2-wow.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.179:8000
+ weight: 100
+- name: testing-testing-ws.4test-manythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.108:8000
+ weight: 100
+- name: testing-testing-ws.4test-verythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.229.92:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing3-tester2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.105:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing3-oldthings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.97.79.109:8000
+ weight: 100
+- name: testing-testing-ws.4test-demo1.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.15:8000
+ weight: 100
+- name: testing-testing-ws.4test-demo2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.107.57.97:8000
+ weight: 100
+- name: testing-testing-ws.4test-dev.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.21.148:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing4-sothings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.85.12:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing5-cousin.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.148.17:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing5-verythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.99:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing5-ygbkm.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.172:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing5-gothings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.222.165:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing5-clever.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.173:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing6-itis.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.115.236.23:8000
+ weight: 100
+- name: testing-testing-ws.4test-tldr.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.119.243.162:8000
+ weight: 100
+- name: testing-testing-ws.4test-shock.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.107.57.114:8000
+ weight: 100
+- name: testing-testing-ws.4test-local.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.197.221:8000
+ weight: 100
+- name: testing-testing-ws.4test-newthings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.180.117:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing7-halftest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.31.196:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing7-moartests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.97.79.71:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing7-gettests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.147:8000
+ weight: 100
+- name: testing-testing-ws.4test-gottests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.228.179:8000
+ weight: 100
+- name: testing-testing-ws.4test-fam.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.103.246.60:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing8-2007.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.96.92.72:8000
+ weight: 100
+- name: testing-testing-ws.4test-grantests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.228.151:8000
+ weight: 100
+- name: testing-testing-ws.4test-btests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.197.232:8000
+ weight: 100
+- name: testing-testing-ws.4test-lttl.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.1.166:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing9-valid.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.103.246.15:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing9-morevalid.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.103.246.63:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing9-wanttotest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.229.106:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing9-whichtest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.141.88:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing9-nsf.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.229.115:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing10-jnk.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.31.225:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing10-local.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.99.213.13:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing10-bbitw.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.1.179:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing10-gettests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.120.185.28:8000
+ weight: 100
+- name: testing-testing-ws.4test-athing10-phn.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.99.213.46:8000
+ weight: 100
+- name: testing-testing-ws.4test-test1.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.228.137:8000
+ weight: 100
+- name: testing-testing-ws.4test-test2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.223.49:8000
+ weight: 100
+- name: testing-testing.4test-any.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.85.54:8000
+ weight: 100
+- name: testing-testing.4test-athing1-otherthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.169:8000
+ weight: 100
+- name: testing-testing.4test-athing1-name.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.101.70:8000
+ weight: 100
+- name: testing-testing.4test-athing1-othername.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.85.11:8000
+ weight: 100
+- name: testing-testing.4test-athing1-morenames.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.96.92.101:8000
+ weight: 100
+- name: testing-testing.4test-thatthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.148.11:8000
+ weight: 100
+- name: testing-testing.4test-athing2-suchthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.202:8000
+ weight: 100
+- name: testing-testing.4test-athing2-wow.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.180.98:8000
+ weight: 100
+- name: testing-testing.4test-manythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.81:8000
+ weight: 100
+- name: testing-testing.4test-verythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.168:8000
+ weight: 100
+- name: testing-testing.4test-athing3-tester2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.21.161:8000
+ weight: 100
+- name: testing-testing.4test-athing3-oldthings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.21.152:8000
+ weight: 100
+- name: testing-testing.4test-demo1.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.119.243.153:8000
+ weight: 100
+- name: testing-testing.4test-demo2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.107.57.116:8000
+ weight: 100
+- name: testing-testing.4test-dev.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.115.236.26:8000
+ weight: 100
+- name: testing-testing.4test-athing4-sothings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.119.243.159:8000
+ weight: 100
+- name: testing-testing.4test-athing5-cousin.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.127:8000
+ weight: 100
+- name: testing-testing.4test-athing5-verythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.141.109:8000
+ weight: 100
+- name: testing-testing.4test-athing5-ygbkm.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.101.122:8000
+ weight: 100
+- name: testing-testing.4test-athing5-gothings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.115.236.59:8000
+ weight: 100
+- name: testing-testing.4test-athing5-clever.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.228.184:8000
+ weight: 100
+- name: testing-testing.4test-athing6-itis.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.21.179:8000
+ weight: 100
+- name: testing-testing.4test-tldr.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.148.29:8000
+ weight: 100
+- name: testing-testing.4test-shock.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.197.225:8000
+ weight: 100
+- name: testing-testing.4test-local.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.103.246.34:8000
+ weight: 100
+ - target: 100.114.171.74:8000
+ weight: 100
+- name: testing-testing.4test-newthings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.148.36:8000
+ weight: 100
+- name: testing-testing.4test-athing7-halftest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.101.113:8000
+ weight: 100
+- name: testing-testing.4test-athing7-moartests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.96.92.109:8000
+ weight: 100
+- name: testing-testing.4test-athing7-gettests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.222.188:8000
+ weight: 100
+- name: testing-testing.4test-gottests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.119.243.160:8000
+ weight: 100
+- name: testing-testing.4test-fam.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.103.246.59:8000
+ weight: 100
+- name: testing-testing.4test-athing8-2007.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.96.92.117:8000
+ weight: 100
+- name: testing-testing.4test-grantests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.115.236.58:8000
+ weight: 100
+- name: testing-testing.4test-btests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.197.237:8000
+ weight: 100
+- name: testing-testing.4test-lttl.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.222.146:8000
+ weight: 100
+- name: testing-testing.4test-athing9-valid.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.103.246.18:8000
+ weight: 100
+- name: testing-testing.4test-athing9-morevalid.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.255:8000
+ weight: 100
+- name: testing-testing.4test-athing9-wanttotest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.141.99:8000
+ weight: 100
+- name: testing-testing.4test-athing9-whichtest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.115.236.36:8000
+ weight: 100
+- name: testing-testing.4test-athing9-nsf.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.229.114:8000
+ weight: 100
+- name: testing-testing.4test-athing10-jnk.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.120.185.31:8000
+ weight: 100
+- name: testing-testing.4test-athing10-local.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.99.213.15:8000
+ weight: 100
+- name: testing-testing.4test-athing10-bbitw.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.120.185.24:8000
+ weight: 100
+- name: testing-testing.4test-athing10-gettests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.120.185.27:8000
+ weight: 100
+- name: testing-testing.4test-athing10-phn.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.99.213.47:8000
+ weight: 100
+- name: testing-testing.4test-test1.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.223.25:8000
+ weight: 100
+- name: testing-testing.4test-test2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.165:8000
+ weight: 100
+- name: testing-static-admin.4test-any.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.98:80
+ weight: 100
+- name: testing-static-admin.4test-athing1-otherthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.197.251:80
+ weight: 100
+- name: testing-static-admin.4test-athing1-name.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.147:80
+ weight: 100
+- name: testing-static-admin.4test-athing1-othername.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.97.79.72:80
+ weight: 100
+- name: testing-static-admin.4test-athing1-morenames.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.132:80
+ weight: 100
+- name: testing-static-admin.4test-thatthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.95:80
+ weight: 100
+- name: testing-static-admin.4test-athing2-suchthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.87:80
+ weight: 100
+- name: testing-static-admin.4test-athing2-wow.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.71:80
+ weight: 100
+- name: testing-static-admin.4test-manythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.180.73:80
+ weight: 100
+- name: testing-static-admin.4test-verythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.17:80
+ weight: 100
+- name: testing-static-admin.4test-athing3-oldthings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.21.183:80
+ weight: 100
+- name: testing-static-admin.4test-demo1.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.115.236.32:80
+ weight: 100
+- name: testing-static-admin.4test-demo2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.50:80
+ weight: 100
+- name: testing-static-admin.4test-dev.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.167:80
+ weight: 100
+- name: testing-static-admin.4test-athing4-sothings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.222.157:80
+ weight: 100
+- name: testing-static-admin.4test-athing5-cousin.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.89:80
+ weight: 100
+- name: testing-static-admin.4test-athing5-verythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.118:80
+ weight: 100
+- name: testing-static-admin.4test-athing5-ygbkm.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.141.105:80
+ weight: 100
+- name: testing-static-admin.4test-athing5-gothings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.85.27:80
+ weight: 100
+- name: testing-static-admin.4test-athing5-clever.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.237:80
+ weight: 100
+- name: testing-static-admin.4test-tldr.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.94:80
+ weight: 100
+- name: testing-static-admin.4test-shock.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.222.170:80
+ weight: 100
+- name: testing-static-admin.4test-local.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.97.79.125:80
+ weight: 100
+- name: testing-static-admin.4test-newthings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.85.51:80
+ weight: 100
+- name: testing-static-admin.4test-athing7-halftest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.132:80
+ weight: 100
+- name: testing-static-admin.4test-athing7-gettests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.148.44:80
+ weight: 100
+- name: testing-static-admin.4test-gottests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.207:80
+ weight: 100
+- name: testing-static-admin.4test-fam.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.1.149:80
+ weight: 100
+- name: testing-static-admin.4test-athing8-2007.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.34:80
+ weight: 100
+- name: testing-static-admin.4test-grantests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.13:80
+ weight: 100
+- name: testing-static-admin.4test-btests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.197.222:80
+ weight: 100
+- name: testing-static-admin.4test-lttl.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.244:80
+ weight: 100
+- name: testing-static-admin.4test-athing9-valid.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.103.246.5:80
+ weight: 100
+- name: testing-static-admin.4test-athing9-morevalid.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.178:80
+ weight: 100
+- name: testing-static-admin.4test-athing9-wanttotest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.141.100:80
+ weight: 100
+- name: testing-static-admin.4test-athing9-whichtest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.77:80
+ weight: 100
+- name: testing-static-admin.4test-athing9-nsf.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.229.116:80
+ weight: 100
+- name: testing-static-admin.4test-athing10-jnk.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.31.222:80
+ weight: 100
+- name: testing-static-admin.4test-athing10-local.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.99.213.14:80
+ weight: 100
+- name: testing-static-admin.4test-athing10-bbitw.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.38:80
+ weight: 100
+- name: testing-static-admin.4test-athing10-gettests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.120.185.29:80
+ weight: 100
+- name: testing-static-admin.4test-athing10-phn.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.79:80
+ weight: 100
+- name: testing-static-admin.4test-test1.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.228:80
+ weight: 100
+- name: testing-static-admin.4test-test2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.189:80
+ weight: 100
+- name: testing-static.4test-any.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.98:80
+ weight: 100
+- name: testing-static.4test-athing1-otherthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.197.251:80
+ weight: 100
+- name: testing-static.4test-athing1-name.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.147:80
+ weight: 100
+- name: testing-static.4test-athing1-othername.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.97.79.72:80
+ weight: 100
+- name: testing-static.4test-athing1-morenames.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.132:80
+ weight: 100
+- name: testing-static.4test-thatthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.95:80
+ weight: 100
+- name: testing-static.4test-athing2-suchthing.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.87:80
+ weight: 100
+- name: testing-static.4test-athing2-wow.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.91.71:80
+ weight: 100
+- name: testing-static.4test-manythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.180.73:80
+ weight: 100
+- name: testing-static.4test-verythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.17:80
+ weight: 100
+- name: testing-static.4test-athing3-tester2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.21.160:80
+ weight: 100
+- name: testing-static.4test-athing3-oldthings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.127.21.183:80
+ weight: 100
+- name: testing-static.4test-demo1.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.115.236.32:80
+ weight: 100
+- name: testing-static.4test-demo2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.50:80
+ weight: 100
+- name: testing-static.4test-dev.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.167:80
+ weight: 100
+- name: testing-static.4test-athing4-sothings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.222.157:80
+ weight: 100
+- name: testing-static.4test-athing5-cousin.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.89:80
+ weight: 100
+- name: testing-static.4test-athing5-verythings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.118:80
+ weight: 100
+- name: testing-static.4test-athing5-ygbkm.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.141.105:80
+ weight: 100
+- name: testing-static.4test-athing5-gothings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.85.27:80
+ weight: 100
+- name: testing-static.4test-athing5-clever.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.237:80
+ weight: 100
+- name: testing-static.4test-athing6-itis.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.115.236.22:80
+ weight: 100
+- name: testing-static.4test-tldr.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.94:80
+ weight: 100
+- name: testing-static.4test-shock.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.222.170:80
+ weight: 100
+- name: testing-static.4test-local.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.97.79.125:80
+ weight: 100
+- name: testing-static.4test-newthings.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.85.51:80
+ weight: 100
+- name: testing-static.4test-athing7-halftest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.132:80
+ weight: 100
+- name: testing-static.4test-athing7-moartests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.122.180.94:80
+ weight: 100
+- name: testing-static.4test-athing7-gettests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.121.148.44:80
+ weight: 100
+- name: testing-static.4test-gottests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.207:80
+ weight: 100
+- name: testing-static.4test-fam.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.1.149:80
+ weight: 100
+- name: testing-static.4test-athing8-2007.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.34:80
+ weight: 100
+- name: testing-static.4test-grantests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.13:80
+ weight: 100
+- name: testing-static.4test-btests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.197.222:80
+ weight: 100
+- name: testing-static.4test-lttl.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.244:80
+ weight: 100
+- name: testing-static.4test-athing9-valid.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.103.246.5:80
+ weight: 100
+- name: testing-static.4test-athing9-morevalid.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.105.108.178:80
+ weight: 100
+- name: testing-static.4test-athing9-wanttotest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.123.141.100:80
+ weight: 100
+- name: testing-static.4test-athing9-whichtest.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.77:80
+ weight: 100
+- name: testing-static.4test-athing9-nsf.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.229.116:80
+ weight: 100
+- name: testing-static.4test-athing10-jnk.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.113.31.222:80
+ weight: 100
+- name: testing-static.4test-athing10-local.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.99.213.14:80
+ weight: 100
+- name: testing-static.4test-athing10-bbitw.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.112.140.38:80
+ weight: 100
+- name: testing-static.4test-athing10-gettests.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.120.185.29:80
+ weight: 100
+- name: testing-static.4test-athing10-phn.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.114.171.79:80
+ weight: 100
+- name: testing-static.4test-test1.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.98.136.228:80
+ weight: 100
+- name: testing-static.4test-test2.svc
+ algorithm: round-robin
+ slots: 10000
+ healthchecks:
+ active:
+ concurrency: 10
+ healthy:
+ http_statuses:
+ - 200
+ - 302
+ interval: 0
+ successes: 0
+ http_path: /
+ https_verify_certificate: true
+ type: http
+ timeout: 1
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 404
+ - 500
+ - 501
+ - 502
+ - 503
+ - 504
+ - 505
+ tcp_failures: 0
+ timeouts: 0
+ interval: 0
+ passive:
+ healthy:
+ http_statuses:
+ - 200
+ - 201
+ - 202
+ - 203
+ - 204
+ - 205
+ - 206
+ - 207
+ - 208
+ - 226
+ - 300
+ - 301
+ - 302
+ - 303
+ - 304
+ - 305
+ - 306
+ - 307
+ - 308
+ successes: 0
+ unhealthy:
+ http_failures: 0
+ http_statuses:
+ - 429
+ - 500
+ - 503
+ tcp_failures: 0
+ timeouts: 0
+ hash_on: none
+ hash_fallback: none
+ hash_on_cookie_path: /
+ targets:
+ - target: 100.100.77.189:80
+ weight: 100
+plugins:
+- name: prometheus
+ enabled: true
+ protocols:
+ - grpc
+ - grpcs
+ - http
+ - https
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_nginx.template b/kong-versions/3.8.0/kong/spec/fixtures/custom_nginx.template
new file mode 100644
index 00000000..98e4b4be
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_nginx.template
@@ -0,0 +1,96 @@
+# This is a custom nginx configuration template for Kong specs
+
+pid pids/nginx.pid; # mandatory even for custom config templates
+
+> if wasm and wasm_dynamic_module then
+load_module $(wasm_dynamic_module);
+> end
+
+error_log ${{PROXY_ERROR_LOG}} ${{LOG_LEVEL}};
+
+# injected nginx_main_* directives
+> for _, el in ipairs(nginx_main_directives) do
+$(el.name) $(el.value);
+> end
+
+> if database == "off" then
+lmdb_environment_path ${{LMDB_ENVIRONMENT_PATH}};
+lmdb_map_size ${{LMDB_MAP_SIZE}};
+
+> if lmdb_validation_tag then
+lmdb_validation_tag $(lmdb_validation_tag);
+> end
+
+> end
+
+events {
+ # injected nginx_events_* directives
+> for _, el in ipairs(nginx_events_directives) do
+ $(el.name) $(el.value);
+> end
+}
+
+> if wasm then
+wasm {
+> for _, el in ipairs(nginx_wasm_main_shm_kv_directives) do
+ shm_kv $(el.name) $(el.value);
+> end
+
+> for _, module in ipairs(wasm_modules_parsed) do
+ module $(module.name) $(module.path);
+> end
+
+> for _, el in ipairs(nginx_wasm_main_directives) do
+> if el.name == "shm_kv" then
+ shm_kv * $(el.value);
+> else
+ $(el.name) $(el.value);
+> end
+> end
+
+> if #nginx_wasm_wasmtime_directives > 0 or wasmtime_cache_config_file then
+ wasmtime {
+> if wasmtime_cache_config_file then
+ cache_config $(quote(wasmtime_cache_config_file));
+> end
+
+> for _, el in ipairs(nginx_wasm_wasmtime_directives) do
+ flag $(el.name) $(el.value);
+> end
+ }
+> end -- wasmtime
+
+> if #nginx_wasm_v8_directives > 0 then
+ v8 {
+> for _, el in ipairs(nginx_wasm_v8_directives) do
+ flag $(el.name) $(el.value);
+> end
+ }
+> end -- v8
+
+> if #nginx_wasm_wasmer_directives > 0 then
+ wasmer {
+> for _, el in ipairs(nginx_wasm_wasmer_directives) do
+ flag $(el.name) $(el.value);
+> end
+ }
+> end -- wasmer
+
+}
+> end
+
+
+
+> if role == "control_plane" or #proxy_listeners > 0 or #admin_listeners > 0 or #status_listeners > 0 then
+http {
+ include 'nginx-kong.conf';
+ include '*http.test.conf';
+}
+> end
+
+> if #stream_listeners > 0 or cluster_ssl_tunnel then
+stream {
+ include 'nginx-kong-stream.conf';
+ include '*stream.test.conf';
+}
+> end
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/api.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/api.lua
new file mode 100644
index 00000000..73c42b11
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/api.lua
@@ -0,0 +1,9 @@
+return {
+ ["/method_without_exit"] = {
+ GET = function()
+ kong.response.set_status(201)
+ kong.response.set_header("x-foo", "bar")
+ ngx.print("hello")
+ end,
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/handler.lua
new file mode 100644
index 00000000..c9a58426
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/handler.lua
@@ -0,0 +1,8 @@
+-- a plugin fixture to test a method on the admin api
+
+local AdminApiMethod = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+return AdminApiMethod
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/schema.lua
new file mode 100644
index 00000000..67f4be17
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/schema.lua
@@ -0,0 +1,13 @@
+return {
+ name = "admin-api-method",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { foo = { type = "string" } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/status_api.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/status_api.lua
new file mode 100644
index 00000000..b188c329
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/admin-api-method/status_api.lua
@@ -0,0 +1,7 @@
+return {
+ ["/hello"] = {
+ GET = function()
+ kong.response.exit(200, { hello = "from status api" })
+ end,
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/api.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/api.lua
new file mode 100644
index 00000000..9b83637e
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/api.lua
@@ -0,0 +1,25 @@
+local kong = kong
+
+
+return {
+ ["/routes"] = {
+ schema = kong.db.routes.schema,
+ GET = function(_, _, _, parent)
+ kong.response.set_header("Kong-Api-Override", "ok")
+ return parent()
+ end,
+ POST = function(_, _, _, parent)
+ kong.response.set_header("Kong-Api-Override", "ok")
+ return parent()
+ end,
+ },
+ ["/services"] = {
+ schema = kong.db.services.schema,
+ methods = {
+ GET = function(_, _, _, parent)
+ kong.response.set_header("Kong-Api-Override", "ok")
+ return parent()
+ end
+ }
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/handler.lua
new file mode 100644
index 00000000..8d6ab00c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/handler.lua
@@ -0,0 +1,4 @@
+return {
+ PRIORITY = 1000,
+ VERSION = "1.0",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/schema.lua
new file mode 100644
index 00000000..f8207cdc
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/api-override/schema.lua
@@ -0,0 +1,27 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ name = "api-override",
+ fields = {
+ {
+ protocols = typedefs.protocols {
+ default = {
+ "http",
+ "https",
+ "tcp",
+ "tls",
+ "grpc",
+ "grpcs"
+ },
+ },
+ },
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/daos.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/daos.lua
new file mode 100644
index 00000000..70a3efe3
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/daos.lua
@@ -0,0 +1,31 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ {
+ name = "ck_vs_ek_testcase",
+ primary_key = { "id" },
+ endpoint_key = "name",
+ cache_key = { "route", "service" },
+ fields = {
+ { id = typedefs.uuid },
+ { name = typedefs.utf8_name }, -- this typedef declares 'unique = true'
+ { service = { type = "foreign", reference = "services", on_delete = "cascade",
+ default = ngx.null, unique = true }, },
+ { route = { type = "foreign", reference = "routes", on_delete = "cascade",
+ default = ngx.null, unique = true }, },
+ },
+ entity_checks = {
+ { mutually_exclusive = {
+ "service",
+ "route",
+ }
+ },
+ { at_least_one_of = {
+ "service",
+ "route",
+ }
+ }
+ }
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/handler.lua
new file mode 100644
index 00000000..bd97e4e8
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/handler.lua
@@ -0,0 +1,4 @@
+return {
+ PRIORITY = 1,
+ VERSION = "1.0",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/migrations/000_base_cache_key_vs_endpoint_key.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/migrations/000_base_cache_key_vs_endpoint_key.lua
new file mode 100644
index 00000000..ccc37962
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/migrations/000_base_cache_key_vs_endpoint_key.lua
@@ -0,0 +1,25 @@
+return {
+ postgres = {
+ up = [[
+ CREATE TABLE IF NOT EXISTS "ck_vs_ek_testcase" (
+ "id" UUID PRIMARY KEY,
+ "name" TEXT,
+ "route_id" UUID REFERENCES "routes" ("id") ON DELETE CASCADE,
+ "service_id" UUID REFERENCES "services" ("id") ON DELETE CASCADE,
+ "cache_key" TEXT UNIQUE
+ );
+
+ DO $$
+ BEGIN
+ CREATE UNIQUE INDEX IF NOT EXISTS "ck_vs_ek_testcase_name_idx"
+ ON "ck_vs_ek_testcase" ("name");
+ END$$;
+
+ DO $$
+ BEGIN
+ CREATE UNIQUE INDEX IF NOT EXISTS "ck_vs_ek_testcase_cache_key_idx"
+ ON "ck_vs_ek_testcase" ("cache_key");
+ END$$;
+ ]],
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/migrations/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/migrations/init.lua
new file mode 100644
index 00000000..5f84bb01
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/migrations/init.lua
@@ -0,0 +1,3 @@
+return {
+ "000_base_unique_foreign",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/schema.lua
new file mode 100644
index 00000000..6bc8198b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache-key-vs-endpoint-key/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "cache-key-vs-endpoint-key",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache/handler.lua
new file mode 100644
index 00000000..cae8fe4f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache/handler.lua
@@ -0,0 +1,43 @@
+local type = type
+
+
+local CacheHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+
+function CacheHandler:access(conf)
+ ngx.req.read_body()
+
+ local args, err = ngx.req.get_post_args()
+ if not args then
+ kong.log.err(err)
+ return kong.response.exit(500, { message = "An unexpected error occurred" })
+ end
+
+ local cache_key = args.cache_key
+ if not cache_key then
+ return kong.response.exit(400, { message = "missing cache_key" })
+ end
+
+ local cache_value = args.cache_value
+ if not cache_value then
+ return kong.response.exit(400, { message = "missing cache_value" })
+ end
+
+ local function cb()
+ return cache_value
+ end
+
+ local value, err = kong.cache:get(cache_key, nil, cb)
+ if err then
+ kong.log.err(err)
+ return kong.response.exit(500, { message = "An unexpected error occurred" })
+ end
+
+ return kong.response.exit(200, type(value) == "table" and value or { message = value })
+end
+
+
+return CacheHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache/schema.lua
new file mode 100644
index 00000000..2c6b6d9d
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cache/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "cache",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cluster-error-reporting/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cluster-error-reporting/handler.lua
new file mode 100644
index 00000000..0f38c924
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cluster-error-reporting/handler.lua
@@ -0,0 +1,32 @@
+local Plugin = {
+ VERSION = "6.6.6",
+ PRIORITY = 1000,
+}
+
+local clustering = require("kong.clustering")
+local saved_init_dp_worker = clustering.init_dp_worker
+
+-- monkey-patch cluster initializer so that konnect_mode is
+-- always enabled
+clustering.init_dp_worker = function(self, ...)
+ self.conf.konnect_mode = true
+ return saved_init_dp_worker(self, ...)
+end
+
+
+local declarative = require("kong.db.declarative")
+local saved_load_into_cache = declarative.load_into_cache_with_events
+
+-- ...and monkey-patch this to throw an exception on demand
+declarative.load_into_cache_with_events = function(...)
+ local fh = io.open(kong.configuration.prefix .. "/throw-an-exception")
+ if fh then
+ local err = fh:read("*a") or "oh no!"
+ ngx.log(ngx.ERR, "throwing an exception!")
+ error(err)
+ end
+
+ return saved_load_into_cache(...)
+end
+
+return Plugin
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cluster-error-reporting/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cluster-error-reporting/schema.lua
new file mode 100644
index 00000000..f33936bb
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/cluster-error-reporting/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "cluster-error-reporting",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker-last/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker-last/handler.lua
new file mode 100644
index 00000000..f613f304
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker-last/handler.lua
@@ -0,0 +1,15 @@
+local CtxCheckerHandler = require "spec.fixtures.custom_plugins.kong.plugins.ctx-checker.handler"
+
+
+local CtxCheckerLastHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 0,
+ _name = "ctx-checker-last",
+}
+
+
+CtxCheckerLastHandler.access = CtxCheckerHandler.access
+CtxCheckerLastHandler.header_filter = CtxCheckerHandler.header_filter
+
+
+return CtxCheckerLastHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker-last/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker-last/schema.lua
new file mode 100644
index 00000000..bffc2c21
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker-last/schema.lua
@@ -0,0 +1,20 @@
+return {
+ name = "ctx-checker-last",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { ctx_set_field = { type = "string" } },
+ { ctx_set_value = { type = "string", default = "set_by_ctx_checker" } },
+ { ctx_set_array = { type = "array", elements = { type = "string" } } },
+ { ctx_check_field = { type = "string" } },
+ { ctx_check_value = { type = "string" } },
+ { ctx_check_array = { type = "array", elements = { type = "string" } } },
+ { ctx_kind = { type = "string", default = "ngx.ctx" } },
+ { ctx_throw_error = { type = "boolean", default = false } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker/handler.lua
new file mode 100644
index 00000000..c8440165
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker/handler.lua
@@ -0,0 +1,109 @@
+local tablex = require "pl.tablex"
+local inspect = require "inspect"
+
+
+local ngx = ngx
+local kong = kong
+local type = type
+local error = error
+local tostring = tostring
+
+
+local CtxCheckerHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+ _name = "ctx-checker",
+}
+
+
+local function get_ctx(ctx_kind)
+ if ctx_kind == "kong.ctx.shared" then
+ return kong.ctx.shared
+ end
+
+ if ctx_kind == "kong.ctx.plugin" then
+ return kong.ctx.plugin
+ end
+
+ return ngx.ctx
+end
+
+
+local function set_header(conf, name, value)
+ if conf.ctx_kind == "kong.ctx.shared"
+ or conf.ctx_kind == "kong.ctx.plugin" then
+ return kong.response.set_header(name, value)
+ end
+
+ ngx.header[name] = value
+end
+
+
+function CtxCheckerHandler:access(conf)
+ local set_field = conf.ctx_set_field
+ if not set_field then
+ return
+ end
+
+ local ctx = get_ctx(conf.ctx_kind)
+ local existing = ctx[set_field]
+ if existing ~= nil and conf.throw_error then
+ if type(existing) == "table" then
+ existing = inspect(existing)
+ end
+
+ error("Expected to be able to set" ..
+ conf.ctx_kind ..
+ "['" .. set_field ..
+ "'] but it was already set. Found value: " ..
+ tostring(existing))
+ end
+
+
+ if type(conf.ctx_set_array) == "table" then
+ ctx[set_field] = conf.ctx_set_array
+ elseif type(conf.ctx_set_value) == "string" then
+ ctx[set_field] = conf.ctx_set_value
+ end
+end
+
+
+function CtxCheckerHandler:header_filter(conf)
+ local check_field = conf.ctx_check_field
+ if not check_field then
+ return
+ end
+
+ local ctx = get_ctx(conf.ctx_kind)
+ local val = ctx[check_field]
+
+ local ok
+ if conf.ctx_check_array then
+ if type(val) == "table" then
+ ok = tablex.compare(val, conf.ctx_check_array, "==")
+ else
+ ok = false
+ end
+
+ elseif conf.ctx_check_value then
+ ok = val == conf.ctx_check_value
+ else
+ ok = true
+ end
+
+ if type(val) == "table" then
+ val = inspect(val)
+ end
+
+ if ok then
+ return set_header(conf, self._name .."-" .. check_field, tostring(val))
+ end
+
+ if conf.throw_error then
+ error("Expected " .. conf.ctx_kind .. "['" .. check_field ..
+ "'] to be set, but it was " .. tostring(val))
+ end
+end
+
+
+return CtxCheckerHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker/schema.lua
new file mode 100644
index 00000000..6fbb3687
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-checker/schema.lua
@@ -0,0 +1,20 @@
+return {
+ name = "ctx-checker",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { ctx_set_field = { type = "string" } },
+ { ctx_set_value = { type = "string", default = "set_by_ctx_checker" } },
+ { ctx_set_array = { type = "array", elements = { type = "string" } } },
+ { ctx_check_field = { type = "string" } },
+ { ctx_check_value = { type = "string" } },
+ { ctx_check_array = { type = "array", elements = { type = "string" } } },
+ { ctx_kind = { type = "string", default = "ngx.ctx" } },
+ { ctx_throw_error = { type = "boolean", default = false } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests-response/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests-response/handler.lua
new file mode 100644
index 00000000..c9436532
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests-response/handler.lua
@@ -0,0 +1,473 @@
+local ngx = ngx
+local kong = kong
+local type = type
+local assert = assert
+local subsystem = ngx.config.subsystem
+local math = math
+
+
+local function is_nil(ctx, name)
+ if ctx[name] ~= nil then
+ return false, "[ctx-tests] " .. name .. " is not a nil"
+ end
+
+ return true
+end
+
+
+local function is_true(ctx, name)
+ if ctx[name] ~= true then
+ return false, "[ctx-tests] " .. name .. " is not true"
+ end
+
+ return true
+end
+
+
+local function is_positive_integer(ctx, name)
+ local value = ctx[name]
+ if type(value) ~= "number" then
+ return false, "[ctx-tests] " .. name .. " is not a number"
+ end
+
+ if math.floor(value) ~= value then
+ return false, "[ctx-tests] " .. name .. " is not an integer"
+ end
+
+ if value <= 0 then
+ return false, "[ctx-tests] " .. name .. " is not a positive integer"
+ end
+
+ return true
+end
+
+
+local function is_non_negative_integer(ctx, name)
+ local value = ctx[name]
+ if value == 0 then
+ return true
+ end
+
+ return is_positive_integer(ctx, name)
+end
+
+
+local function is_equal_to_start_time(ctx, name)
+ local ok, err = is_positive_integer(ctx, name)
+ if not ok then
+ return ok, err
+ end
+
+ if ctx[name] < ctx.KONG_PROCESSING_START then
+ return false, "[ctx-tests] " .. name .. " is less than the processing start"
+ end
+
+ if subsystem ~= "stream" then
+ if ctx[name] ~= (ngx.req.start_time() * 1000) then
+ return false, "[ctx-tests] " .. name .. " is less than the request start time"
+ end
+ end
+
+ return true
+end
+
+
+local function is_greater_or_equal_to_start_time(ctx, name)
+ local ok, err = is_positive_integer(ctx, name)
+ if not ok then
+ return ok, err
+ end
+
+ if ctx[name] < ctx.KONG_PROCESSING_START then
+ return false, "[ctx-tests] " .. name .. " is less than the processing start"
+ end
+
+ if subsystem ~= "stream" then
+ if ctx[name] < (ngx.req.start_time() * 1000) then
+ return false, "[ctx-tests] " .. name .. " is less than the request start time"
+ end
+ end
+
+ return true
+end
+
+
+local function is_greater_or_equal_to_ctx_value(ctx, name, greater_name)
+ local ok, err = is_positive_integer(ctx, name)
+ if not ok then
+ return ok, err
+ end
+
+ ok, err = is_positive_integer(ctx, greater_name)
+ if not ok then
+ return ok, err
+ end
+
+ if ctx[greater_name] < ctx[name] then
+ return false, "[ctx-tests] " .. name .. " is greater than " .. greater_name
+ end
+
+ return true
+end
+
+
+local function has_correct_proxy_latency(ctx)
+ local ok, err = is_positive_integer(ctx, "KONG_BALANCER_ENDED_AT")
+ if not ok then
+ return ok, err
+ end
+
+ ok, err = is_non_negative_integer(ctx, "KONG_PROXY_LATENCY")
+ if not ok then
+ return ok, err
+ end
+
+ if ctx.KONG_BALANCER_ENDED_AT < ctx.KONG_PROCESSING_START then
+ return false, "[ctx-tests] KONG_BALANCER_ENDED_AT is less than the processing start"
+ end
+
+ local latency = ctx.KONG_BALANCER_ENDED_AT - ctx.KONG_PROCESSING_START
+ if ctx.KONG_PROXY_LATENCY ~= latency then
+ return false, "[ctx-tests] KONG_PROXY_LATENCY is not calculated correctly"
+ end
+
+ if subsystem ~= "stream" then
+ latency = ctx.KONG_BALANCER_ENDED_AT - ngx.req.start_time() * 1000
+ if ctx.KONG_PROXY_LATENCY ~= latency then
+ return false, "[ctx-tests] KONG_PROXY_LATENCY is not calculated correctly (request start time)"
+ end
+ end
+
+ return true
+end
+
+
+local function has_correct_waiting_time(ctx)
+ local err
+ local ok = is_positive_integer(ctx, "KONG_RESPONSE_START")
+ if not ok then
+ ok, err = is_positive_integer(ctx, "KONG_HEADER_FILTER_START")
+ if not ok then
+ return ok, err
+ end
+ end
+
+ ok, err = is_positive_integer(ctx, "KONG_BALANCER_ENDED_AT")
+ if not ok then
+ return ok, err
+ end
+
+ local waiting_time = (ctx.KONG_RESPONSE_START or ctx.KONG_HEADER_FILTER_START) -
+ ctx.KONG_BALANCER_ENDED_AT
+
+ if ctx.KONG_WAITING_TIME ~= waiting_time then
+ return false, "[ctx-tests] KONG_WAITING_TIME is not calculated correctly"
+ end
+
+ return true
+end
+
+
+local function has_correct_receive_time(ctx)
+ local ok, err = is_positive_integer(ctx, "KONG_BODY_FILTER_ENDED_AT")
+ if not ok then
+ return ok, err
+ end
+
+ ok, err = is_positive_integer(ctx, "KONG_HEADER_FILTER_START")
+ if not ok then
+ return ok, err
+ end
+
+ local receive_time = ctx.KONG_BODY_FILTER_ENDED_AT -
+ (ctx.KONG_RESPONSE_START or ctx.KONG_HEADER_FILTER_START)
+
+ if ctx.KONG_RECEIVE_TIME ~= receive_time then
+ return false, "[ctx-tests] KONG_RECEIVE_TIME is not calculated correctly"
+ end
+
+ return true
+end
+
+
+local function has_correct_upstream_dns_time(ctx)
+ local ok, err = is_positive_integer(ctx, "KONG_UPSTREAM_DNS_END_AT")
+ if not ok then
+ return ok, err
+ end
+
+ ok, err = is_positive_integer(ctx, "KONG_UPSTREAM_DNS_START")
+ if not ok then
+ return ok, err
+ end
+
+ local upstream_dns_time = ctx.KONG_UPSTREAM_DNS_END_AT - ctx.KONG_UPSTREAM_DNS_START
+
+ if ctx.KONG_UPSTREAM_DNS_TIME ~= upstream_dns_time then
+ return false, "[ctx-tests] KONG_UPSTREAM_DNS_TIME is not calculated correctly"
+ end
+
+ return true
+end
+
+local CtxTests = {
+ PRIORITY = -1000000,
+ VERSION = "1.0",
+}
+
+
+function CtxTests:preread()
+ local ctx = ngx.ctx
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_REWRITE_START"))
+ assert(is_nil(ctx, "KONG_REWRITE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_REWRITE_TIME"))
+ assert(is_nil(ctx, "KONG_ACCESS_START"))
+ assert(is_nil(ctx, "KONG_ACCESS_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_ACCESS_TIME"))
+ assert(is_nil(ctx, "KONG_BALANCER_START"))
+ assert(is_nil(ctx, "KONG_BALANCER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BALANCER_TIME"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_START"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_END_AT"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_START"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_START"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_START"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_PROXIED"))
+ assert(is_nil(ctx, "KONG_PROXY_LATENCY"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+ assert(is_nil(ctx, "KONG_WAITING_TIME"))
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+function CtxTests:rewrite()
+ local ctx = ngx.ctx
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_start_time(ctx, "KONG_REWRITE_START", "KONG_REWRITE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_REWRITE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_REWRITE_TIME"))
+ assert(is_nil(ctx, "KONG_ACCESS_START"))
+ assert(is_nil(ctx, "KONG_ACCESS_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_ACCESS_TIME"))
+ assert(is_nil(ctx, "KONG_BALANCER_START"))
+ assert(is_nil(ctx, "KONG_BALANCER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BALANCER_TIME"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_START"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_END_AT"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_START"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_START"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_START"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_PROXIED"))
+ assert(is_nil(ctx, "KONG_PROXY_LATENCY"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+ assert(is_nil(ctx, "KONG_WAITING_TIME"))
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+function CtxTests:access(config)
+ if config.buffered then
+ kong.service.request.enable_buffering()
+ end
+
+ local ctx = ngx.ctx
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_start_time(ctx, "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_START", "KONG_REWRITE_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_REWRITE_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_ENDED_AT", "KONG_ACCESS_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_ACCESS_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_ACCESS_TIME"))
+ assert(is_nil(ctx, "KONG_BALANCER_START"))
+ assert(is_nil(ctx, "KONG_BALANCER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BALANCER_TIME"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_START"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_END_AT"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_START"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_START"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_START"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_PROXIED"))
+ assert(is_nil(ctx, "KONG_PROXY_LATENCY"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+ assert(is_nil(ctx, "KONG_WAITING_TIME"))
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+function CtxTests:response(config)
+ -- assert(config.buffered == true, "response should only be executed when buffering the response was requested")
+ local ctx = ngx.ctx
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_start_time(ctx, "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_START", "KONG_REWRITE_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_REWRITE_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_ENDED_AT", "KONG_ACCESS_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_ACCESS_START", "KONG_ACCESS_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_ACCESS_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_ACCESS_ENDED_AT", "KONG_BALANCER_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_START", "KONG_BALANCER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_BALANCER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_START"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_true(ctx, "KONG_PROXIED"))
+ assert(has_correct_proxy_latency(ctx))
+ assert(has_correct_waiting_time(ctx))
+ assert(is_nil(ctx, "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_START"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_START"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+function CtxTests:log(config)
+ local ctx = ngx.ctx
+ if subsystem == "stream" then
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_PREREAD_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PREREAD_START", "KONG_PREREAD_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_PREREAD_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PREREAD_ENDED_AT", "KONG_BALANCER_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_START", "KONG_BALANCER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_BALANCER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_LOG_START"))
+ if (not is_nil(ctx, "KONG_UPSTREAM_DNS_START") and not is_nil(ctx, "KONG_BALANCER_ENDED_AT")) then
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_UPSTREAM_DNS_START", "KONG_UPSTREAM_DNS_END_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_UPSTREAM_DNS_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_UPSTREAM_DNS_END_AT", "KONG_LOG_START"))
+ assert(has_correct_upstream_dns_time(ctx))
+ end
+ assert(is_true(ctx, "KONG_PROXIED"))
+ assert(has_correct_proxy_latency(ctx))
+ assert(is_nil(ctx, "KONG_REWRITE_START"))
+ assert(is_nil(ctx, "KONG_REWRITE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_REWRITE_TIME"))
+ assert(is_nil(ctx, "KONG_ACCESS_START"))
+ assert(is_nil(ctx, "KONG_ACCESS_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_ACCESS_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_START"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_START"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+
+ -- TODO: ngx.var.upstream_first_byte_time?
+ assert(is_nil(ctx, "KONG_WAITING_TIME"))
+
+
+ -- TODO: ngx.ctx.KONG_LOG_START - (ngx.ctx.BALANCER_ENDED_AT + ngx.var.upstream_first_byte_time)?
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+
+ else
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_start_time(ctx, "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_START", "KONG_REWRITE_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_REWRITE_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_ENDED_AT", "KONG_ACCESS_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_ACCESS_START", "KONG_ACCESS_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_ACCESS_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_ACCESS_ENDED_AT", "KONG_BALANCER_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_START", "KONG_BALANCER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_BALANCER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_HEADER_FILTER_START"))
+
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_RESPONSE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_RESPONSE_START", "KONG_RESPONSE_ENDED_AT"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_RESPONSE_ENDED_AT", "KONG_HEADER_FILTER_START"))
+ assert(is_non_negative_integer(ctx, "KONG_RESPONSE_TIME"))
+
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_HEADER_FILTER_START", "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_HEADER_FILTER_ENDED_AT", "KONG_BODY_FILTER_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BODY_FILTER_START", "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BODY_FILTER_ENDED_AT", "KONG_LOG_START"))
+ if (not is_nil(ctx, "KONG_UPSTREAM_DNS_START") and not is_nil(ctx, "KONG_BALANCER_ENDED_AT")) then
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_UPSTREAM_DNS_START", "KONG_UPSTREAM_DNS_END_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_UPSTREAM_DNS_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_UPSTREAM_DNS_END_AT", "KONG_LOG_START"))
+ assert(has_correct_upstream_dns_time(ctx))
+ end
+ assert(is_true(ctx, "KONG_PROXIED"))
+ assert(has_correct_proxy_latency(ctx))
+ assert(has_correct_waiting_time(ctx))
+ assert(has_correct_receive_time(ctx))
+ assert(is_nil(ctx, "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ end
+
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+return CtxTests
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests-response/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests-response/schema.lua
new file mode 100644
index 00000000..50462494
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests-response/schema.lua
@@ -0,0 +1,27 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+-- TODO: At the moment this tests the happy case. Perhaps it could be extended to work
+-- even with unhappy cases, e.g. together with error-generator plugin. Or the plugin
+-- could be made to error by itself.
+return {
+ name = "ctx-tests-response",
+ fields = {
+ {
+ protocols = typedefs.protocols { default = { "http", "https", "tcp", "tls", "grpc", "grpcs" } },
+ },
+ {
+ config = {
+ type = "record",
+ fields = {
+ {
+ buffered = {
+ type = "boolean",
+ default = false,
+ },
+ },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests/handler.lua
new file mode 100644
index 00000000..33df9680
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests/handler.lua
@@ -0,0 +1,540 @@
+local ngx = ngx
+local kong = kong
+local type = type
+local assert = assert
+local subsystem = ngx.config.subsystem
+local math = math
+local get_phase = ngx.get_phase
+
+
+local function is_nil(ctx, name)
+ if ctx[name] ~= nil then
+ return false, "[ctx-tests] " .. name .. " is not a nil"
+ end
+
+ return true
+end
+
+
+local function is_true(ctx, name)
+ if ctx[name] ~= true then
+ return false, "[ctx-tests] " .. name .. " is not true"
+ end
+
+ return true
+end
+
+
+local function is_positive_integer(ctx, name)
+ local value = ctx[name]
+ if type(value) ~= "number" then
+ return false, "[ctx-tests] " .. name .. " is not a number"
+ end
+
+ if math.floor(value) ~= value then
+ return false, "[ctx-tests] " .. name .. " is not an integer"
+ end
+
+ if value <= 0 then
+ return false, "[ctx-tests] " .. name .. " is not a positive integer"
+ end
+
+ return true
+end
+
+
+local function is_non_negative_integer(ctx, name)
+ local value = ctx[name]
+ if value == 0 then
+ return true
+ end
+
+ return is_positive_integer(ctx, name)
+end
+
+
+local function is_equal_to_start_time(ctx, name)
+ local ok, err = is_positive_integer(ctx, name)
+ if not ok then
+ return ok, err
+ end
+
+ if ctx[name] < ctx.KONG_PROCESSING_START then
+ return false, "[ctx-tests] " .. name .. " is less than the processing start"
+ end
+
+ if subsystem ~= "stream" then
+ if ctx[name] ~= (ngx.req.start_time() * 1000) then
+ return false, "[ctx-tests] " .. name .. " is less than the request start time"
+ end
+ end
+
+ return true
+end
+
+
+local function is_greater_or_equal_to_start_time(ctx, name)
+ local ok, err = is_positive_integer(ctx, name)
+ if not ok then
+ return ok, err
+ end
+
+ if ctx[name] < ctx.KONG_PROCESSING_START then
+ return false, "[ctx-tests] " .. name .. " is less than the processing start"
+ end
+
+ if subsystem ~= "stream" then
+ if ctx[name] < (ngx.req.start_time() * 1000) then
+ return false, "[ctx-tests] " .. name .. " is less than the request start time"
+ end
+ end
+
+ return true
+end
+
+
+local function is_greater_or_equal_to_ctx_value(ctx, name, greater_name)
+ local ok, err = is_positive_integer(ctx, name)
+ if not ok then
+ return ok, err
+ end
+
+ ok, err = is_positive_integer(ctx, greater_name)
+ if not ok then
+ return ok, err
+ end
+
+ if ctx[greater_name] < ctx[name] then
+ return false, "[ctx-tests] " .. name .. " is greater than " .. greater_name
+ end
+
+ return true
+end
+
+
+local function has_correct_proxy_latency(ctx)
+ local ok, err = is_positive_integer(ctx, "KONG_BALANCER_ENDED_AT")
+ if not ok then
+ return ok, err
+ end
+
+ ok, err = is_non_negative_integer(ctx, "KONG_PROXY_LATENCY")
+ if not ok then
+ return ok, err
+ end
+
+ if ctx.KONG_BALANCER_ENDED_AT < ctx.KONG_PROCESSING_START then
+ return false, "[ctx-tests] KONG_BALANCER_ENDED_AT is less than the processing start"
+ end
+
+ local latency = ctx.KONG_BALANCER_ENDED_AT - ctx.KONG_PROCESSING_START
+ if ctx.KONG_PROXY_LATENCY ~= latency then
+ return false, "[ctx-tests] KONG_PROXY_LATENCY is not calculated correctly"
+ end
+
+ if subsystem ~= "stream" then
+ latency = ctx.KONG_BALANCER_ENDED_AT - ngx.req.start_time() * 1000
+ if ctx.KONG_PROXY_LATENCY ~= latency then
+ return false, "[ctx-tests] KONG_PROXY_LATENCY is not calculated correctly (request start time)"
+ end
+ end
+
+ if get_phase() == "log" then
+ local log = kong.log.serialize()
+ if ctx.KONG_PROXY_LATENCY > log.latencies.kong then
+ return false, "[ctx-tests] kong.log.serialize() latency is less than KONG_PROXY_LATENCY"
+ end
+ end
+
+ return true
+end
+
+
+local function has_correct_waiting_time(ctx)
+ local err
+ local ok = is_positive_integer(ctx, "KONG_RESPONSE_START")
+ if not ok then
+ ok, err = is_positive_integer(ctx, "KONG_HEADER_FILTER_START")
+ if not ok then
+ return ok, err
+ end
+ end
+
+ ok, err = is_positive_integer(ctx, "KONG_BALANCER_ENDED_AT")
+ if not ok then
+ return ok, err
+ end
+
+ local waiting_time = (ctx.KONG_RESPONSE_START or ctx.KONG_HEADER_FILTER_START) -
+ ctx.KONG_BALANCER_ENDED_AT
+
+ if ctx.KONG_WAITING_TIME ~= waiting_time then
+ return false, "[ctx-tests] KONG_WAITING_TIME is not calculated correctly"
+ end
+
+ return true
+end
+
+
+local function has_correct_receive_time(ctx)
+ local ok, err = is_positive_integer(ctx, "KONG_BODY_FILTER_ENDED_AT")
+ if not ok then
+ return ok, err
+ end
+
+ ok, err = is_positive_integer(ctx, "KONG_HEADER_FILTER_START")
+ if not ok then
+ return ok, err
+ end
+
+ local receive_time = ctx.KONG_BODY_FILTER_ENDED_AT -
+ (ctx.KONG_RESPONSE_START or ctx.KONG_HEADER_FILTER_START)
+
+ if ctx.KONG_RECEIVE_TIME ~= receive_time then
+ return false, "[ctx-tests] KONG_RECEIVE_TIME is not calculated correctly"
+ end
+
+ return true
+end
+
+
+local CtxTests = {
+ PRIORITY = -1000000,
+ VERSION = "1.0",
+}
+
+
+local function has_correct_upstream_dns_time(ctx)
+ local ok, err = is_positive_integer(ctx, "KONG_UPSTREAM_DNS_END_AT")
+ if not ok then
+ return ok, err
+ end
+
+ ok, err = is_positive_integer(ctx, "KONG_UPSTREAM_DNS_START")
+ if not ok then
+ return ok, err
+ end
+
+ local upstream_dns_time = ctx.KONG_UPSTREAM_DNS_END_AT - ctx.KONG_UPSTREAM_DNS_START
+
+ if ctx.KONG_UPSTREAM_DNS_TIME ~= upstream_dns_time then
+ return false, "[ctx-tests] KONG_UPSTREAM_DNS_TIME is not calculated correctly"
+ end
+
+ return true
+end
+
+
+function CtxTests:preread()
+ local ctx = ngx.ctx
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_REWRITE_START"))
+ assert(is_nil(ctx, "KONG_REWRITE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_REWRITE_TIME"))
+ assert(is_nil(ctx, "KONG_ACCESS_START"))
+ assert(is_nil(ctx, "KONG_ACCESS_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_ACCESS_TIME"))
+ assert(is_nil(ctx, "KONG_BALANCER_START"))
+ assert(is_nil(ctx, "KONG_BALANCER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BALANCER_TIME"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_START"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_END_AT"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_START"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_START"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_START"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_PROXIED"))
+ assert(is_nil(ctx, "KONG_PROXY_LATENCY"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+ assert(is_nil(ctx, "KONG_WAITING_TIME"))
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+function CtxTests:rewrite()
+ local ctx = ngx.ctx
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_start_time(ctx, "KONG_REWRITE_START", "KONG_REWRITE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_REWRITE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_REWRITE_TIME"))
+ assert(is_nil(ctx, "KONG_ACCESS_START"))
+ assert(is_nil(ctx, "KONG_ACCESS_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_ACCESS_TIME"))
+ assert(is_nil(ctx, "KONG_BALANCER_START"))
+ assert(is_nil(ctx, "KONG_BALANCER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BALANCER_TIME"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_START"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_END_AT"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_START"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_START"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_START"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_PROXIED"))
+ assert(is_nil(ctx, "KONG_PROXY_LATENCY"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+ assert(is_nil(ctx, "KONG_WAITING_TIME"))
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+function CtxTests:access(config)
+ if config.buffered then
+ kong.service.request.enable_buffering()
+ end
+
+ local ctx = ngx.ctx
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_start_time(ctx, "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_START", "KONG_REWRITE_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_REWRITE_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_ENDED_AT", "KONG_ACCESS_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_ACCESS_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_ACCESS_TIME"))
+ assert(is_nil(ctx, "KONG_BALANCER_START"))
+ assert(is_nil(ctx, "KONG_BALANCER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BALANCER_TIME"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_START"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_END_AT"))
+ assert(is_nil(ctx, "KONG_UPSTREAM_DNS_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_START"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_START"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_START"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_PROXIED"))
+ assert(is_nil(ctx, "KONG_PROXY_LATENCY"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+ assert(is_nil(ctx, "KONG_WAITING_TIME"))
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+function CtxTests:header_filter(config)
+ local ctx = ngx.ctx
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_start_time(ctx, "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_START", "KONG_REWRITE_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_REWRITE_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_ENDED_AT", "KONG_ACCESS_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_ACCESS_START", "KONG_ACCESS_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_ACCESS_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_ACCESS_ENDED_AT", "KONG_BALANCER_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_START", "KONG_BALANCER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_BALANCER_TIME"))
+ if config.buffered then
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_RESPONSE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_RESPONSE_START", "KONG_RESPONSE_ENDED_AT"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_RESPONSE_ENDED_AT", "KONG_HEADER_FILTER_START"))
+ assert(is_non_negative_integer(ctx, "KONG_RESPONSE_TIME"))
+ else
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_HEADER_FILTER_START"))
+ end
+ assert(is_true(ctx, "KONG_PROXIED"))
+ assert(has_correct_proxy_latency(ctx))
+ assert(has_correct_waiting_time(ctx))
+ assert(is_nil(ctx, "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_START"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_START"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+function CtxTests:body_filter(config)
+ if not ngx.arg[2] then
+ return
+ end
+
+ local ctx = ngx.ctx
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_start_time(ctx, "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_START", "KONG_REWRITE_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_REWRITE_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_ENDED_AT", "KONG_ACCESS_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_ACCESS_START", "KONG_ACCESS_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_ACCESS_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_ACCESS_ENDED_AT", "KONG_BALANCER_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_START", "KONG_BALANCER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_BALANCER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_HEADER_FILTER_START"))
+ if config.buffered then
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_RESPONSE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_RESPONSE_START", "KONG_RESPONSE_ENDED_AT"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_RESPONSE_ENDED_AT", "KONG_HEADER_FILTER_START"))
+ assert(is_non_negative_integer(ctx, "KONG_RESPONSE_TIME"))
+ else
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_HEADER_FILTER_START"))
+ end
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_HEADER_FILTER_START", "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_HEADER_FILTER_ENDED_AT", "KONG_BODY_FILTER_START"))
+ assert(is_true(ctx, "KONG_PROXIED"))
+ assert(has_correct_proxy_latency(ctx))
+ assert(has_correct_waiting_time(ctx))
+ assert(is_nil(ctx, "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_START"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+function CtxTests:log(config)
+ local ctx = ngx.ctx
+ if subsystem == "stream" then
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_PREREAD_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PREREAD_START", "KONG_PREREAD_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_PREREAD_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PREREAD_ENDED_AT", "KONG_BALANCER_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_START", "KONG_BALANCER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_BALANCER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_LOG_START"))
+ if (not is_nil(ctx, "KONG_UPSTREAM_DNS_START") and not is_nil(ctx, "KONG_BALANCER_ENDED_AT")) then
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_UPSTREAM_DNS_START", "KONG_UPSTREAM_DNS_END_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_UPSTREAM_DNS_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_UPSTREAM_DNS_END_AT", "KONG_LOG_START"))
+ assert(has_correct_upstream_dns_time(ctx))
+ end
+ assert(is_true(ctx, "KONG_PROXIED"))
+ assert(has_correct_proxy_latency(ctx))
+ assert(is_nil(ctx, "KONG_REWRITE_START"))
+ assert(is_nil(ctx, "KONG_REWRITE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_REWRITE_TIME"))
+ assert(is_nil(ctx, "KONG_ACCESS_START"))
+ assert(is_nil(ctx, "KONG_ACCESS_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_ACCESS_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_START"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_START"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ assert(is_nil(ctx, "KONG_RESPONSE_LATENCY"))
+
+ -- TODO: ngx.var.upstream_first_byte_time?
+ assert(is_nil(ctx, "KONG_WAITING_TIME"))
+
+
+ -- TODO: ngx.ctx.KONG_LOG_START - (ngx.ctx.BALANCER_ENDED_AT + ngx.var.upstream_first_byte_time)?
+ assert(is_nil(ctx, "KONG_RECEIVE_TIME"))
+
+ else
+ assert(is_equal_to_start_time(ctx, "KONG_PROCESSING_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_PROCESSING_START", "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_start_time(ctx, "KONG_REWRITE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_START", "KONG_REWRITE_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_REWRITE_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_REWRITE_ENDED_AT", "KONG_ACCESS_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_ACCESS_START", "KONG_ACCESS_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_ACCESS_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_ACCESS_ENDED_AT", "KONG_BALANCER_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_START", "KONG_BALANCER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_BALANCER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_HEADER_FILTER_START"))
+ if config.buffered then
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_RESPONSE_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_RESPONSE_START", "KONG_RESPONSE_ENDED_AT"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_RESPONSE_ENDED_AT", "KONG_HEADER_FILTER_START"))
+ assert(is_non_negative_integer(ctx, "KONG_RESPONSE_TIME"))
+ else
+ assert(is_nil(ctx, "KONG_RESPONSE_START"))
+ assert(is_nil(ctx, "KONG_RESPONSE_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_RESPONSE_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BALANCER_ENDED_AT", "KONG_HEADER_FILTER_START"))
+ end
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_HEADER_FILTER_START", "KONG_HEADER_FILTER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_HEADER_FILTER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_HEADER_FILTER_ENDED_AT", "KONG_BODY_FILTER_START"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BODY_FILTER_START", "KONG_BODY_FILTER_ENDED_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_BODY_FILTER_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_BODY_FILTER_ENDED_AT", "KONG_LOG_START"))
+ if (not is_nil(ctx, "KONG_UPSTREAM_DNS_START") and not is_nil(ctx, "KONG_BALANCER_ENDED_AT")) then
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_UPSTREAM_DNS_START", "KONG_UPSTREAM_DNS_END_AT"))
+ assert(is_non_negative_integer(ctx, "KONG_UPSTREAM_DNS_TIME"))
+ assert(is_greater_or_equal_to_ctx_value(ctx, "KONG_UPSTREAM_DNS_END_AT", "KONG_LOG_START"))
+ assert(has_correct_upstream_dns_time(ctx))
+ end
+ assert(is_true(ctx, "KONG_PROXIED"))
+ assert(has_correct_proxy_latency(ctx))
+ assert(has_correct_waiting_time(ctx))
+ assert(has_correct_receive_time(ctx))
+ assert(is_nil(ctx, "KONG_PREREAD_START"))
+ assert(is_nil(ctx, "KONG_PREREAD_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_PREREAD_TIME"))
+ assert(is_nil(ctx, "KONG_LOG_ENDED_AT"))
+ assert(is_nil(ctx, "KONG_LOG_TIME"))
+ end
+
+ assert(is_positive_integer(ctx, "host_port"))
+end
+
+
+return CtxTests
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests/schema.lua
new file mode 100644
index 00000000..344818ff
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/ctx-tests/schema.lua
@@ -0,0 +1,27 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+-- TODO: At the moment this tests the happy case. Perhaps it could be extended to work
+-- even with unhappy cases, e.g. together with error-generator plugin. Or the plugin
+-- could be made to error by itself.
+return {
+ name = "ctx-tests",
+ fields = {
+ {
+ protocols = typedefs.protocols { default = { "http", "https", "tcp", "tls", "grpc", "grpcs" } },
+ },
+ {
+ config = {
+ type = "record",
+ fields = {
+ {
+ buffered = {
+ type = "boolean",
+ default = false,
+ },
+ },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dns-client-test/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dns-client-test/handler.lua
new file mode 100644
index 00000000..ba9d3a4f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dns-client-test/handler.lua
@@ -0,0 +1,74 @@
+-- The test case 04-client_ipc_spec.lua will load this plugin and check its
+-- generated error logs.
+
+local DnsClientTestHandler = {
+ VERSION = "1.0",
+ PRIORITY = 1000,
+}
+
+
+local log = ngx.log
+local ERR = ngx.ERR
+local PRE = "dns-client-test:"
+
+
+local function test()
+ local phase = ""
+ local host = "ipc.test"
+
+ -- inject resolver.query
+ require("resty.dns.resolver").query = function(self, name, opts)
+ log(ERR, PRE, phase, "query:", name)
+ return {{
+ type = opts.qtype,
+ address = "1.2.3.4",
+ target = "1.2.3.4",
+ class = 1,
+ name = name,
+ ttl = 0.1,
+ }}
+ end
+
+ local dns_client = require("kong.tools.dns")()
+ local cli = dns_client.new({})
+
+ -- inject broadcast
+ local orig_broadcast = cli.cache.broadcast
+ cli.cache.broadcast = function(channel, data)
+ log(ERR, PRE, phase, "broadcast:", data)
+ orig_broadcast(channel, data)
+ end
+
+ -- inject lrucahce.delete
+ local orig_delete = cli.cache.lru.delete
+ cli.cache.lru.delete = function(self, key)
+ log(ERR, PRE, phase, "lru delete:", key)
+ orig_delete(self, key)
+ end
+
+ -- phase 1: two processes try to get answers and trigger only one query
+ phase = "first:"
+ local answers = cli:_resolve(host)
+ log(ERR, PRE, phase, "answers:", answers[1].address)
+
+ -- wait records to be stale
+ ngx.sleep(0.5)
+
+ -- phase 2: get the stale record and trigger only one stale-updating task,
+ -- the stale-updating task will update the record and broadcast
+ -- the lru cache invalidation event to other workers
+ phase = "stale:"
+ local answers = cli:_resolve(host)
+ log(ERR, PRE, phase, "answers:", answers[1].address)
+
+ -- tests end
+ log(ERR, PRE, "DNS query completed")
+end
+
+
+function DnsClientTestHandler:init_worker()
+ ngx.timer.at(0, test)
+end
+
+
+return DnsClientTestHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dns-client-test/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dns-client-test/schema.lua
new file mode 100644
index 00000000..8b6c80ad
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dns-client-test/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "dns-client-test",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dummy/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dummy/handler.lua
new file mode 100644
index 00000000..659908e9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dummy/handler.lua
@@ -0,0 +1,50 @@
+local DummyHandler = {
+ VERSION = "9.9.9",
+ PRIORITY = 1000,
+}
+
+
+function DummyHandler:access(conf)
+ if ngx.req.get_uri_args()["send_error"] then
+ return kong.response.exit(404, { message = "Not found" })
+ end
+
+ if conf.test_try then
+ kong.vault.try(function ()
+ if conf.resp_header_value == "open_sesame" then
+ ngx.header["X-Try-Works"] = "true"
+ end
+ end, conf)
+ end
+
+ ngx.header["Dummy-Plugin-Access-Header"] = "dummy"
+end
+
+
+function DummyHandler:header_filter(conf)
+ ngx.header["Dummy-Plugin"] = conf.resp_header_value
+
+ if conf.resp_headers then
+ for header, value in pairs(conf.resp_headers) do
+ ngx.header[header] = value
+ end
+ end
+
+ if conf.resp_code then
+ ngx.status = conf.resp_code
+ end
+
+ if conf.append_body then
+ ngx.header["Content-Length"] = nil
+ end
+end
+
+
+function DummyHandler:body_filter(conf)
+ if conf.append_body and not ngx.arg[2] then
+ ngx.arg[1] = string.sub(ngx.arg[1], 1, -2) .. conf.append_body
+ end
+end
+
+
+return DummyHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dummy/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dummy/schema.lua
new file mode 100644
index 00000000..9f689e48
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/dummy/schema.lua
@@ -0,0 +1,32 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+return {
+ name = "dummy",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { resp_header_value = { type = "string", default = "1", referenceable = true } },
+ { resp_headers = {
+ type = "map",
+ keys = typedefs.header_name,
+ values = {
+ type = "string",
+ referenceable = true,
+ }
+ }},
+ { append_body = { type = "string" } },
+ { resp_code = { type = "number" } },
+ { test_try = { type = "boolean", default = false}},
+ { old_field = {
+ type = "number",
+ deprecation = {
+ message = "dummy: old_field is deprecated",
+ removal_in_version = "x.y.z",
+ old_default = 42 }, }, }
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering-response/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering-response/handler.lua
new file mode 100644
index 00000000..2d205fc4
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering-response/handler.lua
@@ -0,0 +1,34 @@
+local ngx = ngx
+local kong = kong
+
+
+local EnableBuffering = {
+ PRIORITY = 1000000,
+ VERSION = "1.0",
+}
+
+
+function EnableBuffering:access()
+ kong.service.request.enable_buffering()
+end
+
+
+function EnableBuffering:response(conf)
+ if conf.phase == "response" then
+ if conf.mode == "modify-json" then
+ local body = assert(kong.service.response.get_body())
+ body.modified = true
+ return kong.response.exit(kong.service.response.get_status(), body, {
+ Modified = "yes",
+ })
+ end
+
+ if conf.mode == "md5-header" then
+ local body = kong.service.response.get_raw_body()
+ kong.response.set_header("MD5", ngx.md5(body))
+ end
+ end
+end
+
+
+return EnableBuffering
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering-response/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering-response/schema.lua
new file mode 100644
index 00000000..9bef0c54
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering-response/schema.lua
@@ -0,0 +1,23 @@
+return {
+ name = "enable-buffering-response",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ {
+ phase = {
+ type = "string",
+ default = "header_filter",
+ },
+ },
+ {
+ mode = {
+ type = "string",
+ },
+ },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering/handler.lua
new file mode 100644
index 00000000..83c59842
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering/handler.lua
@@ -0,0 +1,34 @@
+local ngx = ngx
+local kong = kong
+
+
+local EnableBuffering = {
+ PRIORITY = 1000000,
+ VERSION = "1.0",
+}
+
+
+function EnableBuffering:access()
+ kong.service.request.enable_buffering()
+end
+
+
+function EnableBuffering:header_filter(conf)
+ if conf.phase == "header_filter" then
+ if conf.mode == "modify-json" then
+ local body = assert(kong.service.response.get_body())
+ body.modified = true
+ return kong.response.exit(kong.response.get_status(), body, {
+ Modified = "yes",
+ })
+ end
+
+ if conf.mode == "md5-header" then
+ local body = kong.service.response.get_raw_body()
+ kong.response.set_header("MD5", ngx.md5(body))
+ end
+ end
+end
+
+
+return EnableBuffering
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering/schema.lua
new file mode 100644
index 00000000..ad345321
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/enable-buffering/schema.lua
@@ -0,0 +1,23 @@
+return {
+ name = "enable-buffering",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ {
+ phase = {
+ type = "string",
+ default = "header_filter",
+ },
+ },
+ {
+ mode = {
+ type = "string",
+ },
+ },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator-last/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator-last/handler.lua
new file mode 100644
index 00000000..5601b28e
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator-last/handler.lua
@@ -0,0 +1,64 @@
+local error = error
+
+
+local ErrorGeneratorLastHandler = {}
+
+
+ErrorGeneratorLastHandler.PRIORITY = -1000000
+ErrorGeneratorLastHandler.VERSION = "1.0"
+
+function ErrorGeneratorLastHandler:init_worker()
+end
+
+
+function ErrorGeneratorLastHandler:certificate(conf)
+ if conf.certificate then
+ error("[error-generator-last] certificate")
+ end
+end
+
+
+function ErrorGeneratorLastHandler:rewrite(conf)
+ if conf.rewrite then
+ error("[error-generator-last] rewrite")
+ end
+end
+
+
+function ErrorGeneratorLastHandler:preread(conf)
+ if conf.preread then
+ error("[error-generator-last] preread")
+ end
+end
+
+
+
+function ErrorGeneratorLastHandler:access(conf)
+ if conf.access then
+ error("[error-generator-last] access")
+ end
+end
+
+
+function ErrorGeneratorLastHandler:header_filter(conf)
+ if conf.header_filter then
+ error("[error-generator-last] header_filter")
+ end
+end
+
+
+function ErrorGeneratorLastHandler:body_filter(conf)
+ if conf.header_filter then
+ error("[error-generator-last] body_filter")
+ end
+end
+
+
+function ErrorGeneratorLastHandler:log(conf)
+ if conf.log then
+ error("[error-generator] body_filter")
+ end
+end
+
+
+return ErrorGeneratorLastHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator-last/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator-last/schema.lua
new file mode 100644
index 00000000..ab65e58d
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator-last/schema.lua
@@ -0,0 +1,18 @@
+return {
+ name = "error-generator-last",
+ fields = {
+ { config = {
+ type = "record",
+ fields = {
+ { certificate = { type = "boolean", required = false, default = false } },
+ { rewrite = { type = "boolean", required = false, default = false } },
+ { preread = { type = "boolean", required = false, default = false } },
+ { access = { type = "boolean", required = false, default = false } },
+ { header_filter = { type = "boolean", required = false, default = false } },
+ { body_filter = { type = "boolean", required = false, default = false } },
+ { log = { type = "boolean", required = false, default = false } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator/handler.lua
new file mode 100644
index 00000000..4c67f22d
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator/handler.lua
@@ -0,0 +1,64 @@
+local error = error
+
+
+local ErrorGeneratorHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000000,
+}
+
+
+function ErrorGeneratorHandler:init_worker()
+end
+
+
+function ErrorGeneratorHandler:certificate(conf)
+ if conf.certificate then
+ error("[error-generator] certificate")
+ end
+end
+
+
+function ErrorGeneratorHandler:rewrite(conf)
+ if conf.rewrite then
+ error("[error-generator] rewrite")
+ end
+end
+
+
+function ErrorGeneratorHandler:preread(conf)
+ if conf.preread then
+ error("[error-generator] preread")
+ end
+end
+
+
+function ErrorGeneratorHandler:access(conf)
+ if conf.access then
+ error("[error-generator] access")
+ end
+end
+
+
+function ErrorGeneratorHandler:header_filter(conf)
+ if conf.header_filter then
+ error("[error-generator] header_filter")
+ end
+end
+
+
+function ErrorGeneratorHandler:body_filter(conf)
+ if conf.header_filter then
+ error("[error-generator] body_filter")
+ end
+end
+
+
+function ErrorGeneratorHandler:log(conf)
+ if conf.log then
+ error("[error-generator] body_filter")
+ end
+end
+
+
+
+return ErrorGeneratorHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator/schema.lua
new file mode 100644
index 00000000..6bb6765d
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-generator/schema.lua
@@ -0,0 +1,23 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ name = "error-generator",
+ fields = {
+ { consumer = typedefs.no_consumer },
+ { protocols = typedefs.protocols_http },
+ { config = {
+ type = "record",
+ fields = {
+ { certificate = { type = "boolean", required = false, default = false } },
+ { rewrite = { type = "boolean", required = false, default = false } },
+ { preread = { type = "boolean", required = false, default = false } },
+ { access = { type = "boolean", required = false, default = false } },
+ { header_filter = { type = "boolean", required = false, default = false } },
+ { body_filter = { type = "boolean", required = false, default = false } },
+ { log = { type = "boolean", required = false, default = false } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-handler-log/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-handler-log/handler.lua
new file mode 100644
index 00000000..37bb47e9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-handler-log/handler.lua
@@ -0,0 +1,52 @@
+local cjson = require("cjson")
+local ngx = ngx
+
+
+local ErrorHandlerLog = {}
+
+
+ErrorHandlerLog.PRIORITY = 1000
+ErrorHandlerLog.VERSION = "1.0"
+
+local function register(phase)
+ local ws_id = ngx.ctx.workspace or kong.default_workspace
+ local phases = ngx.ctx.err_handler_log_phases or {}
+ local in_ws = phases[ws_id] or {}
+ phases[ws_id] = in_ws
+ table.insert(in_ws, phase)
+ ngx.ctx.err_handler_log_phases = phases
+end
+
+
+function ErrorHandlerLog:rewrite(conf)
+ register("rewrite")
+end
+
+
+function ErrorHandlerLog:access(conf)
+ register("access")
+end
+
+
+function ErrorHandlerLog:header_filter(conf)
+ register("header_filter")
+
+ local phases = ngx.ctx.err_handler_log_phases or {}
+
+
+ ngx.header["Content-Length"] = nil
+ ngx.header["Log-Plugin-Phases"] = table.concat(phases[ngx.ctx.workspace] or {}, ",")
+ ngx.header["Log-Plugin-Workspaces"] = cjson.encode(phases)
+
+ ngx.header["Log-Plugin-Service-Matched"] = ngx.ctx.service and ngx.ctx.service.name
+end
+
+
+function ErrorHandlerLog:body_filter(conf)
+ if not ngx.arg[2] then
+ ngx.arg[1] = "body_filter"
+ end
+end
+
+
+return ErrorHandlerLog
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-handler-log/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-handler-log/schema.lua
new file mode 100644
index 00000000..51de6b61
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/error-handler-log/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "error-handler-log",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/fail-once-auth/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/fail-once-auth/handler.lua
new file mode 100644
index 00000000..ccc3fe5b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/fail-once-auth/handler.lua
@@ -0,0 +1,17 @@
+-- a plugin fixture to force one authentication failure
+
+local FailOnceAuth = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+local failed = {}
+
+function FailOnceAuth:access(conf)
+ if not failed[conf.service_id] then
+ failed[conf.service_id] = true
+ return kong.response.exit(401, { message = conf.message })
+ end
+end
+
+return FailOnceAuth
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/fail-once-auth/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/fail-once-auth/schema.lua
new file mode 100644
index 00000000..291592ec
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/fail-once-auth/schema.lua
@@ -0,0 +1,13 @@
+return {
+ name = "fail-once-auth",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { message = { type = "string", default = "try again!" } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/api.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/api.lua
new file mode 100644
index 00000000..99fa8456
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/api.lua
@@ -0,0 +1,35 @@
+local kong = kong
+
+local foreign_entities = kong.db.foreign_entities
+
+local function select_by_name(params)
+ return params.dao:select_by_name(params.name)
+end
+
+local function get_cached(self, dao, cb)
+ local name = self.params[dao.schema.name]
+
+ local cache_key = dao:cache_key(name)
+ local entity, err = kong.cache:get(cache_key, nil, cb, { dao = dao, name = name })
+
+ if err then
+ kong.log.debug(err)
+ end
+
+ if not entity then
+ return kong.response.exit(404)
+ end
+
+ return kong.response.exit(200, entity)
+end
+
+return {
+ ["/foreign_entities_cache_warmup/:foreign_entities"] = {
+ schema = foreign_entities.schema,
+ methods = {
+ GET = function(self, db)
+ return get_cached(self, foreign_entities, select_by_name)
+ end,
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/daos.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/daos.lua
new file mode 100644
index 00000000..1cb944f8
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/daos.lua
@@ -0,0 +1,28 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ {
+ name = "foreign_entities",
+ primary_key = { "id" },
+ endpoint_key = "name",
+ cache_key = { "name" },
+ admin_api_name = "foreign-entities",
+ fields = {
+ { id = typedefs.uuid },
+ { name = { type = "string", unique = true } },
+ { same = typedefs.uuid },
+ },
+ },
+ {
+ name = "foreign_references",
+ primary_key = { "id" },
+ endpoint_key = "name",
+ admin_api_name = "foreign-references",
+ fields = {
+ { id = typedefs.uuid },
+ { name = { type = "string", unique = true } },
+ { same = { type = "foreign", reference = "foreign_entities", on_delete = "cascade" } },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/handler.lua
new file mode 100644
index 00000000..bd97e4e8
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/handler.lua
@@ -0,0 +1,4 @@
+return {
+ PRIORITY = 1,
+ VERSION = "1.0",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/migrations/000_base_foreign_entity.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/migrations/000_base_foreign_entity.lua
new file mode 100644
index 00000000..878ef7e1
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/migrations/000_base_foreign_entity.lua
@@ -0,0 +1,24 @@
+return {
+ postgres = {
+ up = [[
+ CREATE TABLE IF NOT EXISTS "foreign_entities" (
+ "id" UUID PRIMARY KEY,
+ "name" TEXT UNIQUE,
+ "same" UUID
+ );
+
+ CREATE TABLE IF NOT EXISTS "foreign_references" (
+ "id" UUID PRIMARY KEY,
+ "name" TEXT UNIQUE,
+ "same_id" UUID REFERENCES "foreign_entities" ("id") ON DELETE CASCADE
+ );
+
+ DO $$
+ BEGIN
+ CREATE INDEX IF NOT EXISTS "foreign_references_fkey_same" ON "foreign_references" ("same_id");
+ EXCEPTION WHEN UNDEFINED_COLUMN THEN
+ -- Do nothing, accept existing state
+ END$$;
+ ]],
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/migrations/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/migrations/init.lua
new file mode 100644
index 00000000..ad8ebbc5
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/migrations/init.lua
@@ -0,0 +1,3 @@
+return {
+ "000_base_foreign_entity",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/schema.lua
new file mode 100644
index 00000000..e2984364
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/foreign-entity/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "foreign-entity",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/get-plugin-id/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/get-plugin-id/handler.lua
new file mode 100644
index 00000000..1da4b1a6
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/get-plugin-id/handler.lua
@@ -0,0 +1,10 @@
+local PluginConfigDumpHandler = {
+ VERSION = "1.0.0",
+ PRIORITY = 1,
+}
+
+function PluginConfigDumpHandler:access(conf)
+ kong.response.exit(200, kong.plugin.get_id())
+end
+
+return PluginConfigDumpHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/get-plugin-id/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/get-plugin-id/schema.lua
new file mode 100644
index 00000000..e95a7685
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/get-plugin-id/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "get-plugin-id",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/init-worker-lua-error/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/init-worker-lua-error/handler.lua
new file mode 100644
index 00000000..8530edd2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/init-worker-lua-error/handler.lua
@@ -0,0 +1,13 @@
+local InitWorkerLuaError = {}
+
+
+InitWorkerLuaError.PRIORITY = 1000
+InitWorkerLuaError.VERSION = "1.0"
+
+
+function InitWorkerLuaError:init_worker(conf)
+ error("this fails intentionally")
+end
+
+
+return InitWorkerLuaError
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/init-worker-lua-error/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/init-worker-lua-error/schema.lua
new file mode 100644
index 00000000..fa796cc7
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/init-worker-lua-error/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "init-worker-lua-error",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalid-schema/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalid-schema/handler.lua
new file mode 100644
index 00000000..4baa23f6
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalid-schema/handler.lua
@@ -0,0 +1,6 @@
+local InvalidSchemaHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+return InvalidSchemaHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalid-schema/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalid-schema/schema.lua
new file mode 100644
index 00000000..639480c2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalid-schema/schema.lua
@@ -0,0 +1,13 @@
+return {
+ name = "invalid-schema",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { foo = { type = "bar" } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalidations/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalidations/handler.lua
new file mode 100644
index 00000000..059a96b6
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalidations/handler.lua
@@ -0,0 +1,30 @@
+local kong = kong
+local assert = assert
+
+
+local counts = {}
+
+
+local Invalidations = {
+ PRIORITY = 0,
+ VERSION = "1.0",
+}
+
+
+function Invalidations:init_worker()
+ assert(kong.cluster_events:subscribe("invalidations", function(key)
+ counts[key] = (counts[key] or 0) + 1
+ end))
+
+ assert(kong.cluster_events:subscribe("invalidations_kong_core_db_cache", function(key)
+ counts[key] = (counts[key] or 0) + 1
+ end))
+end
+
+
+function Invalidations:access(_)
+ return kong.response.exit(200, counts)
+end
+
+
+return Invalidations
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalidations/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalidations/schema.lua
new file mode 100644
index 00000000..7170aae6
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/invalidations/schema.lua
@@ -0,0 +1,27 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ name = "invalidations",
+ fields = {
+ {
+ protocols = typedefs.protocols {
+ default = {
+ "http",
+ "https",
+ "tcp",
+ "tls",
+ "grpc",
+ "grpcs"
+ },
+ },
+ },
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger-last/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger-last/handler.lua
new file mode 100644
index 00000000..4bcc73e2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger-last/handler.lua
@@ -0,0 +1,20 @@
+local LoggerHandler = require "spec.fixtures.custom_plugins.kong.plugins.logger.handler"
+
+local LoggerLastHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 0,
+}
+
+
+LoggerLastHandler.init_worker = LoggerHandler.init_worker
+LoggerLastHandler.configure = LoggerHandler.configure
+LoggerLastHandler.certificate = LoggerHandler.certificate
+LoggerLastHandler.preread = LoggerHandler.preread
+LoggerLastHandler.rewrite = LoggerHandler.rewrite
+LoggerLastHandler.access = LoggerHandler.access
+LoggerLastHandler.header_filter = LoggerHandler.header_filter
+LoggerLastHandler.body_filter = LoggerHandler.body_filter
+LoggerLastHandler.log = LoggerHandler.log
+
+
+return LoggerLastHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger-last/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger-last/schema.lua
new file mode 100644
index 00000000..7c778697
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger-last/schema.lua
@@ -0,0 +1,18 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ name = "logger-last",
+ fields = {
+ {
+ protocols = typedefs.protocols { default = { "http", "https", "tcp", "tls", "grpc", "grpcs" } },
+ },
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger/handler.lua
new file mode 100644
index 00000000..691945f9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger/handler.lua
@@ -0,0 +1,52 @@
+local LoggerHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+
+function LoggerHandler:init_worker()
+ kong.log("init_worker phase")
+end
+
+
+function LoggerHandler:configure(configs)
+ kong.log("configure phase")
+end
+
+
+function LoggerHandler:certificate(conf)
+ kong.log("certificate phase")
+end
+
+
+function LoggerHandler:preread(conf)
+ kong.log("preread phase")
+end
+
+
+function LoggerHandler:rewrite(conf)
+ kong.log("rewrite phase")
+end
+
+
+function LoggerHandler:access(conf)
+ kong.log("access phase")
+end
+
+
+function LoggerHandler:header_filter(conf)
+ kong.log("header_filter phase")
+end
+
+
+function LoggerHandler:body_filter(conf)
+ kong.log("body_filter phase")
+end
+
+
+function LoggerHandler:log(conf)
+ kong.log("log phase")
+end
+
+
+return LoggerHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger/schema.lua
new file mode 100644
index 00000000..8acb87e3
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/logger/schema.lua
@@ -0,0 +1,18 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ name = "logger",
+ fields = {
+ {
+ protocols = typedefs.protocols { default = { "http", "https", "tcp", "tls", "grpc", "grpcs" } },
+ },
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/max-args/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/max-args/handler.lua
new file mode 100644
index 00000000..f03cacc3
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/max-args/handler.lua
@@ -0,0 +1,72 @@
+local nkeys = require "table.nkeys"
+
+
+local kong = kong
+local ngx = ngx
+
+
+
+local function get_response_headers(n)
+ local headers = {}
+
+ for i = 1, n - 2 do
+ headers["a" .. i] = "v" .. i
+ end
+
+ --headers["content-length"] = "0" (added by nginx/kong)
+ --headers["connection"] = "keep-alive" (added by nginx/kong)
+
+ return headers
+end
+
+
+local MaxArgsHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+
+function MaxArgsHandler:access(conf)
+ local client_args_count = nkeys(ngx.req.get_uri_args(0))
+
+ ngx.req.read_body()
+
+ kong.ctx.plugin.data = {
+ client_args_count = client_args_count,
+ kong = {
+ request_headers = kong.request.get_headers(),
+ uri_args = kong.request.get_query(),
+ post_args = kong.request.get_body() or {},
+ },
+ ngx = {
+ request_headers = ngx.req.get_headers(),
+ uri_args = ngx.req.get_uri_args(),
+ post_args = ngx.req.get_post_args(),
+ },
+ }
+
+ return kong.response.exit(200, "", get_response_headers(client_args_count))
+end
+
+
+function MaxArgsHandler:header_filter(conf)
+ local data = kong.ctx.plugin.data
+ return kong.response.exit(200, {
+ client_args_count = data.client_args_count,
+ kong = {
+ request_headers = data.kong.request_headers,
+ response_headers = kong.response.get_headers(),
+ uri_args = data.kong.uri_args,
+ post_args = data.kong.post_args,
+ },
+ ngx = {
+ request_headers = data.ngx.request_headers,
+ response_headers = ngx.resp.get_headers(),
+ uri_args = data.ngx.uri_args,
+ post_args = data.ngx.post_args,
+ }
+ })
+end
+
+
+return MaxArgsHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/max-args/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/max-args/schema.lua
new file mode 100644
index 00000000..b8793e89
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/max-args/schema.lua
@@ -0,0 +1,18 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ name = "max-args",
+ fields = {
+ {
+ protocols = typedefs.protocols { default = { "http", "https", "tcp", "tls", "grpc", "grpcs" } },
+ },
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/muti-external-http-calls/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/muti-external-http-calls/handler.lua
new file mode 100644
index 00000000..b89845c9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/muti-external-http-calls/handler.lua
@@ -0,0 +1,22 @@
+local http = require "resty.http"
+
+local EnableBuffering = {
+ PRIORITY = 1000000,
+ VERSION = "1.0",
+}
+
+
+function EnableBuffering:access(conf)
+ local httpc = http.new()
+ httpc:set_timeout(1)
+
+ for suffix = 0, conf.calls - 1 do
+ local uri = "http://really.really.really.really.really.really.not.exists." .. suffix
+ pcall(function()
+ httpc:request_uri(uri)
+ end)
+ end
+end
+
+
+return EnableBuffering
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/muti-external-http-calls/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/muti-external-http-calls/schema.lua
new file mode 100644
index 00000000..d658e989
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/muti-external-http-calls/schema.lua
@@ -0,0 +1,18 @@
+return {
+ name = "muti-external-http-calls",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ {
+ calls = {
+ type = "number",
+ required = true,
+ },
+ }
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/pdk-logger/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/pdk-logger/handler.lua
new file mode 100644
index 00000000..7a5d4d4b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/pdk-logger/handler.lua
@@ -0,0 +1,49 @@
+local PDKLoggerHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+local plugin_name = "pdk-logger"
+local attributes = { some_key = "some_value", some_other_key = "some_other_value"}
+
+
+function PDKLoggerHandler:access(conf)
+ local message_type = "access_phase"
+ local message = "hello, access phase"
+ -- pass both optional arguments (message and attributes)
+ local ok, err = kong.telemetry.log(plugin_name, conf, message_type, message, attributes)
+ if not ok then
+ kong.log.err(err)
+ end
+end
+
+
+function PDKLoggerHandler:header_filter(conf)
+ local message_type = "header_filter_phase"
+ local message = "hello, header_filter phase"
+ -- no attributes
+ local ok, err = kong.telemetry.log(plugin_name, conf, message_type, message, nil)
+ if not ok then
+ kong.log.err(err)
+ end
+end
+
+
+function PDKLoggerHandler:log(conf)
+ local message_type = "log_phase"
+ -- no message
+ local ok, err = kong.telemetry.log(plugin_name, conf, message_type, nil, attributes)
+ if not ok then
+ kong.log.err(err)
+ end
+
+ message_type = "log_phase_2"
+ -- no attributes and no message
+ ok, err = kong.telemetry.log(plugin_name, conf, message_type, nil, nil)
+ if not ok then
+ kong.log.err(err)
+ end
+end
+
+
+return PDKLoggerHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/pdk-logger/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/pdk-logger/schema.lua
new file mode 100644
index 00000000..cbdafd0a
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/pdk-logger/schema.lua
@@ -0,0 +1,18 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ name = "pdk-logger",
+ fields = {
+ {
+ protocols = typedefs.protocols { default = { "http", "https", "tcp", "tls", "grpc", "grpcs" } },
+ },
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-config-dump/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-config-dump/handler.lua
new file mode 100644
index 00000000..048226d2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-config-dump/handler.lua
@@ -0,0 +1,10 @@
+local PluginConfigDumpHandler = {
+ VERSION = "1.0.0",
+ PRIORITY = 1,
+}
+
+function PluginConfigDumpHandler:access(conf)
+ kong.response.exit(200, conf)
+end
+
+return PluginConfigDumpHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-config-dump/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-config-dump/schema.lua
new file mode 100644
index 00000000..fa000f4b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-config-dump/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "plugin-config-dump",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/custom_dao.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/custom_dao.lua
new file mode 100644
index 00000000..e893772f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/custom_dao.lua
@@ -0,0 +1,9 @@
+local CustomDAO = {}
+
+
+function CustomDAO:custom_method()
+ return self.strategy:custom_method()
+end
+
+
+return CustomDAO
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/daos.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/daos.lua
new file mode 100644
index 00000000..011f703b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/daos.lua
@@ -0,0 +1,13 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ {
+ dao = "kong.plugins.plugin-with-custom-dao.custom_dao",
+ name = "custom_dao",
+ primary_key = { "id" },
+ fields = {
+ { id = typedefs.uuid },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/handler.lua
new file mode 100644
index 00000000..57595045
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/handler.lua
@@ -0,0 +1,7 @@
+local MyHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+
+return MyHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/schema.lua
new file mode 100644
index 00000000..02da5f3f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "plugin-with-custom-dao",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/strategies/postgres/custom_dao.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/strategies/postgres/custom_dao.lua
new file mode 100644
index 00000000..0b0d073f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/plugin-with-custom-dao/strategies/postgres/custom_dao.lua
@@ -0,0 +1,7 @@
+local CustomDAO = {}
+
+function CustomDAO:custom_method()
+ return "I was implemented for postgres"
+end
+
+return CustomDAO
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/preserve-nulls/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/preserve-nulls/handler.lua
new file mode 100644
index 00000000..4d3525f7
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/preserve-nulls/handler.lua
@@ -0,0 +1,24 @@
+-- This software is copyright Kong Inc. and its licensors.
+-- Use of the software is subject to the agreement between your organization
+-- and Kong Inc. If there is no such agreement, use is governed by and
+-- subject to the terms of the Kong Master Software License Agreement found
+-- at https://konghq.com/enterprisesoftwarelicense/.
+-- [ END OF LICENSE 0867164ffc95e54f04670b5169c09574bdbd9bba ]
+
+local kong = kong
+
+local PreserveNullsHandler = {
+ PRIORITY = 1000,
+ VERSION = "0.1.0",
+}
+
+function PreserveNullsHandler:access(plugin_conf)
+ kong.service.request.set_header(plugin_conf.request_header, "this is on a request")
+end
+
+function PreserveNullsHandler:header_filter(plugin_conf)
+ kong.response.set_header(plugin_conf.response_header, "this is on the response")
+end
+
+
+return PreserveNullsHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/preserve-nulls/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/preserve-nulls/schema.lua
new file mode 100644
index 00000000..e4557f67
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/preserve-nulls/schema.lua
@@ -0,0 +1,38 @@
+-- This software is copyright Kong Inc. and its licensors.
+-- Use of the software is subject to the agreement between your organization
+-- and Kong Inc. If there is no such agreement, use is governed by and
+-- subject to the terms of the Kong Master Software License Agreement found
+-- at https://konghq.com/enterprisesoftwarelicense/.
+-- [ END OF LICENSE 0867164ffc95e54f04670b5169c09574bdbd9bba ]
+
+local typedefs = require "kong.db.schema.typedefs"
+
+
+local PLUGIN_NAME = "PreserveNulls"
+
+local schema = {
+ name = PLUGIN_NAME,
+ fields = {
+ { consumer = typedefs.no_consumer },
+ { protocols = typedefs.protocols_http },
+ { config = {
+ type = "record",
+ fields = {
+ { request_header = typedefs.header_name {
+ required = true,
+ default = "Hello-World" } },
+ { response_header = typedefs.header_name {
+ required = true,
+ default = "Bye-World" } },
+ { large = {
+ type = "integer",
+ default = 100 } },
+ { ttl = {
+ type = "integer" } },
+ },
+ },
+ },
+ },
+}
+
+return schema
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reconfiguration-completion/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reconfiguration-completion/handler.lua
new file mode 100644
index 00000000..8afb7f5a
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reconfiguration-completion/handler.lua
@@ -0,0 +1,29 @@
+local kong_meta = require "kong.meta"
+
+local ReconfigurationCompletionHandler = {
+ VERSION = kong_meta.version,
+ PRIORITY = 2000000,
+}
+
+
+function ReconfigurationCompletionHandler:rewrite(conf)
+ local status = "unknown"
+ local if_kong_configuration_version = kong.request and kong.request.get_header('if-kong-configuration-version')
+ if if_kong_configuration_version then
+ if if_kong_configuration_version ~= conf.version then
+ return kong.response.error(
+ 503,
+ "Service Unavailable",
+ {
+ ["X-Kong-Reconfiguration-Status"] = "pending",
+ ["Retry-After"] = tostring((kong.configuration.worker_state_update_frequency or 1) + 1),
+ }
+ )
+ else
+ status = "complete"
+ end
+ end
+ kong.response.set_header("X-Kong-Reconfiguration-Status", status)
+end
+
+return ReconfigurationCompletionHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reconfiguration-completion/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reconfiguration-completion/schema.lua
new file mode 100644
index 00000000..3a7f8512
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reconfiguration-completion/schema.lua
@@ -0,0 +1,16 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+return {
+ name = "reconfiguration-completion",
+ fields = {
+ { protocols = typedefs.protocols },
+ { config = {
+ type = "record",
+ fields = {
+ { version = { description = "Client-assigned version number for the current Kong Gateway configuration",
+ type = "string",
+ required = true, } },
+ },
+ }, },
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/redis-dummy/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/redis-dummy/handler.lua
new file mode 100644
index 00000000..8e133500
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/redis-dummy/handler.lua
@@ -0,0 +1,12 @@
+local kong = kong
+
+local RedisDummy = {
+ PRIORITY = 1000,
+ VERSION = "0.1.0",
+}
+
+function RedisDummy:access(conf)
+ kong.log("access phase")
+end
+
+return RedisDummy
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/redis-dummy/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/redis-dummy/schema.lua
new file mode 100644
index 00000000..7740f950
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/redis-dummy/schema.lua
@@ -0,0 +1,15 @@
+local redis_schema = require "kong.tools.redis.schema"
+
+return {
+ name = "redis-dummy",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { redis = redis_schema.config_schema },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reference-ca-cert/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reference-ca-cert/handler.lua
new file mode 100644
index 00000000..dfff3ebc
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reference-ca-cert/handler.lua
@@ -0,0 +1,6 @@
+local ReferenceCaCertHandler = {
+ VERSION = "1.0.0",
+ PRIORITY = 1,
+}
+
+return ReferenceCaCertHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reference-ca-cert/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reference-ca-cert/schema.lua
new file mode 100644
index 00000000..8e388fe6
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reference-ca-cert/schema.lua
@@ -0,0 +1,15 @@
+return {
+ name = "reference-ca-cert",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { pre_key = { type = "string", }, },
+ { ca_certificates = { type = "array", required = true, elements = { type = "string", uuid = true, }, }, },
+ { post_key = { type = "string", }, },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/api.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/api.lua
new file mode 100644
index 00000000..1c2e612c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/api.lua
@@ -0,0 +1,19 @@
+local reports = require "kong.reports"
+local constants = require "kong.constants"
+
+
+return {
+ ["/reports/send-ping"] = {
+ POST = function(self)
+ -- if a port was passed, patch it in constants.REPORTS so
+ -- that tests can change the default reports port
+ if self.params.port then
+ constants.REPORTS.STATS_TLS_PORT = self.params.port
+ end
+
+ reports._sync_counter()
+ reports.send_ping()
+ kong.response.exit(200, { message = "ok" })
+ end,
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/handler.lua
new file mode 100644
index 00000000..64d3b3a1
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/handler.lua
@@ -0,0 +1,15 @@
+local ReportsApiHandler = {
+ PRIORITY = 1000,
+ VERSION = "1.0",
+}
+
+function ReportsApiHandler:preread()
+ local reports = require "kong.reports"
+ reports._sync_counter()
+ reports.send_ping()
+ ngx.print("ok")
+ ngx.exit(200)
+end
+
+
+return ReportsApiHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/schema.lua
new file mode 100644
index 00000000..cd45c135
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/reports-api/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "reports-api",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/request-aware-table/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/request-aware-table/handler.lua
new file mode 100644
index 00000000..a3c640cf
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/request-aware-table/handler.lua
@@ -0,0 +1,41 @@
+local RAT = require "kong.tools.request_aware_table"
+
+local kong = kong
+local tab
+
+local _M = {
+ PRIORITY = 1001,
+ VERSION = "1.0",
+}
+
+local function access_table()
+ -- write access
+ tab.foo = "bar"
+ tab.bar = "baz"
+ -- read/write access
+ tab.baz = tab.foo .. tab.bar
+end
+
+
+function _M:access(conf)
+ local query = kong.request.get_query()
+ if query.new_tab == "true" then
+ -- new table
+ tab = RAT.new()
+ ngx.exit(200)
+ end
+
+ if query.clear == "true" then
+ -- clear table
+ tab:clear()
+ ngx.exit(200)
+ end
+
+ -- access multiple times during same request
+ for _ = 1, 3 do
+ access_table()
+ end
+end
+
+
+return _M
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/request-aware-table/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/request-aware-table/schema.lua
new file mode 100644
index 00000000..28813077
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/request-aware-table/schema.lua
@@ -0,0 +1,11 @@
+return {
+ name = "request-aware-table",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = { }
+ }
+ }
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/response-phase/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/response-phase/handler.lua
new file mode 100644
index 00000000..e2c15bb0
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/response-phase/handler.lua
@@ -0,0 +1,16 @@
+local kong_meta = require "kong.meta"
+
+local resp_phase = {}
+
+
+resp_phase.PRIORITY = 950
+resp_phase.VERSION = kong_meta.version
+
+
+function resp_phase:access()
+end
+
+function resp_phase:response()
+end
+
+return resp_phase
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/response-phase/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/response-phase/schema.lua
new file mode 100644
index 00000000..d56d718a
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/response-phase/schema.lua
@@ -0,0 +1,11 @@
+return {
+ name = "response-phase",
+ fields = {
+ { config = {
+ type = "record",
+ fields = {
+ },
+ }
+ }
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/rewriter/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/rewriter/handler.lua
new file mode 100644
index 00000000..79899247
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/rewriter/handler.lua
@@ -0,0 +1,12 @@
+-- a plugin fixture to test running of the rewrite phase handler.
+
+local Rewriter = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+function Rewriter:rewrite(conf)
+ ngx.req.set_header("rewriter", conf.value)
+end
+
+return Rewriter
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/rewriter/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/rewriter/schema.lua
new file mode 100644
index 00000000..3d2b540d
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/rewriter/schema.lua
@@ -0,0 +1,14 @@
+return {
+ name = "rewriter",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { value = { type = "string" } },
+ { extra = { type = "string", default = "extra" } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/secret-response/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/secret-response/handler.lua
new file mode 100644
index 00000000..a5f205c2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/secret-response/handler.lua
@@ -0,0 +1,21 @@
+local kong_meta = require "kong.meta"
+local decode = require "cjson".decode
+
+
+local SecretResponse = {
+ PRIORITY = 529,
+ VERSION = kong_meta.version,
+}
+
+
+function SecretResponse:access()
+ local reference = kong.request.get_query_arg("reference")
+ local resp, err = kong.vault.get(reference)
+ if not resp then
+ return kong.response.exit(400, { message = err })
+ end
+ return kong.response.exit(200, decode(resp))
+end
+
+
+return SecretResponse
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/secret-response/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/secret-response/schema.lua
new file mode 100644
index 00000000..cbd2483f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/secret-response/schema.lua
@@ -0,0 +1,11 @@
+return {
+ name = "secret-response",
+ fields = {
+ { config = {
+ type = "record",
+ fields = {
+ },
+ }
+ }
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/short-circuit/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/short-circuit/handler.lua
new file mode 100644
index 00000000..7163e36c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/short-circuit/handler.lua
@@ -0,0 +1,40 @@
+local cjson = require "cjson"
+
+
+local kong = kong
+local tostring = tostring
+local init_worker_called = false
+
+
+local ShortCircuitHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000000,
+}
+
+
+function ShortCircuitHandler:init_worker()
+ init_worker_called = true
+end
+
+
+function ShortCircuitHandler:access(conf)
+ return kong.response.exit(conf.status, {
+ status = conf.status,
+ message = conf.message,
+ }, {
+ ["Kong-Init-Worker-Called"] = tostring(init_worker_called),
+ })
+end
+
+
+function ShortCircuitHandler:preread(conf)
+ local message = cjson.encode({
+ status = conf.status,
+ message = conf.message,
+ init_worker_called = init_worker_called,
+ })
+ return kong.response.exit(conf.status, message)
+end
+
+
+return ShortCircuitHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/short-circuit/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/short-circuit/schema.lua
new file mode 100644
index 00000000..3318d288
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/short-circuit/schema.lua
@@ -0,0 +1,20 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ name = "short-circuit",
+ fields = {
+ {
+ protocols = typedefs.protocols { default = { "http", "https", "tcp", "tls" } },
+ },
+ {
+ config = {
+ type = "record",
+ fields = {
+ { status = { type = "integer", default = 503 } },
+ { message = { type = "string", default = "short-circuited" } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/api.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/api.lua
new file mode 100644
index 00000000..1139b5c9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/api.lua
@@ -0,0 +1,25 @@
+return {
+ ["/slow-resource"] = {
+ GET = function(self)
+ local delay = self.params.delay or 1
+
+ if self.params.prime then
+ ngx.timer.at(0, function()
+ local _, err = kong.db.connector:query("SELECT pg_sleep(" .. delay .. ")")
+ if err then
+ ngx.log(ngx.ERR, err)
+ end
+ end)
+
+ return kong.response.exit(204)
+ end
+
+ local _, err = kong.db.connector:query("SELECT pg_sleep(" .. delay .. ")")
+ if err then
+ return kong.response.exit(500, { error = err })
+ end
+
+ return kong.response.exit(204)
+ end,
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/handler.lua
new file mode 100644
index 00000000..71936012
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/handler.lua
@@ -0,0 +1,7 @@
+local SlowQueryHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+
+return SlowQueryHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/schema.lua
new file mode 100644
index 00000000..b83c8320
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/slow-query/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "slow-query",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/api.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/api.lua
new file mode 100644
index 00000000..645322b4
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/api.lua
@@ -0,0 +1,19 @@
+local cjson_decode = require("cjson").decode
+
+
+return {
+ _stream = function(data)
+ local json = cjson_decode(data)
+ local action = json.action or "echo"
+
+ if action == "echo" then
+ return json.payload, json.err
+
+ elseif action == "rep" then
+ return string.rep("1", json.rep or 0)
+
+ elseif action == "throw" then
+ error(json.err or "error!")
+ end
+ end,
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/handler.lua
new file mode 100644
index 00000000..27125790
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/handler.lua
@@ -0,0 +1,5 @@
+
+return {
+ PRIORITY = 1000,
+ VERSION = "1.0",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/schema.lua
new file mode 100644
index 00000000..e2d31432
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/stream-api-echo/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "stream-api-echo",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/tcp-trace-exporter/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/tcp-trace-exporter/handler.lua
new file mode 100644
index 00000000..96b087ee
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/tcp-trace-exporter/handler.lua
@@ -0,0 +1,135 @@
+local cjson = require "cjson"
+local str = require "resty.string"
+local http = require "resty.http"
+
+local ngx = ngx
+local kong = kong
+local table = table
+local insert = table.insert
+local to_hex = str.to_hex
+
+local _M = {
+ PRIORITY = 1001,
+ VERSION = "1.0",
+}
+
+local tracer_name = "tcp-trace-exporter"
+
+function _M:rewrite(config)
+ if not config.custom_spans then
+ return
+ end
+
+ local tracer = kong.tracing(tracer_name)
+
+ local span = tracer.start_span("rewrite", {
+ parent = kong.tracing.active_span(),
+ })
+ tracer.set_active_span(span)
+
+ -- tracing DNS!
+ local httpc = http.new()
+ -- Single-shot requests use the `request_uri` interface.
+ local res, err = httpc:request_uri("https://konghq.com", {
+ method = "GET",
+ })
+
+ if not res then
+ ngx.log(ngx.ERR, "request failed: ", err)
+ end
+end
+
+
+function _M:access(config)
+ local tracer = kong.tracing(tracer_name)
+
+ local span
+ if config.custom_spans then
+ span = tracer.start_span("access")
+ tracer.set_active_span(span)
+ end
+
+ kong.db.routes:page()
+
+ if span then
+ span:finish()
+ end
+end
+
+
+function _M:header_filter(config)
+ local tracer = kong.tracing(tracer_name)
+
+ local span
+ if config.custom_spans then
+ span = tracer.start_span("header_filter")
+ tracer.set_active_span(span)
+ end
+
+ if span then
+ span:finish()
+ end
+end
+
+
+local function push_data(premature, data, config)
+ if premature then
+ return
+ end
+
+ local tcpsock = ngx.socket.tcp()
+ tcpsock:settimeouts(10000, 10000, 10000)
+ local ok, err = tcpsock:connect(config.host, config.port)
+ if not ok then
+ kong.log.err("connect err: ".. err)
+ return
+ end
+ local _, err = tcpsock:send(data .. "\n")
+ if err then
+ kong.log.err(err)
+ end
+ tcpsock:close()
+end
+
+function _M:log(config)
+ local tracer = kong.tracing(tracer_name)
+ local span = tracer.active_span()
+
+ if span then
+ kong.log.debug("Exit span name: ", span.name)
+ span:finish()
+ end
+
+ kong.log.debug("Total spans: ", ngx.ctx.KONG_SPANS and #ngx.ctx.KONG_SPANS)
+
+ local spans = {}
+ local process_span = function (span)
+ if span.should_sample == false then
+ return
+ end
+ local s = table.clone(span)
+ s.tracer = nil
+ s.parent = nil
+ s.trace_id = to_hex(s.trace_id)
+ s.parent_id = s.parent_id and to_hex(s.parent_id)
+ s.span_id = to_hex(s.span_id)
+ insert(spans, s)
+ end
+ tracer.process_span(process_span)
+ kong.tracing.process_span(process_span)
+
+ local sort_by_start_time = function(a,b)
+ return a.start_time_ns < b.start_time_ns
+ end
+ table.sort(spans, sort_by_start_time)
+
+ local data = cjson.encode(spans)
+
+ local ok, err = ngx.timer.at(0, push_data, data, config)
+ if not ok then
+ kong.log.err("failed to create timer: ", err)
+ end
+end
+
+
+return _M
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/tcp-trace-exporter/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/tcp-trace-exporter/schema.lua
new file mode 100644
index 00000000..a2cb6450
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/tcp-trace-exporter/schema.lua
@@ -0,0 +1,17 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+return {
+ name = "tcp-trace-exporter",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { host = typedefs.host({ required = true }), },
+ { port = typedefs.port({ required = true }), },
+ { custom_spans = { type = "boolean", default = false }, }
+ }
+ }
+ }
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/daos.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/daos.lua
new file mode 100644
index 00000000..dcbb7b40
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/daos.lua
@@ -0,0 +1,72 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ {
+ name = "transformations",
+ primary_key = { "id" },
+ endpoint_key = "name",
+ fields = {
+ { id = typedefs.uuid },
+ { name = { type = "string" }, },
+ { secret = { type = "string", required = false, auto = true }, },
+ { hash_secret = { type = "boolean", required = true, default = false }, },
+ { meta = { type = "string", required = false, referenceable = true }, },
+ { case = { type = "string", required = false, referenceable = true }, },
+ },
+ transformations = {
+ {
+ input = { "hash_secret" },
+ needs = { "secret" },
+ on_write = function(hash_secret, client_secret)
+ if not hash_secret then
+ return {}
+ end
+ local hash = assert(ngx.md5(client_secret))
+ return {
+ secret = hash,
+ }
+ end,
+ },
+ {
+ input = { "meta" },
+ on_write = function(meta)
+ if not meta or meta == ngx.null then
+ return {}
+ end
+ return {
+ meta = string.reverse(meta),
+ }
+ end,
+ on_read = function(meta)
+ if not meta or meta == ngx.null then
+ return {}
+ end
+ return {
+ meta = string.reverse(meta),
+ }
+ end,
+ },
+ {
+ on_write = function(entity)
+ local case = entity.case
+ if not case or case == ngx.null then
+ return {}
+ end
+ return {
+ case = string.upper(case),
+ }
+ end,
+ on_read = function(entity)
+ local case = entity.case
+ if not case or case == ngx.null then
+ return {}
+ end
+ return {
+ case = string.lower(case),
+ }
+ end,
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/handler.lua
new file mode 100644
index 00000000..bd97e4e8
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/handler.lua
@@ -0,0 +1,4 @@
+return {
+ PRIORITY = 1,
+ VERSION = "1.0",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/migrations/000_base_transformations.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/migrations/000_base_transformations.lua
new file mode 100644
index 00000000..41b9fd2f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/migrations/000_base_transformations.lua
@@ -0,0 +1,14 @@
+return {
+ postgres = {
+ up = [[
+ CREATE TABLE IF NOT EXISTS "transformations" (
+ "id" UUID PRIMARY KEY,
+ "name" TEXT,
+ "secret" TEXT,
+ "hash_secret" BOOLEAN,
+ "meta" TEXT,
+ "case" TEXT
+ );
+ ]],
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/migrations/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/migrations/init.lua
new file mode 100644
index 00000000..e4e71852
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/migrations/init.lua
@@ -0,0 +1,3 @@
+return {
+ "000_base_transformations",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/schema.lua
new file mode 100644
index 00000000..6f308b32
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/transformations/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "transformations",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ }
+ }
+ }
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/daos.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/daos.lua
new file mode 100644
index 00000000..dd2ff1af
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/daos.lua
@@ -0,0 +1,24 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ {
+ name = "unique_foreigns",
+ primary_key = { "id" },
+ admin_api_name = "unique-foreigns",
+ fields = {
+ { id = typedefs.uuid },
+ { name = { type = "string" }, },
+ },
+ },
+ {
+ name = "unique_references",
+ primary_key = { "id" },
+ admin_api_name = "unique-references",
+ fields = {
+ { id = typedefs.uuid },
+ { note = { type = "string" }, },
+ { unique_foreign = { type = "foreign", reference = "unique_foreigns", on_delete = "cascade", unique = true }, },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/handler.lua
new file mode 100644
index 00000000..bd97e4e8
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/handler.lua
@@ -0,0 +1,4 @@
+return {
+ PRIORITY = 1,
+ VERSION = "1.0",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/migrations/000_base_unique_foreign.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/migrations/000_base_unique_foreign.lua
new file mode 100644
index 00000000..f7e4f349
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/migrations/000_base_unique_foreign.lua
@@ -0,0 +1,16 @@
+return {
+ postgres = {
+ up = [[
+ CREATE TABLE IF NOT EXISTS "unique_foreigns" (
+ "id" UUID PRIMARY KEY,
+ "name" TEXT
+ );
+
+ CREATE TABLE IF NOT EXISTS "unique_references" (
+ "id" UUID PRIMARY KEY,
+ "note" TEXT,
+ "unique_foreign_id" UUID UNIQUE REFERENCES "unique_foreigns" ("id") ON DELETE CASCADE
+ );
+ ]],
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/migrations/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/migrations/init.lua
new file mode 100644
index 00000000..5f84bb01
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/migrations/init.lua
@@ -0,0 +1,3 @@
+return {
+ "000_base_unique_foreign",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/schema.lua
new file mode 100644
index 00000000..1a943ac3
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/unique-foreign/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "unique-foreign",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/daos.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/daos.lua
new file mode 100644
index 00000000..49254463
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/daos.lua
@@ -0,0 +1,10 @@
+return {
+ {
+ name = "foos",
+ primary_key = { "color" },
+ fields = {
+ { color = { type = "string" } },
+ { shape = { type = "string" } },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/handler.lua
new file mode 100644
index 00000000..28f5282c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/handler.lua
@@ -0,0 +1,7 @@
+local WithMigrationHandler = {
+ VERSION = "0.1-t",
+ PRIORITY = 1000,
+}
+
+
+return WithMigrationHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/000_base_with_migrations.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/000_base_with_migrations.lua
new file mode 100644
index 00000000..951ed6f3
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/000_base_with_migrations.lua
@@ -0,0 +1,11 @@
+return {
+ postgres = {
+ up = [[
+ CREATE TABLE IF NOT EXISTS "foos" (
+ "color" TEXT PRIMARY KEY
+ );
+
+ INSERT INTO foos (color) values ('red');
+ ]],
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/001_14_to_15.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/001_14_to_15.lua
new file mode 100644
index 00000000..e1a8300c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/001_14_to_15.lua
@@ -0,0 +1,45 @@
+return {
+ postgres = {
+ up = [[
+ DO $$
+ BEGIN
+ ALTER TABLE IF EXISTS ONLY "foos" ADD "shape" TEXT UNIQUE;
+ EXCEPTION WHEN DUPLICATE_COLUMN THEN
+ -- Do nothing, accept existing state
+ END;
+ $$;
+ ]],
+
+ teardown = function(connector, _)
+ -- update shape in all foos
+ for row, err in connector:iterate('SELECT * FROM "foos";') do
+ if err then
+ return nil, err
+ end
+
+ local shape = "triangle"
+ local sql = string.format([[
+ UPDATE "foos" SET "shape" = '%s' WHERE "color" = '%s';
+ ]], shape, row.color)
+ assert(connector:query(sql))
+ end
+
+
+ -- check insertion and update
+ local count = 0
+ for row, err in connector:iterate('SELECT * FROM "foos";') do
+ if err then
+ return nil, err
+ end
+
+ count = count + 1
+ assert(row.color == "red", "Wrong color: " .. tostring(row.color))
+ assert(row.shape == "triangle", "Wrong shape: " .. tostring(row.shape))
+ end
+
+ assert(count == 1, "Expected 1 foo, found " .. tostring(count))
+
+ return true
+ end,
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/init.lua
new file mode 100644
index 00000000..594ea8de
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/migrations/init.lua
@@ -0,0 +1,4 @@
+return {
+ "000_base_with_migrations",
+ "001_14_to_15",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/schema.lua
new file mode 100644
index 00000000..498f6dd7
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/with-migrations/schema.lua
@@ -0,0 +1,12 @@
+return {
+ name = "with-migrations",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/worker-events/handler.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/worker-events/handler.lua
new file mode 100644
index 00000000..115fa97f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/worker-events/handler.lua
@@ -0,0 +1,64 @@
+local semaphore = require "ngx.semaphore"
+local cjson = require "cjson"
+
+
+local ngx = ngx
+local kong = kong
+local table = table
+
+
+local worker_events = {}
+local sema
+
+
+local function load_data()
+ local ok, err = sema:wait(5)
+ if ok then
+ local data = table.remove(worker_events, 1)
+ if data then
+ return data
+ end
+
+ return {
+ error = "worker event data not found"
+ }
+ end
+
+ return {
+ error = err
+ }
+end
+
+
+local WorkerEventsHandler = {
+ PRIORITY = 500,
+}
+
+
+function WorkerEventsHandler.init_worker()
+ sema = semaphore.new()
+ kong.worker_events.register(function(data)
+ worker_events[#worker_events+1] = {
+ operation = data.operation,
+ entity = data.entity,
+ old_entity = data.old_entity,
+ }
+ sema:post()
+ end, "dao:crud")
+end
+
+
+function WorkerEventsHandler:preread()
+ local data = load_data()
+ local json = cjson.encode(data)
+ ngx.print(json)
+ return ngx.exit(200)
+end
+
+
+function WorkerEventsHandler:access()
+ return kong.response.exit(200, load_data())
+end
+
+
+return WorkerEventsHandler
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/worker-events/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/worker-events/schema.lua
new file mode 100644
index 00000000..a0ace2de
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_plugins/kong/plugins/worker-events/schema.lua
@@ -0,0 +1,18 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ name = "worker-events",
+ fields = {
+ {
+ protocols = typedefs.protocols { default = { "http", "https", "tcp", "tls", "grpc", "grpcs" } },
+ },
+ {
+ config = {
+ type = "record",
+ fields = {
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/echo/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/echo/init.lua
new file mode 100644
index 00000000..48826e79
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/echo/init.lua
@@ -0,0 +1,17 @@
+local encode = require "cjson".encode
+
+
+local function get(conf, resource, version)
+ return encode({
+ prefix = conf.prefix,
+ suffix = conf.suffix,
+ resource = resource,
+ version = version,
+ })
+end
+
+
+return {
+ VERSION = "1.0.0",
+ get = get,
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/echo/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/echo/schema.lua
new file mode 100644
index 00000000..1aec07b9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/echo/schema.lua
@@ -0,0 +1,14 @@
+return {
+ name = "echo",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { prefix = { type = "string" } },
+ { suffix = { type = "string" } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mock/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mock/init.lua
new file mode 100644
index 00000000..893e4b3b
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mock/init.lua
@@ -0,0 +1,37 @@
+local env = require "kong.vaults.env"
+local http = require "resty.http"
+
+
+local assert = assert
+local getenv = os.getenv
+
+
+local function init()
+ env.init()
+ assert(getenv("KONG_PROCESS_SECRETS") == nil, "KONG_PROCESS_SECRETS environment variable found")
+ assert(env.get({}, "KONG_PROCESS_SECRETS") == nil, "KONG_PROCESS_SECRETS environment variable found")
+end
+
+
+local function get(conf, resource, version)
+ local client, err = http.new()
+ if not client then
+ return nil, err
+ end
+
+ client:set_timeouts(20000, 20000, 20000)
+ assert(client:request_uri("http://mockbin.org/headers", {
+ headers = {
+ Accept = "application/json",
+ },
+ }))
+
+ return env.get(conf, resource, version)
+end
+
+
+return {
+ VERSION = "1.0.0",
+ init = init,
+ get = get,
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mock/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mock/schema.lua
new file mode 100644
index 00000000..4241ad65
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mock/schema.lua
@@ -0,0 +1,13 @@
+return {
+ name = "mock",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { prefix = { type = "string", match = [[^[%a_][%a%d_]*$]] } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mocksocket/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mocksocket/init.lua
new file mode 100644
index 00000000..119fe23a
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mocksocket/init.lua
@@ -0,0 +1,37 @@
+local env = require "kong.vaults.env"
+local http = require "resty.luasocket.http"
+
+
+local assert = assert
+local getenv = os.getenv
+
+
+local function init()
+ env.init()
+ assert(getenv("KONG_PROCESS_SECRETS") == nil, "KONG_PROCESS_SECRETS environment variable found")
+ assert(env.get({}, "KONG_PROCESS_SECRETS") == nil, "KONG_PROCESS_SECRETS environment variable found")
+end
+
+
+local function get(conf, resource, version)
+ local client, err = http.new()
+ if not client then
+ return nil, err
+ end
+
+ client:set_timeouts(20000, 20000, 20000)
+ assert(client:request_uri("http://mockbin.org/headers", {
+ headers = {
+ Accept = "application/json",
+ },
+ }))
+
+ return env.get(conf, resource, version)
+end
+
+
+return {
+ VERSION = "1.0.0",
+ init = init,
+ get = get,
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mocksocket/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mocksocket/schema.lua
new file mode 100644
index 00000000..90e86d33
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/mocksocket/schema.lua
@@ -0,0 +1,13 @@
+return {
+ name = "mocksocket",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { prefix = { type = "string", match = [[^[%a_][%a%d_]*$]] } },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/random/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/random/init.lua
new file mode 100644
index 00000000..28f1d9ae
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/random/init.lua
@@ -0,0 +1,13 @@
+local utils = require "kong.tools.rand"
+
+local function get(conf, resource, version)
+ -- Return a random string every time
+ kong.log.err("get() called")
+ return utils.random_string()
+end
+
+
+return {
+ VERSION = "1.0.0",
+ get = get,
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/random/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/random/schema.lua
new file mode 100644
index 00000000..c48b47ce
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/random/schema.lua
@@ -0,0 +1,19 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+return {
+ name = "random",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { prefix = { type = "string" } },
+ { suffix = { type = "string" } },
+ { ttl = typedefs.ttl },
+ { neg_ttl = typedefs.ttl },
+ { resurrect_ttl = typedefs.ttl },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/test/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/test/init.lua
new file mode 100644
index 00000000..6ef4627c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/test/init.lua
@@ -0,0 +1,258 @@
+local cjson = require "cjson"
+local http = require "resty.http"
+
+local fmt = string.format
+
+
+local DEFAULTS_CONSUMED
+
+
+---
+-- Fake vault for integration tests.
+local test = {
+ VERSION = "1.0.0",
+ SHM_NAME = "test_vault",
+ PORT = 9876,
+}
+
+
+local function key_for(secret, version)
+ assert(secret ~= nil, "missing secret")
+ version = version or 1
+
+ return fmt("secrets:%s:%s", secret, version)
+end
+
+
+local function get_from_shm(secret, version)
+ local key = key_for(secret, version)
+ local shm = assert(ngx.shared[test.SHM_NAME])
+
+ local raw, err = shm:get(key)
+ assert(err == nil, err)
+
+ if raw then
+ return cjson.decode(raw)
+ end
+end
+
+
+local function delete_from_shm(secret)
+ local key = key_for(secret)
+ local shm = assert(ngx.shared[test.SHM_NAME])
+
+ shm:delete(key)
+end
+
+
+function test.init()
+end
+
+
+function test.pause()
+ local shm = ngx.shared[test.SHM_NAME]
+ shm:set("paused", true)
+ return kong.response.exit(200, { message = "succeed" })
+end
+
+
+function test.is_running()
+ local shm = ngx.shared[test.SHM_NAME]
+ return shm:get("paused") ~= true
+end
+
+
+function test.get(conf, resource, version)
+ if not test.is_running() then
+ return nil, "Vault server paused"
+ end
+
+ local secret = get_from_shm(resource, version)
+
+ kong.log.inspect({
+ conf = conf,
+ resource = resource,
+ version = version,
+ secret = secret,
+ })
+
+ secret = secret or {}
+
+ local latency = conf.latency or secret.latency
+ if latency then
+ ngx.sleep(latency)
+ end
+
+ local raise_error = conf.raise_error or secret.raise_error
+ local return_error = conf.return_error or secret.return_error
+
+ if raise_error then
+ error(raise_error)
+
+ elseif return_error then
+ return nil, return_error
+ end
+
+ local value = secret.value
+ local ttl = secret.ttl
+
+ if value == nil and not DEFAULTS_CONSUMED then
+ -- default values to be used only once, during startup. This is a hacky measure to make the test vault, which
+ -- uses Kong's nginx, work.
+ DEFAULTS_CONSUMED = true
+ value = conf.default_value
+ ttl = conf.default_value_ttl
+ end
+
+ return value, nil, ttl
+end
+
+
+function test.api()
+ if not test.is_running() then
+ return kong.response.exit(503, { message = "Vault server paused" })
+ end
+
+ local shm = assert(ngx.shared[test.SHM_NAME])
+ local secret = assert(ngx.var.secret)
+ local args = assert(kong.request.get_query())
+ local version = tonumber(args.version) or 1
+
+ local method = ngx.req.get_method()
+ if method == "GET" then
+ local value = get_from_shm(secret, version)
+ if value ~= nil then
+ return kong.response.exit(200, value)
+
+ else
+ return kong.response.exit(404, { message = "not found" })
+ end
+
+ elseif method == "DELETE" then
+ delete_from_shm(secret)
+ return kong.response.exit(204)
+
+ elseif method ~= "PUT" then
+ return kong.response.exit(405, { message = "method not allowed" })
+ end
+
+
+ local ttl = tonumber(args.ttl) or nil
+ local raise_error = args.raise_error or nil
+ local return_error = args.return_error or nil
+
+ local value
+ if not args.return_nil then
+ value = kong.request.get_raw_body()
+
+ if not value then
+ return kong.response.exit(400, {
+ message = "secret value expected, but the request body was empty"
+ })
+ end
+ end
+
+ local key = key_for(secret, version)
+ local object = {
+ value = value,
+ ttl = ttl,
+ raise_error = raise_error,
+ return_error = return_error,
+ }
+
+ assert(shm:set(key, cjson.encode(object)))
+
+ return kong.response.exit(201, object)
+end
+
+
+test.client = {}
+
+
+function test.client.put(secret, value, opts)
+ local client = assert(http.new())
+
+ opts = opts or {}
+
+ if value == nil then
+ opts.return_nil = true
+ end
+
+ local uri = fmt("http://127.0.0.1:%d/secret/%s", test.PORT, secret)
+
+ local res, err = client:request_uri(uri, {
+ method = "PUT",
+ body = value,
+ query = opts,
+ })
+
+ assert(err == nil, "failed PUT " .. uri .. ": " .. tostring(err))
+ assert(res.status == 201, "failed PUT " .. uri .. ": " .. res.status)
+
+ return cjson.decode(res.body)
+end
+
+
+function test.client.delete(secret)
+ local client = assert(http.new())
+
+ local uri = fmt("http://127.0.0.1:%d/secret/%s", test.PORT, secret)
+
+ local res, err = client:request_uri(uri, {
+ method = "DELETE",
+ })
+
+ assert(err == nil, "failed DELETE " .. uri .. ": " .. tostring(err))
+ assert(res.status == 204, "failed DELETE " .. uri .. ": " .. res.status)
+end
+
+
+function test.client.get(secret, version)
+ local query = version and { version = version } or nil
+
+ local client = assert(http.new())
+
+ local uri = fmt("http://127.0.0.1:%d/secret/%s", test.PORT, secret)
+
+ local res, err = client:request_uri(uri, { query = query, method = "GET" })
+ assert(err == nil, "failed GET " .. uri .. ": " .. tostring(err))
+
+ return cjson.decode(res.body)
+end
+
+
+function test.client.pause()
+ local client = assert(http.new())
+
+ local uri = fmt("http://127.0.0.1:%d/pause", test.PORT)
+
+ local res, err = client:request_uri(uri, { method = "GET" })
+ assert(err == nil, "failed GET " .. uri .. ": " .. tostring(err))
+
+ return cjson.decode(res.body)
+end
+
+
+test.http_mock = [[
+ lua_shared_dict ]] .. test.SHM_NAME .. [[ 5m;
+
+ server {
+ server_name "test-vault";
+ listen 127.0.0.1:]] .. test.PORT .. [[;
+
+ location ~^/secret/(?.+) {
+ content_by_lua_block {
+ require("kong.vaults.test").api()
+ }
+ }
+
+ location ~^/pause {
+ content_by_lua_block {
+ require("kong.vaults.test").pause()
+ }
+ }
+ }
+]]
+
+
+return test
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/test/schema.lua b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/test/schema.lua
new file mode 100644
index 00000000..019179b2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/custom_vaults/kong/vaults/test/schema.lua
@@ -0,0 +1,20 @@
+local typedefs = require "kong.db.schema.typedefs"
+
+
+return {
+ name = "test",
+ fields = {
+ {
+ config = {
+ type = "record",
+ fields = {
+ { default_value = { type = "string", required = false } },
+ { default_value_ttl = { type = "number", required = false } },
+ { ttl = typedefs.ttl },
+ { neg_ttl = typedefs.ttl },
+ { resurrect_ttl = typedefs.ttl },
+ },
+ },
+ },
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/dc_blueprints.lua b/kong-versions/3.8.0/kong/spec/fixtures/dc_blueprints.lua
new file mode 100644
index 00000000..139bd9c5
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/dc_blueprints.lua
@@ -0,0 +1,212 @@
+local blueprints = require "spec.fixtures.blueprints"
+local assert = require "luassert"
+local cycle_aware_deep_copy = require("kong.tools.table").cycle_aware_deep_copy
+
+
+local dc_blueprints = {}
+
+
+local null = ngx.null
+
+
+local function new_config()
+ return {
+ _format_version = "3.0"
+ }
+end
+
+
+local function remove_nulls(tbl)
+ for k,v in pairs(tbl) do
+ if v == null then
+ tbl[k] = nil
+ elseif type(v) == "table" then
+ tbl[k] = remove_nulls(v)
+ end
+ end
+ return tbl
+end
+
+
+local function wrap_db(db)
+ local dc_as_db = {}
+
+ local config = new_config()
+
+ for name, _ in pairs(db.daos) do
+ dc_as_db[name] = {
+ insert = function(_, tbl)
+ tbl = cycle_aware_deep_copy(tbl)
+ if not config[name] then
+ config[name] = {}
+ end
+ local schema = db.daos[name].schema
+ tbl = schema:process_auto_fields(tbl, "insert")
+ for fname, field in schema:each_field() do
+ if field.type == "foreign" then
+ tbl[fname] = type(tbl[fname]) == "table"
+ and tbl[fname].id
+ or nil
+ end
+ end
+ table.insert(config[name], remove_nulls(tbl))
+ return cycle_aware_deep_copy(tbl)
+ end,
+ update = function(_, id, tbl)
+ if not config[name] then
+ return nil, "not found"
+ end
+ tbl = cycle_aware_deep_copy(tbl)
+ local element
+ for _, e in ipairs(config[name]) do
+ if e.id == id then
+ element = e
+ break
+ end
+ end
+ if not element then
+ return nil, "not found"
+ end
+ for k,v in pairs(tbl) do
+ element[k] = v
+ end
+ return element
+ end,
+ remove = function(_, id)
+ assert(id, "id is required")
+ if type(id) == "table" then
+ id = assert(type(id.id) == "string" and id.id)
+ end
+
+ if not config[name] then
+ return nil, "not found"
+ end
+
+ for idx, entity in ipairs(config[name]) do
+ if entity.id == id then
+ table.remove(config[name], idx)
+ return entity
+ end
+ end
+
+ return nil, "not found"
+ end,
+ }
+ end
+
+ dc_as_db.export = function()
+ return cycle_aware_deep_copy(config)
+ end
+
+ dc_as_db.import = function(input)
+ config = cycle_aware_deep_copy(input)
+ end
+
+ dc_as_db.reset = function()
+ config = new_config()
+ end
+
+ return dc_as_db
+end
+
+
+function dc_blueprints.new(db)
+ local dc_as_db = wrap_db(db)
+
+ local save_dc = new_config()
+
+ local bp = blueprints.new(dc_as_db)
+
+ bp.done = function()
+ local ret = dc_as_db.export()
+ save_dc = ret
+ dc_as_db.reset()
+ return ret
+ end
+
+ bp.reset_back = function()
+ dc_as_db.import(save_dc)
+ end
+
+ return bp
+end
+
+
+function dc_blueprints.admin_api(db, forced_port)
+ -- lazy import to avoid cyclical dependency
+ local helpers = require "spec.helpers"
+
+ db = db or helpers.db
+
+ local dc_as_db = wrap_db(db)
+ local api = {}
+
+ local function update_config()
+ local client = helpers.admin_client(nil, forced_port)
+
+ local res = client:post("/config", {
+ headers = {
+ ["Content-Type"] = "application/json",
+ },
+ body = dc_as_db.export(),
+ })
+
+ assert.response(res).has.status(201)
+ client:close()
+ return assert.response(res).has.jsonbody()
+ end
+
+ for name in pairs(db.daos) do
+ local dao = dc_as_db[name]
+
+ api[name] = {
+ insert = function(_, entity)
+ local res, err = dao:insert(entity)
+
+ if not res then
+ return nil, err
+ end
+
+ update_config()
+
+ return res
+ end,
+
+ update = function(_, id, updates)
+ local res, err = dao:update(id, updates)
+ if not res then
+ return nil, err
+ end
+
+ update_config()
+
+ return res
+ end,
+
+ remove = function(_, id)
+ local res, err = dao:remove(id)
+ if not res then
+ return nil, err
+ end
+
+ update_config()
+
+ return res
+ end,
+
+ truncate = function()
+ local config = dc_as_db.export()
+ config[name] = {}
+
+ dc_as_db.import(config)
+ update_config()
+
+ return true
+ end,
+ }
+ end
+
+ return blueprints.new(api)
+end
+
+return dc_blueprints
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/default_status_listen.conf b/kong-versions/3.8.0/kong/spec/fixtures/default_status_listen.conf
new file mode 100644
index 00000000..43544b7a
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/default_status_listen.conf
@@ -0,0 +1,27 @@
+# 1st digit is 9 for our test instances
+admin_listen = 127.0.0.1:9001
+proxy_listen = 0.0.0.0:9000, 0.0.0.0:9443 ssl
+
+ssl_cert = spec/fixtures/kong_spec.crt
+ssl_cert_key = spec/fixtures/kong_spec.key
+
+admin_ssl_cert = spec/fixtures/kong_spec.crt
+admin_ssl_cert_key = spec/fixtures/kong_spec.key
+
+database = postgres
+pg_host = 127.0.0.1
+pg_port = 5432
+pg_timeout = 10000
+pg_database = kong_tests
+anonymous_reports = off
+
+dns_hostsfile = spec/fixtures/hosts
+resolver_hosts_file = spec/fixtures/hosts
+
+nginx_main_worker_processes = 1
+nginx_main_worker_rlimit_nofile = 4096
+nginx_events_worker_connections = 4096
+nginx_events_multi_accept = off
+
+prefix = servroot
+log_level = debug
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/dump_lmdb_key.lua b/kong-versions/3.8.0/kong/spec/fixtures/dump_lmdb_key.lua
new file mode 100644
index 00000000..e7623f87
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/dump_lmdb_key.lua
@@ -0,0 +1,4 @@
+local lmdb = require("resty.lmdb")
+local key = assert(arg[1])
+
+ngx.print(lmdb.get(key))
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.html b/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.html
new file mode 100644
index 00000000..456e67b5
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.html
@@ -0,0 +1,12 @@
+
+
+
+
+ Custom template
+
+
+ Not the default
+ %s.
+ request_id: %s
+
+
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.json b/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.json
new file mode 100644
index 00000000..e9c4c30c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.json
@@ -0,0 +1,4 @@
+{
+ "custom_template_message":"%s",
+ "request_id":"%s"
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.plain b/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.plain
new file mode 100644
index 00000000..fcf08c89
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.plain
@@ -0,0 +1,2 @@
+custom plain template: %s\n
+request_id: %s\n
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.xml b/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.xml
new file mode 100644
index 00000000..c5039f20
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/error_templates/error_template.xml
@@ -0,0 +1,6 @@
+
+
+ custom template
+ %s
+ %s
+
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/factories/plugins.lua b/kong-versions/3.8.0/kong/spec/fixtures/factories/plugins.lua
new file mode 100644
index 00000000..ef67e940
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/factories/plugins.lua
@@ -0,0 +1,154 @@
+local helpers = require "spec.helpers"
+
+local EntitiesFactory = {}
+
+function EntitiesFactory:setup(strategy)
+ local bp, _ = helpers.get_db_utils(strategy,
+ { "plugins",
+ "routes",
+ "services",
+ "consumers", },
+ { "key-auth", "request-transformer" })
+
+
+ local alice = assert(bp.consumers:insert {
+ custom_id = "alice"
+ })
+
+ local bob = assert(bp.consumers:insert {
+ username = "bob",
+ })
+
+ local eve = assert(bp.consumers:insert{
+ username = "eve"
+ })
+
+ assert(bp.keyauth_credentials:insert {
+ key = "bob",
+ consumer = { id = bob.id },
+ })
+ assert(bp.keyauth_credentials:insert {
+ key = "alice",
+ consumer = { id = alice.id },
+ })
+ assert(bp.keyauth_credentials:insert {
+ key = "eve",
+ consumer = { id = eve.id },
+ })
+
+ local service = assert(bp.services:insert {
+ path = "/anything",
+ })
+
+ local route = assert(bp.routes:insert {
+ service = { id = service.id },
+ hosts = { "route.test" },
+ })
+ assert(bp.key_auth_plugins:insert())
+
+ self.bp = bp
+ self.alice_id = alice.id
+ self.bob_id = bob.id
+ self.eve_id = eve.id
+ self.route_id = route.id
+ self.service_id = service.id
+ return self
+end
+
+local PluginFactory = {}
+function PluginFactory:setup(ef)
+ self.bp = ef.bp
+ self.bob_id = ef.bob_id
+ self.alice_id = ef.alice_id
+ self.eve_id = ef.eve_id
+ self.route_id = ef.route_id
+ self.service_id = ef.service_id
+ return self
+end
+
+function PluginFactory:produce(header_name, plugin_scopes)
+ local plugin_cfg = {
+ name = "request-transformer",
+ config = {
+ add = {
+ headers = { ("%s:true"):format(header_name) }
+ }
+ }
+ }
+ for k, v in pairs(plugin_scopes) do
+ plugin_cfg[k] = v
+ end
+ return assert(self.bp.plugins:insert(plugin_cfg))
+end
+
+function PluginFactory:consumer_route_service()
+ local header_name = "x-consumer-and-service-and-route"
+ self:produce(header_name, {
+ consumer = { id = self.alice_id },
+ service = { id = self.service_id },
+ route = { id = self.route_id },
+ })
+ return header_name
+end
+
+function PluginFactory:consumer_route()
+ local header_name = "x-consumer-and-route"
+ self:produce(header_name, {
+ consumer = { id = self.alice_id },
+ route = { id = self.route_id },
+ })
+ return header_name
+end
+
+function PluginFactory:consumer_service()
+ local header_name = "x-consumer-and-service"
+ self:produce(header_name, {
+ consumer = { id = self.alice_id },
+ service = { id = self.service_id },
+ })
+ return header_name
+end
+
+function PluginFactory:route_service()
+ local header_name = "x-route-and-service"
+ self:produce(header_name, {
+ route = { id = self.route_id },
+ service = { id = self.service_id },
+ })
+ return header_name
+end
+
+function PluginFactory:consumer()
+ local header_name = "x-consumer"
+ self:produce(header_name, {
+ consumer = { id = self.alice_id }
+ })
+ return header_name
+end
+
+function PluginFactory:route()
+ local header_name = "x-route"
+ self:produce(header_name, {
+ route = { id = self.route_id }
+ })
+ return header_name
+end
+
+function PluginFactory:service()
+ local header_name = "x-service"
+ self:produce(header_name, {
+ service = { id = self.service_id }
+ })
+ return header_name
+end
+
+function PluginFactory:global()
+ local header_name = "x-global"
+ self:produce(header_name, {})
+ return header_name
+end
+
+return {
+ PluginFactory = PluginFactory,
+ EntitiesFactory = EntitiesFactory
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/forward-proxy-server.lua b/kong-versions/3.8.0/kong/spec/fixtures/forward-proxy-server.lua
new file mode 100644
index 00000000..2531bc37
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/forward-proxy-server.lua
@@ -0,0 +1,124 @@
+local _M = {}
+
+local split = require("kong.tools.string").split
+
+local header_mt = {
+ __index = function(self, name)
+ name = name:lower():gsub("_", "-")
+ return rawget(self, name)
+ end,
+
+ __newindex = function(self, name, value)
+ name = name:lower():gsub("_", "-")
+ rawset(self, name, value)
+ end,
+}
+
+local function new_headers()
+ return setmetatable({}, header_mt)
+end
+
+-- This is a very naive forward proxy, which accepts a CONNECT over HTTP, and
+-- then starts tunnelling the bytes blind (for end-to-end SSL).
+function _M.connect(opts)
+ local req_sock = ngx.req.socket(true)
+ req_sock:settimeouts(1000, 1000, 1000)
+
+ -- receive request line
+ local req_line = req_sock:receive()
+ ngx.log(ngx.DEBUG, "request line: ", req_line)
+
+ local method, host_port = unpack(split(req_line, " "))
+ if method ~= "CONNECT" then
+ return ngx.exit(400)
+ end
+
+ local upstream_host, upstream_port = unpack(split(host_port, ":"))
+
+ local headers = new_headers()
+
+ -- receive headers
+ repeat
+ local line = req_sock:receive("*l")
+ local name, value = line:match("^([^:]+):%s*(.+)$")
+ if name and value then
+ ngx.log(ngx.DEBUG, "header: ", name, " => ", value)
+ headers[name] = value
+ end
+ until ngx.re.find(line, "^\\s*$", "jo")
+
+
+ local basic_auth = opts and opts.basic_auth
+ if basic_auth then
+ ngx.log(ngx.DEBUG, "checking proxy-authorization...")
+
+ local found = headers["proxy-authorization"]
+ if not found then
+ ngx.log(ngx.NOTICE, "client did not send proxy-authorization header")
+ ngx.print("HTTP/1.1 401 Unauthorized\r\n\r\n")
+ return ngx.exit(ngx.OK)
+ end
+
+ local auth = ngx.re.gsub(found, [[^Basic\s*]], "", "oji")
+
+ if auth ~= basic_auth then
+ ngx.log(ngx.NOTICE, "client sent incorrect proxy-authorization")
+ ngx.print("HTTP/1.1 403 Forbidden\r\n\r\n")
+ return ngx.exit(ngx.OK)
+ end
+
+ ngx.log(ngx.DEBUG, "accepted basic proxy-authorization")
+ end
+
+
+ -- Connect to requested upstream
+ local upstream_sock = ngx.socket.tcp()
+ upstream_sock:settimeouts(1000, 1000, 1000)
+ local ok, err = upstream_sock:connect(upstream_host, upstream_port)
+ if not ok then
+ ngx.log(ngx.ERR, "connect to upstream ", upstream_host, ":", upstream_port,
+ " failed: ", err)
+ return ngx.exit(504)
+ end
+
+ -- Tell the client we are good to go
+ ngx.print("HTTP/1.1 200 OK\r\n\r\n")
+ ngx.flush()
+
+ ngx.log(ngx.DEBUG, "tunneling started")
+
+ -- 10Kb in either direction should be plenty
+ local max_bytes = 10 * 1024
+
+ repeat
+ local req_data = req_sock:receiveany(max_bytes)
+ if req_data then
+ ngx.log(ngx.DEBUG, "client RCV ", #req_data, " bytes")
+
+ local bytes, err = upstream_sock:send(req_data)
+ if bytes then
+ ngx.log(ngx.DEBUG, "upstream SND ", bytes, " bytes")
+ elseif err then
+ ngx.log(ngx.ERR, "upstream SND failed: ", err)
+ end
+ end
+
+ local res_data = upstream_sock:receiveany(max_bytes)
+ if res_data then
+ ngx.log(ngx.DEBUG, "upstream RCV ", #res_data, " bytes")
+
+ local bytes, err = req_sock:send(res_data)
+ if bytes then
+ ngx.log(ngx.DEBUG, "client SND: ", bytes, " bytes")
+ elseif err then
+ ngx.log(ngx.ERR, "client SND failed: ", err)
+ end
+ end
+ until not req_data and not res_data -- request socket should be closed
+
+ upstream_sock:close()
+
+ ngx.log(ngx.DEBUG, "tunneling ended")
+end
+
+return _M
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/go/go-hello.go b/kong-versions/3.8.0/kong/spec/fixtures/go/go-hello.go
new file mode 100644
index 00000000..f55099a1
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/go/go-hello.go
@@ -0,0 +1,79 @@
+/*
+A "hello world" plugin in Go,
+which reads a request header and sets a response header.
+*/
+package main
+
+import (
+ "fmt"
+ "github.com/Kong/go-pdk"
+ "github.com/Kong/go-pdk/server"
+)
+
+type Config struct {
+ Message string
+}
+
+func New() interface{} {
+ return &Config{}
+}
+
+func main() {
+ server.StartServer(New, "0.1", 1)
+}
+
+func (conf Config) Access(kong *pdk.PDK) {
+ host, err := kong.Request.GetHeader("host")
+ if err != nil {
+ kong.Log.Err(err.Error())
+ }
+ message := conf.Message
+ if message == "" {
+ message = "hello"
+ }
+ kong.Response.SetHeader("x-hello-from-go", fmt.Sprintf("Go says %s to %s", message, host))
+ kong.Ctx.SetShared("shared_msg", message)
+}
+
+func (conf Config) Log(kong *pdk.PDK) {
+ access_start, err := kong.Nginx.GetCtxFloat("KONG_ACCESS_START")
+ if err != nil {
+ kong.Log.Err(err.Error())
+ }
+ kong.Log.Debug("access_start: ", access_start)
+
+ header_value, err := kong.Request.GetHeader("X-Loose-Data")
+ if err != nil {
+ kong.Log.Err(err.Error())
+ }
+ kong.Log.Debug("request_header: ", header_value)
+
+ header_value, err = kong.Response.GetHeader("X-Powered-By")
+ if err != nil {
+ kong.Log.Err(err.Error())
+ }
+ kong.Log.Debug("response_header: ", header_value)
+
+ shared_msg, err := kong.Ctx.GetSharedString("shared_msg")
+ if err != nil {
+ kong.Log.Err(err.Error())
+ }
+
+ kong.Log.Debug("shared_msg: ", shared_msg)
+
+ serialized, err := kong.Log.Serialize()
+ if err != nil {
+ kong.Log.Err(err.Error())
+ }
+
+ kong.Log.Debug("serialized:", serialized)
+}
+
+func (conf Config) Response(kong *pdk.PDK) {
+ srvr, err := kong.ServiceResponse.GetHeader("Server")
+ if err != nil {
+ kong.Log.Err(err.Error())
+ }
+
+ kong.Response.SetHeader("x-hello-from-go-at-response", fmt.Sprintf("got from server '%s'", srvr))
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/go/go.mod b/kong-versions/3.8.0/kong/spec/fixtures/go/go.mod
new file mode 100644
index 00000000..def3ac47
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/go/go.mod
@@ -0,0 +1,5 @@
+module go-plugins
+
+go 1.13
+
+require github.com/Kong/go-pdk v0.7.1
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/go/go.sum b/kong-versions/3.8.0/kong/spec/fixtures/go/go.sum
new file mode 100644
index 00000000..382f9ec5
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/go/go.sum
@@ -0,0 +1,84 @@
+cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+github.com/Kong/go-pdk v0.7.1 h1:DWpmvuafH/35xws0VsXPyiGVtQmUuICnok9Hqolgdgg=
+github.com/Kong/go-pdk v0.7.1/go.mod h1:48+yltNveiFYTo6/I1AnmGn3m8goSQbtkfamH1zkwhw=
+github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
+github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
+github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
+github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
+github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
+github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
+github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
+github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
+github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
+github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM=
+github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
+github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=
+github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
+github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
+github.com/ugorji/go v1.2.1 h1:dz+JxTe7GZQdErTo7SREc1jQj/hFP1k7jyIAwODoW+k=
+github.com/ugorji/go v1.2.1/go.mod h1:cSVypSfTLm2o9fKxXvQgn3rMmkPXovcWor6Qn5tbFmI=
+github.com/ugorji/go/codec v1.2.1 h1:/TRfW3XKkvWvmAYyCUaQlhoCDGjcvNR8xVVA/l5p/jQ=
+github.com/ugorji/go/codec v1.2.1/go.mod h1:s/WxCRi46t8rA+fowL40EnmD7ec0XhR7ZypxeBNdzsM=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
+golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
+google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
+google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
+google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
+google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
+google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
+google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
+google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
+google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
+google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
+google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
+google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
+google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
+google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/direct_imports.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/direct_imports.proto
new file mode 100644
index 00000000..1a4bb350
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/direct_imports.proto
@@ -0,0 +1,7 @@
+syntax = "proto3";
+
+import "helloworld.proto";
+
+service Own {
+ rpc Open(hello.HelloRequest) returns (hello.HelloResponse);
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/annotations.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/annotations.proto
new file mode 100644
index 00000000..85c361b4
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/annotations.proto
@@ -0,0 +1,31 @@
+// Copyright (c) 2015, Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.api;
+
+import "google/api/http.proto";
+import "google/protobuf/descriptor.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
+option java_multiple_files = true;
+option java_outer_classname = "AnnotationsProto";
+option java_package = "com.google.api";
+option objc_class_prefix = "GAPI";
+
+extend google.protobuf.MethodOptions {
+ // See `HttpRule`.
+ HttpRule http = 72295728;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/http.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/http.proto
new file mode 100644
index 00000000..285d7a3e
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/http.proto
@@ -0,0 +1,318 @@
+// Copyright 2018 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.api;
+
+option cc_enable_arenas = true;
+option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
+option java_multiple_files = true;
+option java_outer_classname = "HttpProto";
+option java_package = "com.google.api";
+option objc_class_prefix = "GAPI";
+
+
+// Defines the HTTP configuration for an API service. It contains a list of
+// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
+// to one or more HTTP REST API methods.
+message Http {
+ // A list of HTTP configuration rules that apply to individual API methods.
+ //
+ // **NOTE:** All service configuration rules follow "last one wins" order.
+ repeated HttpRule rules = 1;
+
+ // When set to true, URL path parameters will be fully URI-decoded except in
+ // cases of single segment matches in reserved expansion, where "%2F" will be
+ // left encoded.
+ //
+ // The default behavior is to not decode RFC 6570 reserved characters in multi
+ // segment matches.
+ bool fully_decode_reserved_expansion = 2;
+}
+
+// `HttpRule` defines the mapping of an RPC method to one or more HTTP
+// REST API methods. The mapping specifies how different portions of the RPC
+// request message are mapped to URL path, URL query parameters, and
+// HTTP request body. The mapping is typically specified as an
+// `google.api.http` annotation on the RPC method,
+// see "google/api/annotations.proto" for details.
+//
+// The mapping consists of a field specifying the path template and
+// method kind. The path template can refer to fields in the request
+// message, as in the example below which describes a REST GET
+// operation on a resource collection of messages:
+//
+//
+// service Messaging {
+// rpc GetMessage(GetMessageRequest) returns (Message) {
+// option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
+// }
+// }
+// message GetMessageRequest {
+// message SubMessage {
+// string subfield = 1;
+// }
+// string message_id = 1; // mapped to the URL
+// SubMessage sub = 2; // `sub.subfield` is url-mapped
+// }
+// message Message {
+// string text = 1; // content of the resource
+// }
+//
+// The same http annotation can alternatively be expressed inside the
+// `GRPC API Configuration` YAML file.
+//
+// http:
+// rules:
+// - selector: .Messaging.GetMessage
+// get: /v1/messages/{message_id}/{sub.subfield}
+//
+// This definition enables an automatic, bidrectional mapping of HTTP
+// JSON to RPC. Example:
+//
+// HTTP | RPC
+// -----|-----
+// `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))`
+//
+// In general, not only fields but also field paths can be referenced
+// from a path pattern. Fields mapped to the path pattern cannot be
+// repeated and must have a primitive (non-message) type.
+//
+// Any fields in the request message which are not bound by the path
+// pattern automatically become (optional) HTTP query
+// parameters. Assume the following definition of the request message:
+//
+//
+// service Messaging {
+// rpc GetMessage(GetMessageRequest) returns (Message) {
+// option (google.api.http).get = "/v1/messages/{message_id}";
+// }
+// }
+// message GetMessageRequest {
+// message SubMessage {
+// string subfield = 1;
+// }
+// string message_id = 1; // mapped to the URL
+// int64 revision = 2; // becomes a parameter
+// SubMessage sub = 3; // `sub.subfield` becomes a parameter
+// }
+//
+//
+// This enables a HTTP JSON to RPC mapping as below:
+//
+// HTTP | RPC
+// -----|-----
+// `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))`
+//
+// Note that fields which are mapped to HTTP parameters must have a
+// primitive type or a repeated primitive type. Message types are not
+// allowed. In the case of a repeated type, the parameter can be
+// repeated in the URL, as in `...?param=A¶m=B`.
+//
+// For HTTP method kinds which allow a request body, the `body` field
+// specifies the mapping. Consider a REST update method on the
+// message resource collection:
+//
+//
+// service Messaging {
+// rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
+// option (google.api.http) = {
+// put: "/v1/messages/{message_id}"
+// body: "message"
+// };
+// }
+// }
+// message UpdateMessageRequest {
+// string message_id = 1; // mapped to the URL
+// Message message = 2; // mapped to the body
+// }
+//
+//
+// The following HTTP JSON to RPC mapping is enabled, where the
+// representation of the JSON in the request body is determined by
+// protos JSON encoding:
+//
+// HTTP | RPC
+// -----|-----
+// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
+//
+// The special name `*` can be used in the body mapping to define that
+// every field not bound by the path template should be mapped to the
+// request body. This enables the following alternative definition of
+// the update method:
+//
+// service Messaging {
+// rpc UpdateMessage(Message) returns (Message) {
+// option (google.api.http) = {
+// put: "/v1/messages/{message_id}"
+// body: "*"
+// };
+// }
+// }
+// message Message {
+// string message_id = 1;
+// string text = 2;
+// }
+//
+//
+// The following HTTP JSON to RPC mapping is enabled:
+//
+// HTTP | RPC
+// -----|-----
+// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")`
+//
+// Note that when using `*` in the body mapping, it is not possible to
+// have HTTP parameters, as all fields not bound by the path end in
+// the body. This makes this option more rarely used in practice of
+// defining REST APIs. The common usage of `*` is in custom methods
+// which don't use the URL at all for transferring data.
+//
+// It is possible to define multiple HTTP methods for one RPC by using
+// the `additional_bindings` option. Example:
+//
+// service Messaging {
+// rpc GetMessage(GetMessageRequest) returns (Message) {
+// option (google.api.http) = {
+// get: "/v1/messages/{message_id}"
+// additional_bindings {
+// get: "/v1/users/{user_id}/messages/{message_id}"
+// }
+// };
+// }
+// }
+// message GetMessageRequest {
+// string message_id = 1;
+// string user_id = 2;
+// }
+//
+//
+// This enables the following two alternative HTTP JSON to RPC
+// mappings:
+//
+// HTTP | RPC
+// -----|-----
+// `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
+// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")`
+//
+// # Rules for HTTP mapping
+//
+// The rules for mapping HTTP path, query parameters, and body fields
+// to the request message are as follows:
+//
+// 1. The `body` field specifies either `*` or a field path, or is
+// omitted. If omitted, it indicates there is no HTTP request body.
+// 2. Leaf fields (recursive expansion of nested messages in the
+// request) can be classified into three types:
+// (a) Matched in the URL template.
+// (b) Covered by body (if body is `*`, everything except (a) fields;
+// else everything under the body field)
+// (c) All other fields.
+// 3. URL query parameters found in the HTTP request are mapped to (c) fields.
+// 4. Any body sent with an HTTP request can contain only (b) fields.
+//
+// The syntax of the path template is as follows:
+//
+// Template = "/" Segments [ Verb ] ;
+// Segments = Segment { "/" Segment } ;
+// Segment = "*" | "**" | LITERAL | Variable ;
+// Variable = "{" FieldPath [ "=" Segments ] "}" ;
+// FieldPath = IDENT { "." IDENT } ;
+// Verb = ":" LITERAL ;
+//
+// The syntax `*` matches a single path segment. The syntax `**` matches zero
+// or more path segments, which must be the last part of the path except the
+// `Verb`. The syntax `LITERAL` matches literal text in the path.
+//
+// The syntax `Variable` matches part of the URL path as specified by its
+// template. A variable template must not contain other variables. If a variable
+// matches a single path segment, its template may be omitted, e.g. `{var}`
+// is equivalent to `{var=*}`.
+//
+// If a variable contains exactly one path segment, such as `"{var}"` or
+// `"{var=*}"`, when such a variable is expanded into a URL path, all characters
+// except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
+// Discovery Document as `{var}`.
+//
+// If a variable contains one or more path segments, such as `"{var=foo/*}"`
+// or `"{var=**}"`, when such a variable is expanded into a URL path, all
+// characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
+// show up in the Discovery Document as `{+var}`.
+//
+// NOTE: While the single segment variable matches the semantics of
+// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
+// Simple String Expansion, the multi segment variable **does not** match
+// RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
+// does not expand special characters like `?` and `#`, which would lead
+// to invalid URLs.
+//
+// NOTE: the field paths in variables and in the `body` must not refer to
+// repeated fields or map fields.
+message HttpRule {
+ // Selects methods to which this rule applies.
+ //
+ // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
+ string selector = 1;
+
+ // Determines the URL pattern is matched by this rules. This pattern can be
+ // used with any of the {get|put|post|delete|patch} methods. A custom method
+ // can be defined using the 'custom' field.
+ oneof pattern {
+ // Used for listing and getting information about resources.
+ string get = 2;
+
+ // Used for updating a resource.
+ string put = 3;
+
+ // Used for creating a resource.
+ string post = 4;
+
+ // Used for deleting a resource.
+ string delete = 5;
+
+ // Used for updating a resource.
+ string patch = 6;
+
+ // The custom pattern is used for specifying an HTTP method that is not
+ // included in the `pattern` field, such as HEAD, or "*" to leave the
+ // HTTP method unspecified for this rule. The wild-card rule is useful
+ // for services that provide content to Web (HTML) clients.
+ CustomHttpPattern custom = 8;
+ }
+
+ // The name of the request field whose value is mapped to the HTTP body, or
+ // `*` for mapping all fields not captured by the path pattern to the HTTP
+ // body. NOTE: the referred field must not be a repeated field and must be
+ // present at the top-level of request message type.
+ string body = 7;
+
+ // Optional. The name of the response field whose value is mapped to the HTTP
+ // body of response. Other response fields are ignored. When
+ // not set, the response message will be used as HTTP body of response.
+ string response_body = 12;
+
+ // Additional HTTP bindings for the selector. Nested bindings must
+ // not contain an `additional_bindings` field themselves (that is,
+ // the nesting may only be one level deep).
+ repeated HttpRule additional_bindings = 11;
+}
+
+// A custom pattern is used for defining custom HTTP verb.
+message CustomHttpPattern {
+ // The name of this custom HTTP verb.
+ string kind = 1;
+
+ // The path matched by this custom verb.
+ string path = 2;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/httpbody.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/httpbody.proto
new file mode 100644
index 00000000..4428515c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/api/httpbody.proto
@@ -0,0 +1,78 @@
+// Copyright 2018 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.api;
+
+import "google/protobuf/any.proto";
+
+option cc_enable_arenas = true;
+option go_package = "google.golang.org/genproto/googleapis/api/httpbody;httpbody";
+option java_multiple_files = true;
+option java_outer_classname = "HttpBodyProto";
+option java_package = "com.google.api";
+option objc_class_prefix = "GAPI";
+
+// Message that represents an arbitrary HTTP body. It should only be used for
+// payload formats that can't be represented as JSON, such as raw binary or
+// an HTML page.
+//
+//
+// This message can be used both in streaming and non-streaming API methods in
+// the request as well as the response.
+//
+// It can be used as a top-level request field, which is convenient if one
+// wants to extract parameters from either the URL or HTTP template into the
+// request fields and also want access to the raw HTTP body.
+//
+// Example:
+//
+// message GetResourceRequest {
+// // A unique request id.
+// string request_id = 1;
+//
+// // The raw HTTP body is bound to this field.
+// google.api.HttpBody http_body = 2;
+// }
+//
+// service ResourceService {
+// rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
+// rpc UpdateResource(google.api.HttpBody) returns
+// (google.protobuf.Empty);
+// }
+//
+// Example with streaming methods:
+//
+// service CaldavService {
+// rpc GetCalendar(stream google.api.HttpBody)
+// returns (stream google.api.HttpBody);
+// rpc UpdateCalendar(stream google.api.HttpBody)
+// returns (stream google.api.HttpBody);
+// }
+//
+// Use of this type only changes how the request and response bodies are
+// handled, all other features will continue to work unchanged.
+message HttpBody {
+ // The HTTP Content-Type header value specifying the content type of the body.
+ string content_type = 1;
+
+ // The HTTP request/response body as raw binary.
+ bytes data = 2;
+
+ // Application specific response metadata. Must be set in the first response
+ // for streaming APIs.
+ repeated google.protobuf.Any extensions = 3;
+}
\ No newline at end of file
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/any.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/any.proto
new file mode 100644
index 00000000..49329425
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/any.proto
@@ -0,0 +1,154 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+syntax = "proto3";
+
+package google.protobuf;
+
+option csharp_namespace = "Google.Protobuf.WellKnownTypes";
+option go_package = "github.com/golang/protobuf/ptypes/any";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "AnyProto";
+option java_multiple_files = true;
+option objc_class_prefix = "GPB";
+
+// `Any` contains an arbitrary serialized protocol buffer message along with a
+// URL that describes the type of the serialized message.
+//
+// Protobuf library provides support to pack/unpack Any values in the form
+// of utility functions or additional generated methods of the Any type.
+//
+// Example 1: Pack and unpack a message in C++.
+//
+// Foo foo = ...;
+// Any any;
+// any.PackFrom(foo);
+// ...
+// if (any.UnpackTo(&foo)) {
+// ...
+// }
+//
+// Example 2: Pack and unpack a message in Java.
+//
+// Foo foo = ...;
+// Any any = Any.pack(foo);
+// ...
+// if (any.is(Foo.class)) {
+// foo = any.unpack(Foo.class);
+// }
+//
+// Example 3: Pack and unpack a message in Python.
+//
+// foo = Foo(...)
+// any = Any()
+// any.Pack(foo)
+// ...
+// if any.Is(Foo.DESCRIPTOR):
+// any.Unpack(foo)
+// ...
+//
+// Example 4: Pack and unpack a message in Go
+//
+// foo := &pb.Foo{...}
+// any, err := ptypes.MarshalAny(foo)
+// ...
+// foo := &pb.Foo{}
+// if err := ptypes.UnmarshalAny(any, foo); err != nil {
+// ...
+// }
+//
+// The pack methods provided by protobuf library will by default use
+// 'type.googleapis.com/full.type.name' as the type URL and the unpack
+// methods only use the fully qualified type name after the last '/'
+// in the type URL, for example "foo.bar.com/x/y.z" will yield type
+// name "y.z".
+//
+//
+// JSON
+// ====
+// The JSON representation of an `Any` value uses the regular
+// representation of the deserialized, embedded message, with an
+// additional field `@type` which contains the type URL. Example:
+//
+// package google.profile;
+// message Person {
+// string first_name = 1;
+// string last_name = 2;
+// }
+//
+// {
+// "@type": "type.googleapis.com/google.profile.Person",
+// "firstName": ,
+// "lastName":
+// }
+//
+// If the embedded message type is well-known and has a custom JSON
+// representation, that representation will be embedded adding a field
+// `value` which holds the custom JSON in addition to the `@type`
+// field. Example (for message [google.protobuf.Duration][]):
+//
+// {
+// "@type": "type.googleapis.com/google.protobuf.Duration",
+// "value": "1.212s"
+// }
+//
+message Any {
+ // A URL/resource name that uniquely identifies the type of the serialized
+ // protocol buffer message. The last segment of the URL's path must represent
+ // the fully qualified name of the type (as in
+ // `path/google.protobuf.Duration`). The name should be in a canonical form
+ // (e.g., leading "." is not accepted).
+ //
+ // In practice, teams usually precompile into the binary all types that they
+ // expect it to use in the context of Any. However, for URLs which use the
+ // scheme `http`, `https`, or no scheme, one can optionally set up a type
+ // server that maps type URLs to message definitions as follows:
+ //
+ // * If no scheme is provided, `https` is assumed.
+ // * An HTTP GET on the URL must yield a [google.protobuf.Type][]
+ // value in binary format, or produce an error.
+ // * Applications are allowed to cache lookup results based on the
+ // URL, or have them precompiled into a binary to avoid any
+ // lookup. Therefore, binary compatibility needs to be preserved
+ // on changes to types. (Use versioned type names to manage
+ // breaking changes.)
+ //
+ // Note: this functionality is not currently available in the official
+ // protobuf release, and it is not used for type URLs beginning with
+ // type.googleapis.com.
+ //
+ // Schemes other than `http`, `https` (or the empty scheme) might be
+ // used with implementation specific semantics.
+ //
+ string type_url = 1;
+
+ // Must be a valid serialized protocol buffer of the above specified type.
+ bytes value = 2;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/api.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/api.proto
new file mode 100644
index 00000000..f37ee2fa
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/api.proto
@@ -0,0 +1,210 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+syntax = "proto3";
+
+package google.protobuf;
+
+import "google/protobuf/source_context.proto";
+import "google/protobuf/type.proto";
+
+option csharp_namespace = "Google.Protobuf.WellKnownTypes";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "ApiProto";
+option java_multiple_files = true;
+option objc_class_prefix = "GPB";
+option go_package = "google.golang.org/genproto/protobuf/api;api";
+
+// Api is a light-weight descriptor for an API Interface.
+//
+// Interfaces are also described as "protocol buffer services" in some contexts,
+// such as by the "service" keyword in a .proto file, but they are different
+// from API Services, which represent a concrete implementation of an interface
+// as opposed to simply a description of methods and bindings. They are also
+// sometimes simply referred to as "APIs" in other contexts, such as the name of
+// this message itself. See https://cloud.google.com/apis/design/glossary for
+// detailed terminology.
+message Api {
+
+ // The fully qualified name of this interface, including package name
+ // followed by the interface's simple name.
+ string name = 1;
+
+ // The methods of this interface, in unspecified order.
+ repeated Method methods = 2;
+
+ // Any metadata attached to the interface.
+ repeated Option options = 3;
+
+ // A version string for this interface. If specified, must have the form
+ // `major-version.minor-version`, as in `1.10`. If the minor version is
+ // omitted, it defaults to zero. If the entire version field is empty, the
+ // major version is derived from the package name, as outlined below. If the
+ // field is not empty, the version in the package name will be verified to be
+ // consistent with what is provided here.
+ //
+ // The versioning schema uses [semantic
+ // versioning](http://semver.org) where the major version number
+ // indicates a breaking change and the minor version an additive,
+ // non-breaking change. Both version numbers are signals to users
+ // what to expect from different versions, and should be carefully
+ // chosen based on the product plan.
+ //
+ // The major version is also reflected in the package name of the
+ // interface, which must end in `v`, as in
+ // `google.feature.v1`. For major versions 0 and 1, the suffix can
+ // be omitted. Zero major versions must only be used for
+ // experimental, non-GA interfaces.
+ //
+ //
+ string version = 4;
+
+ // Source context for the protocol buffer service represented by this
+ // message.
+ SourceContext source_context = 5;
+
+ // Included interfaces. See [Mixin][].
+ repeated Mixin mixins = 6;
+
+ // The source syntax of the service.
+ Syntax syntax = 7;
+}
+
+// Method represents a method of an API interface.
+message Method {
+
+ // The simple name of this method.
+ string name = 1;
+
+ // A URL of the input message type.
+ string request_type_url = 2;
+
+ // If true, the request is streamed.
+ bool request_streaming = 3;
+
+ // The URL of the output message type.
+ string response_type_url = 4;
+
+ // If true, the response is streamed.
+ bool response_streaming = 5;
+
+ // Any metadata attached to the method.
+ repeated Option options = 6;
+
+ // The source syntax of this method.
+ Syntax syntax = 7;
+}
+
+// Declares an API Interface to be included in this interface. The including
+// interface must redeclare all the methods from the included interface, but
+// documentation and options are inherited as follows:
+//
+// - If after comment and whitespace stripping, the documentation
+// string of the redeclared method is empty, it will be inherited
+// from the original method.
+//
+// - Each annotation belonging to the service config (http,
+// visibility) which is not set in the redeclared method will be
+// inherited.
+//
+// - If an http annotation is inherited, the path pattern will be
+// modified as follows. Any version prefix will be replaced by the
+// version of the including interface plus the [root][] path if
+// specified.
+//
+// Example of a simple mixin:
+//
+// package google.acl.v1;
+// service AccessControl {
+// // Get the underlying ACL object.
+// rpc GetAcl(GetAclRequest) returns (Acl) {
+// option (google.api.http).get = "/v1/{resource=**}:getAcl";
+// }
+// }
+//
+// package google.storage.v2;
+// service Storage {
+// rpc GetAcl(GetAclRequest) returns (Acl);
+//
+// // Get a data record.
+// rpc GetData(GetDataRequest) returns (Data) {
+// option (google.api.http).get = "/v2/{resource=**}";
+// }
+// }
+//
+// Example of a mixin configuration:
+//
+// apis:
+// - name: google.storage.v2.Storage
+// mixins:
+// - name: google.acl.v1.AccessControl
+//
+// The mixin construct implies that all methods in `AccessControl` are
+// also declared with same name and request/response types in
+// `Storage`. A documentation generator or annotation processor will
+// see the effective `Storage.GetAcl` method after inherting
+// documentation and annotations as follows:
+//
+// service Storage {
+// // Get the underlying ACL object.
+// rpc GetAcl(GetAclRequest) returns (Acl) {
+// option (google.api.http).get = "/v2/{resource=**}:getAcl";
+// }
+// ...
+// }
+//
+// Note how the version in the path pattern changed from `v1` to `v2`.
+//
+// If the `root` field in the mixin is specified, it should be a
+// relative path under which inherited HTTP paths are placed. Example:
+//
+// apis:
+// - name: google.storage.v2.Storage
+// mixins:
+// - name: google.acl.v1.AccessControl
+// root: acls
+//
+// This implies the following inherited HTTP annotation:
+//
+// service Storage {
+// // Get the underlying ACL object.
+// rpc GetAcl(GetAclRequest) returns (Acl) {
+// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
+// }
+// ...
+// }
+message Mixin {
+ // The fully qualified name of the interface which is included.
+ string name = 1;
+
+ // If non-empty specifies a path under which inherited HTTP paths
+ // are rooted.
+ string root = 2;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/descriptor.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/descriptor.proto
new file mode 100644
index 00000000..25addc92
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/descriptor.proto
@@ -0,0 +1,883 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+// Author: kenton@google.com (Kenton Varda)
+// Based on original Protocol Buffers design by
+// Sanjay Ghemawat, Jeff Dean, and others.
+//
+// The messages in this file describe the definitions found in .proto files.
+// A valid .proto file can be translated directly to a FileDescriptorProto
+// without any other information (e.g. without reading its imports).
+
+
+syntax = "proto2";
+
+package google.protobuf;
+option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "DescriptorProtos";
+option csharp_namespace = "Google.Protobuf.Reflection";
+option objc_class_prefix = "GPB";
+option cc_enable_arenas = true;
+
+// descriptor.proto must be optimized for speed because reflection-based
+// algorithms don't work during bootstrapping.
+option optimize_for = SPEED;
+
+// The protocol compiler can output a FileDescriptorSet containing the .proto
+// files it parses.
+message FileDescriptorSet {
+ repeated FileDescriptorProto file = 1;
+}
+
+// Describes a complete .proto file.
+message FileDescriptorProto {
+ optional string name = 1; // file name, relative to root of source tree
+ optional string package = 2; // e.g. "foo", "foo.bar", etc.
+
+ // Names of files imported by this file.
+ repeated string dependency = 3;
+ // Indexes of the public imported files in the dependency list above.
+ repeated int32 public_dependency = 10;
+ // Indexes of the weak imported files in the dependency list.
+ // For Google-internal migration only. Do not use.
+ repeated int32 weak_dependency = 11;
+
+ // All top-level definitions in this file.
+ repeated DescriptorProto message_type = 4;
+ repeated EnumDescriptorProto enum_type = 5;
+ repeated ServiceDescriptorProto service = 6;
+ repeated FieldDescriptorProto extension = 7;
+
+ optional FileOptions options = 8;
+
+ // This field contains optional information about the original source code.
+ // You may safely remove this entire field without harming runtime
+ // functionality of the descriptors -- the information is needed only by
+ // development tools.
+ optional SourceCodeInfo source_code_info = 9;
+
+ // The syntax of the proto file.
+ // The supported values are "proto2" and "proto3".
+ optional string syntax = 12;
+}
+
+// Describes a message type.
+message DescriptorProto {
+ optional string name = 1;
+
+ repeated FieldDescriptorProto field = 2;
+ repeated FieldDescriptorProto extension = 6;
+
+ repeated DescriptorProto nested_type = 3;
+ repeated EnumDescriptorProto enum_type = 4;
+
+ message ExtensionRange {
+ optional int32 start = 1;
+ optional int32 end = 2;
+
+ optional ExtensionRangeOptions options = 3;
+ }
+ repeated ExtensionRange extension_range = 5;
+
+ repeated OneofDescriptorProto oneof_decl = 8;
+
+ optional MessageOptions options = 7;
+
+ // Range of reserved tag numbers. Reserved tag numbers may not be used by
+ // fields or extension ranges in the same message. Reserved ranges may
+ // not overlap.
+ message ReservedRange {
+ optional int32 start = 1; // Inclusive.
+ optional int32 end = 2; // Exclusive.
+ }
+ repeated ReservedRange reserved_range = 9;
+ // Reserved field names, which may not be used by fields in the same message.
+ // A given name may only be reserved once.
+ repeated string reserved_name = 10;
+}
+
+message ExtensionRangeOptions {
+ // The parser stores options it doesn't recognize here. See above.
+ repeated UninterpretedOption uninterpreted_option = 999;
+
+ // Clients can define custom options in extensions of this message. See above.
+ extensions 1000 to max;
+}
+
+// Describes a field within a message.
+message FieldDescriptorProto {
+ enum Type {
+ // 0 is reserved for errors.
+ // Order is weird for historical reasons.
+ TYPE_DOUBLE = 1;
+ TYPE_FLOAT = 2;
+ // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
+ // negative values are likely.
+ TYPE_INT64 = 3;
+ TYPE_UINT64 = 4;
+ // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
+ // negative values are likely.
+ TYPE_INT32 = 5;
+ TYPE_FIXED64 = 6;
+ TYPE_FIXED32 = 7;
+ TYPE_BOOL = 8;
+ TYPE_STRING = 9;
+ // Tag-delimited aggregate.
+ // Group type is deprecated and not supported in proto3. However, Proto3
+ // implementations should still be able to parse the group wire format and
+ // treat group fields as unknown fields.
+ TYPE_GROUP = 10;
+ TYPE_MESSAGE = 11; // Length-delimited aggregate.
+
+ // New in version 2.
+ TYPE_BYTES = 12;
+ TYPE_UINT32 = 13;
+ TYPE_ENUM = 14;
+ TYPE_SFIXED32 = 15;
+ TYPE_SFIXED64 = 16;
+ TYPE_SINT32 = 17; // Uses ZigZag encoding.
+ TYPE_SINT64 = 18; // Uses ZigZag encoding.
+ };
+
+ enum Label {
+ // 0 is reserved for errors
+ LABEL_OPTIONAL = 1;
+ LABEL_REQUIRED = 2;
+ LABEL_REPEATED = 3;
+ };
+
+ optional string name = 1;
+ optional int32 number = 3;
+ optional Label label = 4;
+
+ // If type_name is set, this need not be set. If both this and type_name
+ // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
+ optional Type type = 5;
+
+ // For message and enum types, this is the name of the type. If the name
+ // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
+ // rules are used to find the type (i.e. first the nested types within this
+ // message are searched, then within the parent, on up to the root
+ // namespace).
+ optional string type_name = 6;
+
+ // For extensions, this is the name of the type being extended. It is
+ // resolved in the same manner as type_name.
+ optional string extendee = 2;
+
+ // For numeric types, contains the original text representation of the value.
+ // For booleans, "true" or "false".
+ // For strings, contains the default text contents (not escaped in any way).
+ // For bytes, contains the C escaped value. All bytes >= 128 are escaped.
+ // TODO(kenton): Base-64 encode?
+ optional string default_value = 7;
+
+ // If set, gives the index of a oneof in the containing type's oneof_decl
+ // list. This field is a member of that oneof.
+ optional int32 oneof_index = 9;
+
+ // JSON name of this field. The value is set by protocol compiler. If the
+ // user has set a "json_name" option on this field, that option's value
+ // will be used. Otherwise, it's deduced from the field's name by converting
+ // it to camelCase.
+ optional string json_name = 10;
+
+ optional FieldOptions options = 8;
+}
+
+// Describes a oneof.
+message OneofDescriptorProto {
+ optional string name = 1;
+ optional OneofOptions options = 2;
+}
+
+// Describes an enum type.
+message EnumDescriptorProto {
+ optional string name = 1;
+
+ repeated EnumValueDescriptorProto value = 2;
+
+ optional EnumOptions options = 3;
+
+ // Range of reserved numeric values. Reserved values may not be used by
+ // entries in the same enum. Reserved ranges may not overlap.
+ //
+ // Note that this is distinct from DescriptorProto.ReservedRange in that it
+ // is inclusive such that it can appropriately represent the entire int32
+ // domain.
+ message EnumReservedRange {
+ optional int32 start = 1; // Inclusive.
+ optional int32 end = 2; // Inclusive.
+ }
+
+ // Range of reserved numeric values. Reserved numeric values may not be used
+ // by enum values in the same enum declaration. Reserved ranges may not
+ // overlap.
+ repeated EnumReservedRange reserved_range = 4;
+
+ // Reserved enum value names, which may not be reused. A given name may only
+ // be reserved once.
+ repeated string reserved_name = 5;
+}
+
+// Describes a value within an enum.
+message EnumValueDescriptorProto {
+ optional string name = 1;
+ optional int32 number = 2;
+
+ optional EnumValueOptions options = 3;
+}
+
+// Describes a service.
+message ServiceDescriptorProto {
+ optional string name = 1;
+ repeated MethodDescriptorProto method = 2;
+
+ optional ServiceOptions options = 3;
+}
+
+// Describes a method of a service.
+message MethodDescriptorProto {
+ optional string name = 1;
+
+ // Input and output type names. These are resolved in the same way as
+ // FieldDescriptorProto.type_name, but must refer to a message type.
+ optional string input_type = 2;
+ optional string output_type = 3;
+
+ optional MethodOptions options = 4;
+
+ // Identifies if client streams multiple client messages
+ optional bool client_streaming = 5 [default=false];
+ // Identifies if server streams multiple server messages
+ optional bool server_streaming = 6 [default=false];
+}
+
+
+// ===================================================================
+// Options
+
+// Each of the definitions above may have "options" attached. These are
+// just annotations which may cause code to be generated slightly differently
+// or may contain hints for code that manipulates protocol messages.
+//
+// Clients may define custom options as extensions of the *Options messages.
+// These extensions may not yet be known at parsing time, so the parser cannot
+// store the values in them. Instead it stores them in a field in the *Options
+// message called uninterpreted_option. This field must have the same name
+// across all *Options messages. We then use this field to populate the
+// extensions when we build a descriptor, at which point all protos have been
+// parsed and so all extensions are known.
+//
+// Extension numbers for custom options may be chosen as follows:
+// * For options which will only be used within a single application or
+// organization, or for experimental options, use field numbers 50000
+// through 99999. It is up to you to ensure that you do not use the
+// same number for multiple options.
+// * For options which will be published and used publicly by multiple
+// independent entities, e-mail protobuf-global-extension-registry@google.com
+// to reserve extension numbers. Simply provide your project name (e.g.
+// Objective-C plugin) and your project website (if available) -- there's no
+// need to explain how you intend to use them. Usually you only need one
+// extension number. You can declare multiple options with only one extension
+// number by putting them in a sub-message. See the Custom Options section of
+// the docs for examples:
+// https://developers.google.com/protocol-buffers/docs/proto#options
+// If this turns out to be popular, a web service will be set up
+// to automatically assign option numbers.
+
+
+message FileOptions {
+
+ // Sets the Java package where classes generated from this .proto will be
+ // placed. By default, the proto package is used, but this is often
+ // inappropriate because proto packages do not normally start with backwards
+ // domain names.
+ optional string java_package = 1;
+
+
+ // If set, all the classes from the .proto file are wrapped in a single
+ // outer class with the given name. This applies to both Proto1
+ // (equivalent to the old "--one_java_file" option) and Proto2 (where
+ // a .proto always translates to a single class, but you may want to
+ // explicitly choose the class name).
+ optional string java_outer_classname = 8;
+
+ // If set true, then the Java code generator will generate a separate .java
+ // file for each top-level message, enum, and service defined in the .proto
+ // file. Thus, these types will *not* be nested inside the outer class
+ // named by java_outer_classname. However, the outer class will still be
+ // generated to contain the file's getDescriptor() method as well as any
+ // top-level extensions defined in the file.
+ optional bool java_multiple_files = 10 [default=false];
+
+ // This option does nothing.
+ optional bool java_generate_equals_and_hash = 20 [deprecated=true];
+
+ // If set true, then the Java2 code generator will generate code that
+ // throws an exception whenever an attempt is made to assign a non-UTF-8
+ // byte sequence to a string field.
+ // Message reflection will do the same.
+ // However, an extension field still accepts non-UTF-8 byte sequences.
+ // This option has no effect on when used with the lite runtime.
+ optional bool java_string_check_utf8 = 27 [default=false];
+
+
+ // Generated classes can be optimized for speed or code size.
+ enum OptimizeMode {
+ SPEED = 1; // Generate complete code for parsing, serialization,
+ // etc.
+ CODE_SIZE = 2; // Use ReflectionOps to implement these methods.
+ LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime.
+ }
+ optional OptimizeMode optimize_for = 9 [default=SPEED];
+
+ // Sets the Go package where structs generated from this .proto will be
+ // placed. If omitted, the Go package will be derived from the following:
+ // - The basename of the package import path, if provided.
+ // - Otherwise, the package statement in the .proto file, if present.
+ // - Otherwise, the basename of the .proto file, without extension.
+ optional string go_package = 11;
+
+
+
+ // Should generic services be generated in each language? "Generic" services
+ // are not specific to any particular RPC system. They are generated by the
+ // main code generators in each language (without additional plugins).
+ // Generic services were the only kind of service generation supported by
+ // early versions of google.protobuf.
+ //
+ // Generic services are now considered deprecated in favor of using plugins
+ // that generate code specific to your particular RPC system. Therefore,
+ // these default to false. Old code which depends on generic services should
+ // explicitly set them to true.
+ optional bool cc_generic_services = 16 [default=false];
+ optional bool java_generic_services = 17 [default=false];
+ optional bool py_generic_services = 18 [default=false];
+ optional bool php_generic_services = 42 [default=false];
+
+ // Is this file deprecated?
+ // Depending on the target platform, this can emit Deprecated annotations
+ // for everything in the file, or it will be completely ignored; in the very
+ // least, this is a formalization for deprecating files.
+ optional bool deprecated = 23 [default=false];
+
+ // Enables the use of arenas for the proto messages in this file. This applies
+ // only to generated classes for C++.
+ optional bool cc_enable_arenas = 31 [default=false];
+
+
+ // Sets the objective c class prefix which is prepended to all objective c
+ // generated classes from this .proto. There is no default.
+ optional string objc_class_prefix = 36;
+
+ // Namespace for generated classes; defaults to the package.
+ optional string csharp_namespace = 37;
+
+ // By default Swift generators will take the proto package and CamelCase it
+ // replacing '.' with underscore and use that to prefix the types/symbols
+ // defined. When this options is provided, they will use this value instead
+ // to prefix the types/symbols defined.
+ optional string swift_prefix = 39;
+
+ // Sets the php class prefix which is prepended to all php generated classes
+ // from this .proto. Default is empty.
+ optional string php_class_prefix = 40;
+
+ // Use this option to change the namespace of php generated classes. Default
+ // is empty. When this option is empty, the package name will be used for
+ // determining the namespace.
+ optional string php_namespace = 41;
+
+
+ // Use this option to change the namespace of php generated metadata classes.
+ // Default is empty. When this option is empty, the proto file name will be used
+ // for determining the namespace.
+ optional string php_metadata_namespace = 44;
+
+ // Use this option to change the package of ruby generated classes. Default
+ // is empty. When this option is not set, the package name will be used for
+ // determining the ruby package.
+ optional string ruby_package = 45;
+
+ // The parser stores options it doesn't recognize here.
+ // See the documentation for the "Options" section above.
+ repeated UninterpretedOption uninterpreted_option = 999;
+
+ // Clients can define custom options in extensions of this message.
+ // See the documentation for the "Options" section above.
+ extensions 1000 to max;
+
+ reserved 38;
+}
+
+message MessageOptions {
+ // Set true to use the old proto1 MessageSet wire format for extensions.
+ // This is provided for backwards-compatibility with the MessageSet wire
+ // format. You should not use this for any other reason: It's less
+ // efficient, has fewer features, and is more complicated.
+ //
+ // The message must be defined exactly as follows:
+ // message Foo {
+ // option message_set_wire_format = true;
+ // extensions 4 to max;
+ // }
+ // Note that the message cannot have any defined fields; MessageSets only
+ // have extensions.
+ //
+ // All extensions of your type must be singular messages; e.g. they cannot
+ // be int32s, enums, or repeated messages.
+ //
+ // Because this is an option, the above two restrictions are not enforced by
+ // the protocol compiler.
+ optional bool message_set_wire_format = 1 [default=false];
+
+ // Disables the generation of the standard "descriptor()" accessor, which can
+ // conflict with a field of the same name. This is meant to make migration
+ // from proto1 easier; new code should avoid fields named "descriptor".
+ optional bool no_standard_descriptor_accessor = 2 [default=false];
+
+ // Is this message deprecated?
+ // Depending on the target platform, this can emit Deprecated annotations
+ // for the message, or it will be completely ignored; in the very least,
+ // this is a formalization for deprecating messages.
+ optional bool deprecated = 3 [default=false];
+
+ // Whether the message is an automatically generated map entry type for the
+ // maps field.
+ //
+ // For maps fields:
+ // map map_field = 1;
+ // The parsed descriptor looks like:
+ // message MapFieldEntry {
+ // option map_entry = true;
+ // optional KeyType key = 1;
+ // optional ValueType value = 2;
+ // }
+ // repeated MapFieldEntry map_field = 1;
+ //
+ // Implementations may choose not to generate the map_entry=true message, but
+ // use a native map in the target language to hold the keys and values.
+ // The reflection APIs in such implementations still need to work as
+ // if the field is a repeated message field.
+ //
+ // NOTE: Do not set the option in .proto files. Always use the maps syntax
+ // instead. The option should only be implicitly set by the proto compiler
+ // parser.
+ optional bool map_entry = 7;
+
+ reserved 8; // javalite_serializable
+ reserved 9; // javanano_as_lite
+
+ // The parser stores options it doesn't recognize here. See above.
+ repeated UninterpretedOption uninterpreted_option = 999;
+
+ // Clients can define custom options in extensions of this message. See above.
+ extensions 1000 to max;
+}
+
+message FieldOptions {
+ // The ctype option instructs the C++ code generator to use a different
+ // representation of the field than it normally would. See the specific
+ // options below. This option is not yet implemented in the open source
+ // release -- sorry, we'll try to include it in a future version!
+ optional CType ctype = 1 [default = STRING];
+ enum CType {
+ // Default mode.
+ STRING = 0;
+
+ CORD = 1;
+
+ STRING_PIECE = 2;
+ }
+ // The packed option can be enabled for repeated primitive fields to enable
+ // a more efficient representation on the wire. Rather than repeatedly
+ // writing the tag and type for each element, the entire array is encoded as
+ // a single length-delimited blob. In proto3, only explicit setting it to
+ // false will avoid using packed encoding.
+ optional bool packed = 2;
+
+ // The jstype option determines the JavaScript type used for values of the
+ // field. The option is permitted only for 64 bit integral and fixed types
+ // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
+ // is represented as JavaScript string, which avoids loss of precision that
+ // can happen when a large value is converted to a floating point JavaScript.
+ // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
+ // use the JavaScript "number" type. The behavior of the default option
+ // JS_NORMAL is implementation dependent.
+ //
+ // This option is an enum to permit additional types to be added, e.g.
+ // goog.math.Integer.
+ optional JSType jstype = 6 [default = JS_NORMAL];
+ enum JSType {
+ // Use the default type.
+ JS_NORMAL = 0;
+
+ // Use JavaScript strings.
+ JS_STRING = 1;
+
+ // Use JavaScript numbers.
+ JS_NUMBER = 2;
+ }
+
+ // Should this field be parsed lazily? Lazy applies only to message-type
+ // fields. It means that when the outer message is initially parsed, the
+ // inner message's contents will not be parsed but instead stored in encoded
+ // form. The inner message will actually be parsed when it is first accessed.
+ //
+ // This is only a hint. Implementations are free to choose whether to use
+ // eager or lazy parsing regardless of the value of this option. However,
+ // setting this option true suggests that the protocol author believes that
+ // using lazy parsing on this field is worth the additional bookkeeping
+ // overhead typically needed to implement it.
+ //
+ // This option does not affect the public interface of any generated code;
+ // all method signatures remain the same. Furthermore, thread-safety of the
+ // interface is not affected by this option; const methods remain safe to
+ // call from multiple threads concurrently, while non-const methods continue
+ // to require exclusive access.
+ //
+ //
+ // Note that implementations may choose not to check required fields within
+ // a lazy sub-message. That is, calling IsInitialized() on the outer message
+ // may return true even if the inner message has missing required fields.
+ // This is necessary because otherwise the inner message would have to be
+ // parsed in order to perform the check, defeating the purpose of lazy
+ // parsing. An implementation which chooses not to check required fields
+ // must be consistent about it. That is, for any particular sub-message, the
+ // implementation must either *always* check its required fields, or *never*
+ // check its required fields, regardless of whether or not the message has
+ // been parsed.
+ optional bool lazy = 5 [default=false];
+
+ // Is this field deprecated?
+ // Depending on the target platform, this can emit Deprecated annotations
+ // for accessors, or it will be completely ignored; in the very least, this
+ // is a formalization for deprecating fields.
+ optional bool deprecated = 3 [default=false];
+
+ // For Google-internal migration only. Do not use.
+ optional bool weak = 10 [default=false];
+
+
+ // The parser stores options it doesn't recognize here. See above.
+ repeated UninterpretedOption uninterpreted_option = 999;
+
+ // Clients can define custom options in extensions of this message. See above.
+ extensions 1000 to max;
+
+ reserved 4; // removed jtype
+}
+
+message OneofOptions {
+ // The parser stores options it doesn't recognize here. See above.
+ repeated UninterpretedOption uninterpreted_option = 999;
+
+ // Clients can define custom options in extensions of this message. See above.
+ extensions 1000 to max;
+}
+
+message EnumOptions {
+
+ // Set this option to true to allow mapping different tag names to the same
+ // value.
+ optional bool allow_alias = 2;
+
+ // Is this enum deprecated?
+ // Depending on the target platform, this can emit Deprecated annotations
+ // for the enum, or it will be completely ignored; in the very least, this
+ // is a formalization for deprecating enums.
+ optional bool deprecated = 3 [default=false];
+
+ reserved 5; // javanano_as_lite
+
+ // The parser stores options it doesn't recognize here. See above.
+ repeated UninterpretedOption uninterpreted_option = 999;
+
+ // Clients can define custom options in extensions of this message. See above.
+ extensions 1000 to max;
+}
+
+message EnumValueOptions {
+ // Is this enum value deprecated?
+ // Depending on the target platform, this can emit Deprecated annotations
+ // for the enum value, or it will be completely ignored; in the very least,
+ // this is a formalization for deprecating enum values.
+ optional bool deprecated = 1 [default=false];
+
+ // The parser stores options it doesn't recognize here. See above.
+ repeated UninterpretedOption uninterpreted_option = 999;
+
+ // Clients can define custom options in extensions of this message. See above.
+ extensions 1000 to max;
+}
+
+message ServiceOptions {
+
+ // Note: Field numbers 1 through 32 are reserved for Google's internal RPC
+ // framework. We apologize for hoarding these numbers to ourselves, but
+ // we were already using them long before we decided to release Protocol
+ // Buffers.
+
+ // Is this service deprecated?
+ // Depending on the target platform, this can emit Deprecated annotations
+ // for the service, or it will be completely ignored; in the very least,
+ // this is a formalization for deprecating services.
+ optional bool deprecated = 33 [default=false];
+
+ // The parser stores options it doesn't recognize here. See above.
+ repeated UninterpretedOption uninterpreted_option = 999;
+
+ // Clients can define custom options in extensions of this message. See above.
+ extensions 1000 to max;
+}
+
+message MethodOptions {
+
+ // Note: Field numbers 1 through 32 are reserved for Google's internal RPC
+ // framework. We apologize for hoarding these numbers to ourselves, but
+ // we were already using them long before we decided to release Protocol
+ // Buffers.
+
+ // Is this method deprecated?
+ // Depending on the target platform, this can emit Deprecated annotations
+ // for the method, or it will be completely ignored; in the very least,
+ // this is a formalization for deprecating methods.
+ optional bool deprecated = 33 [default=false];
+
+ // Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
+ // or neither? HTTP based RPC implementation may choose GET verb for safe
+ // methods, and PUT verb for idempotent methods instead of the default POST.
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0;
+ NO_SIDE_EFFECTS = 1; // implies idempotent
+ IDEMPOTENT = 2; // idempotent, but may have side effects
+ }
+ optional IdempotencyLevel idempotency_level =
+ 34 [default=IDEMPOTENCY_UNKNOWN];
+
+ // The parser stores options it doesn't recognize here. See above.
+ repeated UninterpretedOption uninterpreted_option = 999;
+
+ // Clients can define custom options in extensions of this message. See above.
+ extensions 1000 to max;
+}
+
+
+// A message representing a option the parser does not recognize. This only
+// appears in options protos created by the compiler::Parser class.
+// DescriptorPool resolves these when building Descriptor objects. Therefore,
+// options protos in descriptor objects (e.g. returned by Descriptor::options(),
+// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
+// in them.
+message UninterpretedOption {
+ // The name of the uninterpreted option. Each string represents a segment in
+ // a dot-separated name. is_extension is true iff a segment represents an
+ // extension (denoted with parentheses in options specs in .proto files).
+ // E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
+ // "foo.(bar.baz).qux".
+ message NamePart {
+ required string name_part = 1;
+ required bool is_extension = 2;
+ }
+ repeated NamePart name = 2;
+
+ // The value of the uninterpreted option, in whatever type the tokenizer
+ // identified it as during parsing. Exactly one of these should be set.
+ optional string identifier_value = 3;
+ optional uint64 positive_int_value = 4;
+ optional int64 negative_int_value = 5;
+ optional double double_value = 6;
+ optional bytes string_value = 7;
+ optional string aggregate_value = 8;
+}
+
+// ===================================================================
+// Optional source code info
+
+// Encapsulates information about the original source file from which a
+// FileDescriptorProto was generated.
+message SourceCodeInfo {
+ // A Location identifies a piece of source code in a .proto file which
+ // corresponds to a particular definition. This information is intended
+ // to be useful to IDEs, code indexers, documentation generators, and similar
+ // tools.
+ //
+ // For example, say we have a file like:
+ // message Foo {
+ // optional string foo = 1;
+ // }
+ // Let's look at just the field definition:
+ // optional string foo = 1;
+ // ^ ^^ ^^ ^ ^^^
+ // a bc de f ghi
+ // We have the following locations:
+ // span path represents
+ // [a,i) [ 4, 0, 2, 0 ] The whole field definition.
+ // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
+ // [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
+ // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
+ // [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
+ //
+ // Notes:
+ // - A location may refer to a repeated field itself (i.e. not to any
+ // particular index within it). This is used whenever a set of elements are
+ // logically enclosed in a single code segment. For example, an entire
+ // extend block (possibly containing multiple extension definitions) will
+ // have an outer location whose path refers to the "extensions" repeated
+ // field without an index.
+ // - Multiple locations may have the same path. This happens when a single
+ // logical declaration is spread out across multiple places. The most
+ // obvious example is the "extend" block again -- there may be multiple
+ // extend blocks in the same scope, each of which will have the same path.
+ // - A location's span is not always a subset of its parent's span. For
+ // example, the "extendee" of an extension declaration appears at the
+ // beginning of the "extend" block and is shared by all extensions within
+ // the block.
+ // - Just because a location's span is a subset of some other location's span
+ // does not mean that it is a descendent. For example, a "group" defines
+ // both a type and a field in a single declaration. Thus, the locations
+ // corresponding to the type and field and their components will overlap.
+ // - Code which tries to interpret locations should probably be designed to
+ // ignore those that it doesn't understand, as more types of locations could
+ // be recorded in the future.
+ repeated Location location = 1;
+ message Location {
+ // Identifies which part of the FileDescriptorProto was defined at this
+ // location.
+ //
+ // Each element is a field number or an index. They form a path from
+ // the root FileDescriptorProto to the place where the definition. For
+ // example, this path:
+ // [ 4, 3, 2, 7, 1 ]
+ // refers to:
+ // file.message_type(3) // 4, 3
+ // .field(7) // 2, 7
+ // .name() // 1
+ // This is because FileDescriptorProto.message_type has field number 4:
+ // repeated DescriptorProto message_type = 4;
+ // and DescriptorProto.field has field number 2:
+ // repeated FieldDescriptorProto field = 2;
+ // and FieldDescriptorProto.name has field number 1:
+ // optional string name = 1;
+ //
+ // Thus, the above path gives the location of a field name. If we removed
+ // the last element:
+ // [ 4, 3, 2, 7 ]
+ // this path refers to the whole field declaration (from the beginning
+ // of the label to the terminating semicolon).
+ repeated int32 path = 1 [packed=true];
+
+ // Always has exactly three or four elements: start line, start column,
+ // end line (optional, otherwise assumed same as start line), end column.
+ // These are packed into a single field for efficiency. Note that line
+ // and column numbers are zero-based -- typically you will want to add
+ // 1 to each before displaying to a user.
+ repeated int32 span = 2 [packed=true];
+
+ // If this SourceCodeInfo represents a complete declaration, these are any
+ // comments appearing before and after the declaration which appear to be
+ // attached to the declaration.
+ //
+ // A series of line comments appearing on consecutive lines, with no other
+ // tokens appearing on those lines, will be treated as a single comment.
+ //
+ // leading_detached_comments will keep paragraphs of comments that appear
+ // before (but not connected to) the current element. Each paragraph,
+ // separated by empty lines, will be one comment element in the repeated
+ // field.
+ //
+ // Only the comment content is provided; comment markers (e.g. //) are
+ // stripped out. For block comments, leading whitespace and an asterisk
+ // will be stripped from the beginning of each line other than the first.
+ // Newlines are included in the output.
+ //
+ // Examples:
+ //
+ // optional int32 foo = 1; // Comment attached to foo.
+ // // Comment attached to bar.
+ // optional int32 bar = 2;
+ //
+ // optional string baz = 3;
+ // // Comment attached to baz.
+ // // Another line attached to baz.
+ //
+ // // Comment attached to qux.
+ // //
+ // // Another line attached to qux.
+ // optional double qux = 4;
+ //
+ // // Detached comment for corge. This is not leading or trailing comments
+ // // to qux or corge because there are blank lines separating it from
+ // // both.
+ //
+ // // Detached comment for corge paragraph 2.
+ //
+ // optional string corge = 5;
+ // /* Block comment attached
+ // * to corge. Leading asterisks
+ // * will be removed. */
+ // /* Block comment attached to
+ // * grault. */
+ // optional int32 grault = 6;
+ //
+ // // ignored detached comments.
+ optional string leading_comments = 3;
+ optional string trailing_comments = 4;
+ repeated string leading_detached_comments = 6;
+ }
+}
+
+// Describes the relationship between generated code and its original source
+// file. A GeneratedCodeInfo message is associated with only one generated
+// source file, but may contain references to different source .proto files.
+message GeneratedCodeInfo {
+ // An Annotation connects some span of text in generated code to an element
+ // of its generating .proto file.
+ repeated Annotation annotation = 1;
+ message Annotation {
+ // Identifies the element in the original source .proto file. This field
+ // is formatted the same as SourceCodeInfo.Location.path.
+ repeated int32 path = 1 [packed=true];
+
+ // Identifies the filesystem path to the original source .proto.
+ optional string source_file = 2;
+
+ // Identifies the starting offset in bytes in the generated code
+ // that relates to the identified object.
+ optional int32 begin = 3;
+
+ // Identifies the ending offset in bytes in the generated code that
+ // relates to the identified offset. The end offset should be one past
+ // the last relevant byte (so the length of the text = end - begin).
+ optional int32 end = 4;
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/duration.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/duration.proto
new file mode 100644
index 00000000..975fce41
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/duration.proto
@@ -0,0 +1,117 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+syntax = "proto3";
+
+package google.protobuf;
+
+option csharp_namespace = "Google.Protobuf.WellKnownTypes";
+option cc_enable_arenas = true;
+option go_package = "github.com/golang/protobuf/ptypes/duration";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "DurationProto";
+option java_multiple_files = true;
+option objc_class_prefix = "GPB";
+
+// A Duration represents a signed, fixed-length span of time represented
+// as a count of seconds and fractions of seconds at nanosecond
+// resolution. It is independent of any calendar and concepts like "day"
+// or "month". It is related to Timestamp in that the difference between
+// two Timestamp values is a Duration and it can be added or subtracted
+// from a Timestamp. Range is approximately +-10,000 years.
+//
+// # Examples
+//
+// Example 1: Compute Duration from two Timestamps in pseudo code.
+//
+// Timestamp start = ...;
+// Timestamp end = ...;
+// Duration duration = ...;
+//
+// duration.seconds = end.seconds - start.seconds;
+// duration.nanos = end.nanos - start.nanos;
+//
+// if (duration.seconds < 0 && duration.nanos > 0) {
+// duration.seconds += 1;
+// duration.nanos -= 1000000000;
+// } else if (durations.seconds > 0 && duration.nanos < 0) {
+// duration.seconds -= 1;
+// duration.nanos += 1000000000;
+// }
+//
+// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
+//
+// Timestamp start = ...;
+// Duration duration = ...;
+// Timestamp end = ...;
+//
+// end.seconds = start.seconds + duration.seconds;
+// end.nanos = start.nanos + duration.nanos;
+//
+// if (end.nanos < 0) {
+// end.seconds -= 1;
+// end.nanos += 1000000000;
+// } else if (end.nanos >= 1000000000) {
+// end.seconds += 1;
+// end.nanos -= 1000000000;
+// }
+//
+// Example 3: Compute Duration from datetime.timedelta in Python.
+//
+// td = datetime.timedelta(days=3, minutes=10)
+// duration = Duration()
+// duration.FromTimedelta(td)
+//
+// # JSON Mapping
+//
+// In JSON format, the Duration type is encoded as a string rather than an
+// object, where the string ends in the suffix "s" (indicating seconds) and
+// is preceded by the number of seconds, with nanoseconds expressed as
+// fractional seconds. For example, 3 seconds with 0 nanoseconds should be
+// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
+// be expressed in JSON format as "3.000000001s", and 3 seconds and 1
+// microsecond should be expressed in JSON format as "3.000001s".
+//
+//
+message Duration {
+
+ // Signed seconds of the span of time. Must be from -315,576,000,000
+ // to +315,576,000,000 inclusive. Note: these bounds are computed from:
+ // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
+ int64 seconds = 1;
+
+ // Signed fractions of a second at nanosecond resolution of the span
+ // of time. Durations less than one second are represented with a 0
+ // `seconds` field and a positive or negative `nanos` field. For durations
+ // of one second or more, a non-zero value for the `nanos` field must be
+ // of the same sign as the `seconds` field. Must be from -999,999,999
+ // to +999,999,999 inclusive.
+ int32 nanos = 2;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/empty.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/empty.proto
new file mode 100644
index 00000000..03cacd23
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/empty.proto
@@ -0,0 +1,52 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+syntax = "proto3";
+
+package google.protobuf;
+
+option csharp_namespace = "Google.Protobuf.WellKnownTypes";
+option go_package = "github.com/golang/protobuf/ptypes/empty";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "EmptyProto";
+option java_multiple_files = true;
+option objc_class_prefix = "GPB";
+option cc_enable_arenas = true;
+
+// A generic empty message that you can re-use to avoid defining duplicated
+// empty messages in your APIs. A typical example is to use it as the request
+// or the response type of an API method. For instance:
+//
+// service Foo {
+// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
+// }
+//
+// The JSON representation for `Empty` is empty JSON object `{}`.
+message Empty {}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/field_mask.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/field_mask.proto
new file mode 100644
index 00000000..76e09f39
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/field_mask.proto
@@ -0,0 +1,252 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+syntax = "proto3";
+
+package google.protobuf;
+
+option csharp_namespace = "Google.Protobuf.WellKnownTypes";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "FieldMaskProto";
+option java_multiple_files = true;
+option objc_class_prefix = "GPB";
+option go_package = "google.golang.org/genproto/protobuf/field_mask;field_mask";
+
+// `FieldMask` represents a set of symbolic field paths, for example:
+//
+// paths: "f.a"
+// paths: "f.b.d"
+//
+// Here `f` represents a field in some root message, `a` and `b`
+// fields in the message found in `f`, and `d` a field found in the
+// message in `f.b`.
+//
+// Field masks are used to specify a subset of fields that should be
+// returned by a get operation or modified by an update operation.
+// Field masks also have a custom JSON encoding (see below).
+//
+// # Field Masks in Projections
+//
+// When used in the context of a projection, a response message or
+// sub-message is filtered by the API to only contain those fields as
+// specified in the mask. For example, if the mask in the previous
+// example is applied to a response message as follows:
+//
+// f {
+// a : 22
+// b {
+// d : 1
+// x : 2
+// }
+// y : 13
+// }
+// z: 8
+//
+// The result will not contain specific values for fields x,y and z
+// (their value will be set to the default, and omitted in proto text
+// output):
+//
+//
+// f {
+// a : 22
+// b {
+// d : 1
+// }
+// }
+//
+// A repeated field is not allowed except at the last position of a
+// paths string.
+//
+// If a FieldMask object is not present in a get operation, the
+// operation applies to all fields (as if a FieldMask of all fields
+// had been specified).
+//
+// Note that a field mask does not necessarily apply to the
+// top-level response message. In case of a REST get operation, the
+// field mask applies directly to the response, but in case of a REST
+// list operation, the mask instead applies to each individual message
+// in the returned resource list. In case of a REST custom method,
+// other definitions may be used. Where the mask applies will be
+// clearly documented together with its declaration in the API. In
+// any case, the effect on the returned resource/resources is required
+// behavior for APIs.
+//
+// # Field Masks in Update Operations
+//
+// A field mask in update operations specifies which fields of the
+// targeted resource are going to be updated. The API is required
+// to only change the values of the fields as specified in the mask
+// and leave the others untouched. If a resource is passed in to
+// describe the updated values, the API ignores the values of all
+// fields not covered by the mask.
+//
+// If a repeated field is specified for an update operation, the existing
+// repeated values in the target resource will be overwritten by the new values.
+// Note that a repeated field is only allowed in the last position of a `paths`
+// string.
+//
+// If a sub-message is specified in the last position of the field mask for an
+// update operation, then the existing sub-message in the target resource is
+// overwritten. Given the target message:
+//
+// f {
+// b {
+// d : 1
+// x : 2
+// }
+// c : 1
+// }
+//
+// And an update message:
+//
+// f {
+// b {
+// d : 10
+// }
+// }
+//
+// then if the field mask is:
+//
+// paths: "f.b"
+//
+// then the result will be:
+//
+// f {
+// b {
+// d : 10
+// }
+// c : 1
+// }
+//
+// However, if the update mask was:
+//
+// paths: "f.b.d"
+//
+// then the result would be:
+//
+// f {
+// b {
+// d : 10
+// x : 2
+// }
+// c : 1
+// }
+//
+// In order to reset a field's value to the default, the field must
+// be in the mask and set to the default value in the provided resource.
+// Hence, in order to reset all fields of a resource, provide a default
+// instance of the resource and set all fields in the mask, or do
+// not provide a mask as described below.
+//
+// If a field mask is not present on update, the operation applies to
+// all fields (as if a field mask of all fields has been specified).
+// Note that in the presence of schema evolution, this may mean that
+// fields the client does not know and has therefore not filled into
+// the request will be reset to their default. If this is unwanted
+// behavior, a specific service may require a client to always specify
+// a field mask, producing an error if not.
+//
+// As with get operations, the location of the resource which
+// describes the updated values in the request message depends on the
+// operation kind. In any case, the effect of the field mask is
+// required to be honored by the API.
+//
+// ## Considerations for HTTP REST
+//
+// The HTTP kind of an update operation which uses a field mask must
+// be set to PATCH instead of PUT in order to satisfy HTTP semantics
+// (PUT must only be used for full updates).
+//
+// # JSON Encoding of Field Masks
+//
+// In JSON, a field mask is encoded as a single string where paths are
+// separated by a comma. Fields name in each path are converted
+// to/from lower-camel naming conventions.
+//
+// As an example, consider the following message declarations:
+//
+// message Profile {
+// User user = 1;
+// Photo photo = 2;
+// }
+// message User {
+// string display_name = 1;
+// string address = 2;
+// }
+//
+// In proto a field mask for `Profile` may look as such:
+//
+// mask {
+// paths: "user.display_name"
+// paths: "photo"
+// }
+//
+// In JSON, the same mask is represented as below:
+//
+// {
+// mask: "user.displayName,photo"
+// }
+//
+// # Field Masks and Oneof Fields
+//
+// Field masks treat fields in oneofs just as regular fields. Consider the
+// following message:
+//
+// message SampleMessage {
+// oneof test_oneof {
+// string name = 4;
+// SubMessage sub_message = 9;
+// }
+// }
+//
+// The field mask can be:
+//
+// mask {
+// paths: "name"
+// }
+//
+// Or:
+//
+// mask {
+// paths: "sub_message"
+// }
+//
+// Note that oneof type names ("test_oneof" in this case) cannot be used in
+// paths.
+//
+// ## Field Mask Verification
+//
+// The implementation of any API method which has a FieldMask type field in the
+// request should verify the included field paths, and return an
+// `INVALID_ARGUMENT` error if any path is duplicated or unmappable.
+message FieldMask {
+ // The set of field mask paths.
+ repeated string paths = 1;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/source_context.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/source_context.proto
new file mode 100644
index 00000000..f3b2c966
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/source_context.proto
@@ -0,0 +1,48 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+syntax = "proto3";
+
+package google.protobuf;
+
+option csharp_namespace = "Google.Protobuf.WellKnownTypes";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "SourceContextProto";
+option java_multiple_files = true;
+option objc_class_prefix = "GPB";
+option go_package = "google.golang.org/genproto/protobuf/source_context;source_context";
+
+// `SourceContext` represents information about the source of a
+// protobuf element, like the file in which it is defined.
+message SourceContext {
+ // The path-qualified name of the .proto file that contained the associated
+ // protobuf element. For example: `"google/protobuf/source_context.proto"`.
+ string file_name = 1;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/struct.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/struct.proto
new file mode 100644
index 00000000..7d7808e7
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/struct.proto
@@ -0,0 +1,96 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+syntax = "proto3";
+
+package google.protobuf;
+
+option csharp_namespace = "Google.Protobuf.WellKnownTypes";
+option cc_enable_arenas = true;
+option go_package = "github.com/golang/protobuf/ptypes/struct;structpb";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "StructProto";
+option java_multiple_files = true;
+option objc_class_prefix = "GPB";
+
+
+// `Struct` represents a structured data value, consisting of fields
+// which map to dynamically typed values. In some languages, `Struct`
+// might be supported by a native representation. For example, in
+// scripting languages like JS a struct is represented as an
+// object. The details of that representation are described together
+// with the proto support for the language.
+//
+// The JSON representation for `Struct` is JSON object.
+message Struct {
+ // Unordered map of dynamically typed values.
+ map fields = 1;
+}
+
+// `Value` represents a dynamically typed value which can be either
+// null, a number, a string, a boolean, a recursive struct value, or a
+// list of values. A producer of value is expected to set one of that
+// variants, absence of any variant indicates an error.
+//
+// The JSON representation for `Value` is JSON value.
+message Value {
+ // The kind of value.
+ oneof kind {
+ // Represents a null value.
+ NullValue null_value = 1;
+ // Represents a double value.
+ double number_value = 2;
+ // Represents a string value.
+ string string_value = 3;
+ // Represents a boolean value.
+ bool bool_value = 4;
+ // Represents a structured value.
+ Struct struct_value = 5;
+ // Represents a repeated `Value`.
+ ListValue list_value = 6;
+ }
+}
+
+// `NullValue` is a singleton enumeration to represent the null value for the
+// `Value` type union.
+//
+// The JSON representation for `NullValue` is JSON `null`.
+enum NullValue {
+ // Null value.
+ NULL_VALUE = 0;
+}
+
+// `ListValue` is a wrapper around a repeated field of values.
+//
+// The JSON representation for `ListValue` is JSON array.
+message ListValue {
+ // Repeated field of dynamically typed values.
+ repeated Value values = 1;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/timestamp.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/timestamp.proto
new file mode 100644
index 00000000..eafb3fa0
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/timestamp.proto
@@ -0,0 +1,135 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+syntax = "proto3";
+
+package google.protobuf;
+
+option csharp_namespace = "Google.Protobuf.WellKnownTypes";
+option cc_enable_arenas = true;
+option go_package = "github.com/golang/protobuf/ptypes/timestamp";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "TimestampProto";
+option java_multiple_files = true;
+option objc_class_prefix = "GPB";
+
+// A Timestamp represents a point in time independent of any time zone
+// or calendar, represented as seconds and fractions of seconds at
+// nanosecond resolution in UTC Epoch time. It is encoded using the
+// Proleptic Gregorian Calendar which extends the Gregorian calendar
+// backwards to year one. It is encoded assuming all minutes are 60
+// seconds long, i.e. leap seconds are "smeared" so that no leap second
+// table is needed for interpretation. Range is from
+// 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
+// By restricting to that range, we ensure that we can convert to
+// and from RFC 3339 date strings.
+// See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
+//
+// # Examples
+//
+// Example 1: Compute Timestamp from POSIX `time()`.
+//
+// Timestamp timestamp;
+// timestamp.set_seconds(time(NULL));
+// timestamp.set_nanos(0);
+//
+// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
+//
+// struct timeval tv;
+// gettimeofday(&tv, NULL);
+//
+// Timestamp timestamp;
+// timestamp.set_seconds(tv.tv_sec);
+// timestamp.set_nanos(tv.tv_usec * 1000);
+//
+// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
+//
+// FILETIME ft;
+// GetSystemTimeAsFileTime(&ft);
+// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
+//
+// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
+// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
+// Timestamp timestamp;
+// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
+// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
+//
+// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
+//
+// long millis = System.currentTimeMillis();
+//
+// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
+// .setNanos((int) ((millis % 1000) * 1000000)).build();
+//
+//
+// Example 5: Compute Timestamp from current time in Python.
+//
+// timestamp = Timestamp()
+// timestamp.GetCurrentTime()
+//
+// # JSON Mapping
+//
+// In JSON format, the Timestamp type is encoded as a string in the
+// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
+// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
+// where {year} is always expressed using four digits while {month}, {day},
+// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
+// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
+// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
+// is required. A proto3 JSON serializer should always use UTC (as indicated by
+// "Z") when printing the Timestamp type and a proto3 JSON parser should be
+// able to accept both UTC and other timezones (as indicated by an offset).
+//
+// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
+// 01:30 UTC on January 15, 2017.
+//
+// In JavaScript, one can convert a Date object to this format using the
+// standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString]
+// method. In Python, a standard `datetime.datetime` object can be converted
+// to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
+// with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
+// can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
+// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
+// ) to obtain a formatter capable of generating timestamps in this format.
+//
+//
+message Timestamp {
+
+ // Represents seconds of UTC time since Unix epoch
+ // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
+ // 9999-12-31T23:59:59Z inclusive.
+ int64 seconds = 1;
+
+ // Non-negative fractions of a second at nanosecond resolution. Negative
+ // second values with fractions must still have non-negative nanos values
+ // that count forward in time. Must be from 0 to 999,999,999
+ // inclusive.
+ int32 nanos = 2;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/type.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/type.proto
new file mode 100644
index 00000000..624c15ee
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/type.proto
@@ -0,0 +1,187 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+syntax = "proto3";
+
+package google.protobuf;
+
+import "google/protobuf/any.proto";
+import "google/protobuf/source_context.proto";
+
+option csharp_namespace = "Google.Protobuf.WellKnownTypes";
+option cc_enable_arenas = true;
+option java_package = "com.google.protobuf";
+option java_outer_classname = "TypeProto";
+option java_multiple_files = true;
+option objc_class_prefix = "GPB";
+option go_package = "google.golang.org/genproto/protobuf/ptype;ptype";
+
+// A protocol buffer message type.
+message Type {
+ // The fully qualified message name.
+ string name = 1;
+ // The list of fields.
+ repeated Field fields = 2;
+ // The list of types appearing in `oneof` definitions in this type.
+ repeated string oneofs = 3;
+ // The protocol buffer options.
+ repeated Option options = 4;
+ // The source context.
+ SourceContext source_context = 5;
+ // The source syntax.
+ Syntax syntax = 6;
+}
+
+// A single field of a message type.
+message Field {
+ // Basic field types.
+ enum Kind {
+ // Field type unknown.
+ TYPE_UNKNOWN = 0;
+ // Field type double.
+ TYPE_DOUBLE = 1;
+ // Field type float.
+ TYPE_FLOAT = 2;
+ // Field type int64.
+ TYPE_INT64 = 3;
+ // Field type uint64.
+ TYPE_UINT64 = 4;
+ // Field type int32.
+ TYPE_INT32 = 5;
+ // Field type fixed64.
+ TYPE_FIXED64 = 6;
+ // Field type fixed32.
+ TYPE_FIXED32 = 7;
+ // Field type bool.
+ TYPE_BOOL = 8;
+ // Field type string.
+ TYPE_STRING = 9;
+ // Field type group. Proto2 syntax only, and deprecated.
+ TYPE_GROUP = 10;
+ // Field type message.
+ TYPE_MESSAGE = 11;
+ // Field type bytes.
+ TYPE_BYTES = 12;
+ // Field type uint32.
+ TYPE_UINT32 = 13;
+ // Field type enum.
+ TYPE_ENUM = 14;
+ // Field type sfixed32.
+ TYPE_SFIXED32 = 15;
+ // Field type sfixed64.
+ TYPE_SFIXED64 = 16;
+ // Field type sint32.
+ TYPE_SINT32 = 17;
+ // Field type sint64.
+ TYPE_SINT64 = 18;
+ };
+
+ // Whether a field is optional, required, or repeated.
+ enum Cardinality {
+ // For fields with unknown cardinality.
+ CARDINALITY_UNKNOWN = 0;
+ // For optional fields.
+ CARDINALITY_OPTIONAL = 1;
+ // For required fields. Proto2 syntax only.
+ CARDINALITY_REQUIRED = 2;
+ // For repeated fields.
+ CARDINALITY_REPEATED = 3;
+ };
+
+ // The field type.
+ Kind kind = 1;
+ // The field cardinality.
+ Cardinality cardinality = 2;
+ // The field number.
+ int32 number = 3;
+ // The field name.
+ string name = 4;
+ // The field type URL, without the scheme, for message or enumeration
+ // types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
+ string type_url = 6;
+ // The index of the field type in `Type.oneofs`, for message or enumeration
+ // types. The first type has index 1; zero means the type is not in the list.
+ int32 oneof_index = 7;
+ // Whether to use alternative packed wire representation.
+ bool packed = 8;
+ // The protocol buffer options.
+ repeated Option options = 9;
+ // The field JSON name.
+ string json_name = 10;
+ // The string value of the default value of this field. Proto2 syntax only.
+ string default_value = 11;
+}
+
+// Enum type definition.
+message Enum {
+ // Enum type name.
+ string name = 1;
+ // Enum value definitions.
+ repeated EnumValue enumvalue = 2;
+ // Protocol buffer options.
+ repeated Option options = 3;
+ // The source context.
+ SourceContext source_context = 4;
+ // The source syntax.
+ Syntax syntax = 5;
+}
+
+// Enum value definition.
+message EnumValue {
+ // Enum value name.
+ string name = 1;
+ // Enum value number.
+ int32 number = 2;
+ // Protocol buffer options.
+ repeated Option options = 3;
+}
+
+// A protocol buffer option, which can be attached to a message, field,
+// enumeration, etc.
+message Option {
+ // The option's name. For protobuf built-in options (options defined in
+ // descriptor.proto), this is the short name. For example, `"map_entry"`.
+ // For custom options, it should be the fully-qualified name. For example,
+ // `"google.api.http"`.
+ string name = 1;
+ // The option's value packed in an Any message. If the value is a primitive,
+ // the corresponding wrapper type defined in google/protobuf/wrappers.proto
+ // should be used. If the value is an enum, it should be stored as an int32
+ // value using the google.protobuf.Int32Value type.
+ Any value = 2;
+}
+
+// The syntax in which a protocol buffer element is defined.
+enum Syntax {
+ // Syntax `proto2`.
+ SYNTAX_PROTO2 = 0;
+ // Syntax `proto3`.
+ SYNTAX_PROTO3 = 1;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/wrappers.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/wrappers.proto
new file mode 100644
index 00000000..01947639
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/google/protobuf/wrappers.proto
@@ -0,0 +1,118 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc. All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+// * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+// * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+// Wrappers for primitive (non-message) types. These types are useful
+// for embedding primitives in the `google.protobuf.Any` type and for places
+// where we need to distinguish between the absence of a primitive
+// typed field and its default value.
+
+syntax = "proto3";
+
+package google.protobuf;
+
+option csharp_namespace = "Google.Protobuf.WellKnownTypes";
+option cc_enable_arenas = true;
+option go_package = "github.com/golang/protobuf/ptypes/wrappers";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "WrappersProto";
+option java_multiple_files = true;
+option objc_class_prefix = "GPB";
+
+// Wrapper message for `double`.
+//
+// The JSON representation for `DoubleValue` is JSON number.
+message DoubleValue {
+ // The double value.
+ double value = 1;
+}
+
+// Wrapper message for `float`.
+//
+// The JSON representation for `FloatValue` is JSON number.
+message FloatValue {
+ // The float value.
+ float value = 1;
+}
+
+// Wrapper message for `int64`.
+//
+// The JSON representation for `Int64Value` is JSON string.
+message Int64Value {
+ // The int64 value.
+ int64 value = 1;
+}
+
+// Wrapper message for `uint64`.
+//
+// The JSON representation for `UInt64Value` is JSON string.
+message UInt64Value {
+ // The uint64 value.
+ uint64 value = 1;
+}
+
+// Wrapper message for `int32`.
+//
+// The JSON representation for `Int32Value` is JSON number.
+message Int32Value {
+ // The int32 value.
+ int32 value = 1;
+}
+
+// Wrapper message for `uint32`.
+//
+// The JSON representation for `UInt32Value` is JSON number.
+message UInt32Value {
+ // The uint32 value.
+ uint32 value = 1;
+}
+
+// Wrapper message for `bool`.
+//
+// The JSON representation for `BoolValue` is JSON `true` and `false`.
+message BoolValue {
+ // The bool value.
+ bool value = 1;
+}
+
+// Wrapper message for `string`.
+//
+// The JSON representation for `StringValue` is JSON string.
+message StringValue {
+ // The string value.
+ string value = 1;
+}
+
+// Wrapper message for `bytes`.
+//
+// The JSON representation for `BytesValue` is JSON string.
+message BytesValue {
+ // The bytes value.
+ bytes value = 1;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/hello.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/hello.proto
new file mode 100644
index 00000000..273a41fb
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/hello.proto
@@ -0,0 +1,21 @@
+// from https://github.com/moul/pb
+// based on https://grpc.io/docs/guides/concepts.html
+
+syntax = "proto2";
+
+package hello;
+
+service HelloService {
+ rpc SayHello(HelloRequest) returns (HelloResponse);
+ rpc LotsOfReplies(HelloRequest) returns (stream HelloResponse);
+ rpc LotsOfGreetings(stream HelloRequest) returns (HelloResponse);
+ rpc BidiHello(stream HelloRequest) returns (stream HelloResponse);
+}
+
+message HelloRequest {
+ optional string greeting = 1;
+}
+
+message HelloResponse {
+ required string reply = 1;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/helloworld.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/helloworld.proto
new file mode 100644
index 00000000..6967b3ab
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/helloworld.proto
@@ -0,0 +1,35 @@
+syntax = "proto3";
+
+package hello;
+
+service HelloService {
+ rpc SayHello(HelloRequest) returns (HelloResponse) {
+ option (google.api.http) = {
+ // https://github.com/googleapis/googleapis/blob/master/google/api/http.proto
+ // HTTP | gRPC
+ // -----|-----
+ // `GET /v1/messages/123456` | `HelloRequest(greeting: "123456")`
+ get: "/v1/messages/{greeting}"
+ additional_bindings {
+ get: "/v1/messages/legacy/{greeting=**}"
+ }
+ post: "/v1/messages/"
+ body: "*"
+ }
+ };
+
+ // define a gRPC method that's not implemented in grpcbin
+ rpc UnknownMethod(HelloRequest) returns (HelloResponse) {
+ option (google.api.http) = {
+ get: "/v1/unknown/{greeting}"
+ }
+ };
+}
+
+message HelloRequest {
+ required string greeting = 1;
+}
+
+message HelloResponse {
+ required string reply = 1;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/second_level_imports.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/second_level_imports.proto
new file mode 100644
index 00000000..7edce70a
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/second_level_imports.proto
@@ -0,0 +1,7 @@
+syntax = "proto3";
+
+import "direct_imports.proto";
+
+service Added {
+ rpc Final(hello.HelloRequest) returns (hello.HelloResponse);
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/go.mod b/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/go.mod
new file mode 100644
index 00000000..24a43b89
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/go.mod
@@ -0,0 +1,10 @@
+module target
+
+go 1.15
+
+require (
+ github.com/golang/protobuf v1.5.2
+ google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea
+ google.golang.org/grpc v1.39.0
+ google.golang.org/protobuf v1.27.1
+)
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/go.sum b/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/go.sum
new file mode 100644
index 00000000..780a5f3f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/go.sum
@@ -0,0 +1,170 @@
+cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+cloud.google.com/go v0.34.0 h1:eOI3/cP2VTU6uZLDYAoic+eyzzB9YyGmJ7eIjl8rOPg=
+cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
+github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+github.com/antihax/optional v1.0.0 h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg=
+github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
+github.com/census-instrumentation/opencensus-proto v0.2.1 h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=
+github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
+github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=
+github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
+github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
+github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403 h1:cqQfy1jclcSy/FwLjemeg3SR1yaINm74aQyupQ0Bl8M=
+github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
+github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed h1:OZmjad4L3H8ncOIR8rnb5MREYqG8ixi5+WbeUsquF0c=
+github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
+github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
+github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
+github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0 h1:dulLQAYQFYtG5MTplgNGHWuV2D+OBD+Z8lmDBmbLg+s=
+github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
+github.com/envoyproxy/protoc-gen-validate v0.1.0 h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=
+github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
+github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
+github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
+github.com/golang/mock v1.1.1 h1:G5FRp8JnTd7RQH5kemVNlMeyXQAztQ3mOWV95KxsXH8=
+github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
+github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
+github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
+github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
+github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
+github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
+github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
+github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
+github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
+github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
+github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
+github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
+github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y=
+github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo=
+github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM=
+github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/rogpeppe/fastuuid v1.2.0 h1:Ppwyp6VYCF1nvBTXL3trRso7mXMlRrw9ooo375wvi2s=
+github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
+github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
+github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
+github.com/yuin/goldmark v1.3.5 h1:dPmz1Snjq0kmkz159iL7S6WzdahUTHnHB5M56WFVifs=
+github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
+go.opentelemetry.io/proto/otlp v0.7.0 h1:rwOQPCuKAKmwGKq2aVNnYIibI6wnV7EvzgfTCzcdGg8=
+go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/exp v0.0.0-20190121172915-509febef88a4 h1:c2HOrn5iMezYjSlGPncknSEr/8x5LELb/ilJbXi9DEA=
+golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
+golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug=
+golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
+golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
+golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
+golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
+golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 h1:4nGaVu0QrbjT/AK2PRLuQfQuh6DJve+pELhqTdAj3x0=
+golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
+golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw=
+golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
+golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210510120138-977fb7262007 h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE=
+golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.5 h1:i6eZZ+zk0SOf0xgBpEpPD18qWcJda6q1sxt3S0kzyUQ=
+golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.1.4 h1:cVngSRcfgyZCzys3KYOpCFa+4dqX/Oub9tAq00ttGVs=
+golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
+google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
+google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
+google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
+google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
+google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
+google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea h1:8ZyCcgugUqamxp/vZSEJw9CMy7VZlSWYJLLJPi/dSDA=
+google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k=
+google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
+google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
+google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
+google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
+google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
+google.golang.org/grpc v1.39.0 h1:Klz8I9kdtkIN6EpHHUOMLCYhTn/2WAe5a0s1hcBkdTI=
+google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE=
+google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
+google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
+google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
+google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
+google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
+google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
+google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
+google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
+google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
+google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.3 h1:fvjTMHxHEw/mxHbtzPi3JCcKXQRAnQTBRo6YCJSVHKI=
+gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc h1:/hemPrYIhOhy8zYrNj+069zDB68us2sMGsfkFJO0iZs=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/grpc-target.go b/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/grpc-target.go
new file mode 100644
index 00000000..de15cd4c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/grpc-target.go
@@ -0,0 +1,67 @@
+package main
+
+import (
+ "context"
+ "fmt"
+ "log"
+ "net"
+ "time"
+
+ pb "target/targetservice"
+
+ "google.golang.org/grpc"
+ "google.golang.org/protobuf/types/known/timestamppb"
+)
+
+const (
+ port = ":15010"
+)
+
+type server struct {
+ pb.UnimplementedBouncerServer
+}
+
+func (s *server) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloResponse, error) {
+ return &pb.HelloResponse{
+ Reply: fmt.Sprintf("hello %s", in.GetGreeting()),
+ BooleanTest: in.GetBooleanTest(),
+ }, nil
+}
+
+func (s *server) BounceIt(ctx context.Context, in *pb.BallIn) (*pb.BallOut, error) {
+ w := in.GetWhen().AsTime()
+ now := in.GetNow().AsTime()
+ ago := now.Sub(w)
+
+ reply := fmt.Sprintf("hello %s", in.GetMessage())
+ time_message := fmt.Sprintf("%s was %v ago", w.Format(time.RFC3339), ago.Truncate(time.Second))
+
+ return &pb.BallOut{
+ Reply: reply,
+ TimeMessage: time_message,
+ Now: timestamppb.New(now),
+ }, nil
+}
+
+func (s *server) GrowTail(ctx context.Context, in *pb.Body) (*pb.Body, error) {
+ in.Tail.Count += 1
+
+ return in, nil
+}
+
+func (s *server) Echo(ctx context.Context, in *pb.EchoMsg) (*pb.EchoMsg, error) {
+ return in, nil
+}
+
+func main() {
+ lis, err := net.Listen("tcp", port)
+ if err != nil {
+ log.Fatalf("failed to listen: %v", err)
+ }
+ s := grpc.NewServer()
+ pb.RegisterBouncerServer(s, &server{})
+ log.Printf("server listening at %v", lis.Addr())
+ if err := s.Serve(lis); err != nil {
+ log.Fatalf("failed to serve: %v", err)
+ }
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/targetservice/targetservice.pb.go b/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/targetservice/targetservice.pb.go
new file mode 100644
index 00000000..43cf2421
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/targetservice/targetservice.pb.go
@@ -0,0 +1,685 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// protoc-gen-go v1.28.1
+// protoc v3.21.7
+// source: targetservice.proto
+
+package targetservice
+
+import (
+ timestamp "github.com/golang/protobuf/ptypes/timestamp"
+ _ "google.golang.org/genproto/googleapis/api/annotations"
+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+ reflect "reflect"
+ sync "sync"
+)
+
+const (
+ // Verify that this generated code is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+ // Verify that runtime/protoimpl is sufficiently up-to-date.
+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type HelloRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Greeting string `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
+ BooleanTest bool `protobuf:"varint,2,opt,name=boolean_test,json=booleanTest,proto3" json:"boolean_test,omitempty"`
+}
+
+func (x *HelloRequest) Reset() {
+ *x = HelloRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_targetservice_proto_msgTypes[0]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *HelloRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*HelloRequest) ProtoMessage() {}
+
+func (x *HelloRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_targetservice_proto_msgTypes[0]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
+func (*HelloRequest) Descriptor() ([]byte, []int) {
+ return file_targetservice_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *HelloRequest) GetGreeting() string {
+ if x != nil {
+ return x.Greeting
+ }
+ return ""
+}
+
+func (x *HelloRequest) GetBooleanTest() bool {
+ if x != nil {
+ return x.BooleanTest
+ }
+ return false
+}
+
+type HelloResponse struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"`
+ BooleanTest bool `protobuf:"varint,2,opt,name=boolean_test,json=booleanTest,proto3" json:"boolean_test,omitempty"`
+}
+
+func (x *HelloResponse) Reset() {
+ *x = HelloResponse{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_targetservice_proto_msgTypes[1]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *HelloResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*HelloResponse) ProtoMessage() {}
+
+func (x *HelloResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_targetservice_proto_msgTypes[1]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
+func (*HelloResponse) Descriptor() ([]byte, []int) {
+ return file_targetservice_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *HelloResponse) GetReply() string {
+ if x != nil {
+ return x.Reply
+ }
+ return ""
+}
+
+func (x *HelloResponse) GetBooleanTest() bool {
+ if x != nil {
+ return x.BooleanTest
+ }
+ return false
+}
+
+type BallIn struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
+ When *timestamp.Timestamp `protobuf:"bytes,2,opt,name=when,proto3" json:"when,omitempty"`
+ Now *timestamp.Timestamp `protobuf:"bytes,3,opt,name=now,proto3" json:"now,omitempty"`
+}
+
+func (x *BallIn) Reset() {
+ *x = BallIn{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_targetservice_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BallIn) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BallIn) ProtoMessage() {}
+
+func (x *BallIn) ProtoReflect() protoreflect.Message {
+ mi := &file_targetservice_proto_msgTypes[2]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BallIn.ProtoReflect.Descriptor instead.
+func (*BallIn) Descriptor() ([]byte, []int) {
+ return file_targetservice_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *BallIn) GetMessage() string {
+ if x != nil {
+ return x.Message
+ }
+ return ""
+}
+
+func (x *BallIn) GetWhen() *timestamp.Timestamp {
+ if x != nil {
+ return x.When
+ }
+ return nil
+}
+
+func (x *BallIn) GetNow() *timestamp.Timestamp {
+ if x != nil {
+ return x.Now
+ }
+ return nil
+}
+
+type BallOut struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"`
+ TimeMessage string `protobuf:"bytes,2,opt,name=time_message,json=timeMessage,proto3" json:"time_message,omitempty"`
+ Now *timestamp.Timestamp `protobuf:"bytes,3,opt,name=now,proto3" json:"now,omitempty"`
+}
+
+func (x *BallOut) Reset() {
+ *x = BallOut{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_targetservice_proto_msgTypes[3]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *BallOut) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*BallOut) ProtoMessage() {}
+
+func (x *BallOut) ProtoReflect() protoreflect.Message {
+ mi := &file_targetservice_proto_msgTypes[3]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use BallOut.ProtoReflect.Descriptor instead.
+func (*BallOut) Descriptor() ([]byte, []int) {
+ return file_targetservice_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *BallOut) GetReply() string {
+ if x != nil {
+ return x.Reply
+ }
+ return ""
+}
+
+func (x *BallOut) GetTimeMessage() string {
+ if x != nil {
+ return x.TimeMessage
+ }
+ return ""
+}
+
+func (x *BallOut) GetNow() *timestamp.Timestamp {
+ if x != nil {
+ return x.Now
+ }
+ return nil
+}
+
+type Limb struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
+ Endings string `protobuf:"bytes,2,opt,name=endings,proto3" json:"endings,omitempty"`
+}
+
+func (x *Limb) Reset() {
+ *x = Limb{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_targetservice_proto_msgTypes[4]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Limb) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Limb) ProtoMessage() {}
+
+func (x *Limb) ProtoReflect() protoreflect.Message {
+ mi := &file_targetservice_proto_msgTypes[4]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Limb.ProtoReflect.Descriptor instead.
+func (*Limb) Descriptor() ([]byte, []int) {
+ return file_targetservice_proto_rawDescGZIP(), []int{4}
+}
+
+func (x *Limb) GetCount() int32 {
+ if x != nil {
+ return x.Count
+ }
+ return 0
+}
+
+func (x *Limb) GetEndings() string {
+ if x != nil {
+ return x.Endings
+ }
+ return ""
+}
+
+type Body struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ Hands *Limb `protobuf:"bytes,2,opt,name=hands,proto3" json:"hands,omitempty"`
+ Legs *Limb `protobuf:"bytes,3,opt,name=legs,proto3" json:"legs,omitempty"`
+ Tail *Limb `protobuf:"bytes,4,opt,name=tail,proto3" json:"tail,omitempty"`
+}
+
+func (x *Body) Reset() {
+ *x = Body{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_targetservice_proto_msgTypes[5]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *Body) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*Body) ProtoMessage() {}
+
+func (x *Body) ProtoReflect() protoreflect.Message {
+ mi := &file_targetservice_proto_msgTypes[5]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use Body.ProtoReflect.Descriptor instead.
+func (*Body) Descriptor() ([]byte, []int) {
+ return file_targetservice_proto_rawDescGZIP(), []int{5}
+}
+
+func (x *Body) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *Body) GetHands() *Limb {
+ if x != nil {
+ return x.Hands
+ }
+ return nil
+}
+
+func (x *Body) GetLegs() *Limb {
+ if x != nil {
+ return x.Legs
+ }
+ return nil
+}
+
+func (x *Body) GetTail() *Limb {
+ if x != nil {
+ return x.Tail
+ }
+ return nil
+}
+
+type EchoMsg struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ Array []string `protobuf:"bytes,1,rep,name=array,proto3" json:"array,omitempty"`
+ Nullable string `protobuf:"bytes,2,opt,name=nullable,proto3" json:"nullable,omitempty"`
+}
+
+func (x *EchoMsg) Reset() {
+ *x = EchoMsg{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_targetservice_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *EchoMsg) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EchoMsg) ProtoMessage() {}
+
+func (x *EchoMsg) ProtoReflect() protoreflect.Message {
+ mi := &file_targetservice_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EchoMsg.ProtoReflect.Descriptor instead.
+func (*EchoMsg) Descriptor() ([]byte, []int) {
+ return file_targetservice_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *EchoMsg) GetArray() []string {
+ if x != nil {
+ return x.Array
+ }
+ return nil
+}
+
+func (x *EchoMsg) GetNullable() string {
+ if x != nil {
+ return x.Nullable
+ }
+ return ""
+}
+
+var File_targetservice_proto protoreflect.FileDescriptor
+
+var file_targetservice_proto_rawDesc = []byte{
+ 0x0a, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x65, 0x72,
+ 0x76, 0x69, 0x63, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
+ 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x22, 0x4d, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x12,
+ 0x21, 0x0a, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x65,
+ 0x73, 0x74, 0x22, 0x48, 0x0a, 0x0d, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6f, 0x6f,
+ 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
+ 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x65, 0x73, 0x74, 0x22, 0x80, 0x01, 0x0a,
+ 0x06, 0x42, 0x61, 0x6c, 0x6c, 0x49, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
+ 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
+ 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x77, 0x68, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x77, 0x68, 0x65,
+ 0x6e, 0x12, 0x2c, 0x0a, 0x03, 0x6e, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
+ 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x03, 0x6e, 0x6f, 0x77, 0x22,
+ 0x70, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x6c, 0x4f, 0x75, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65,
+ 0x70, 0x6c, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79,
+ 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x65, 0x73, 0x73,
+ 0x61, 0x67, 0x65, 0x12, 0x2c, 0x0a, 0x03, 0x6e, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x03, 0x6e, 0x6f,
+ 0x77, 0x22, 0x36, 0x0a, 0x04, 0x4c, 0x69, 0x6d, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75,
+ 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12,
+ 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x97, 0x01, 0x0a, 0x04, 0x42, 0x6f,
+ 0x64, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4c, 0x69, 0x6d, 0x62, 0x52, 0x05, 0x68, 0x61, 0x6e, 0x64,
+ 0x73, 0x12, 0x27, 0x0a, 0x04, 0x6c, 0x65, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x13, 0x2e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
+ 0x4c, 0x69, 0x6d, 0x62, 0x52, 0x04, 0x6c, 0x65, 0x67, 0x73, 0x12, 0x27, 0x0a, 0x04, 0x74, 0x61,
+ 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x61, 0x72, 0x67, 0x65,
+ 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4c, 0x69, 0x6d, 0x62, 0x52, 0x04, 0x74,
+ 0x61, 0x69, 0x6c, 0x22, 0x3b, 0x0a, 0x07, 0x45, 0x63, 0x68, 0x6f, 0x4d, 0x73, 0x67, 0x12, 0x14,
+ 0x0a, 0x05, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x61,
+ 0x72, 0x72, 0x61, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65,
+ 0x32, 0x80, 0x04, 0x0a, 0x07, 0x42, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x72, 0x12, 0x9f, 0x01, 0x0a,
+ 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x1b, 0x2e, 0x74, 0x61, 0x72, 0x67,
+ 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70,
+ 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x12, 0x17, 0x2f, 0x76,
+ 0x31, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x67, 0x72, 0x65, 0x65,
+ 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x3a, 0x01, 0x2a, 0x5a, 0x34, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f,
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x2f,
+ 0x7b, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x3d, 0x2a, 0x2a, 0x7d, 0x5a, 0x0f, 0x22,
+ 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x12, 0x6a,
+ 0x0a, 0x0d, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12,
+ 0x1b, 0x2e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
+ 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x74,
+ 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x48, 0x65, 0x6c,
+ 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f,
+ 0x7b, 0x67, 0x72, 0x65, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0x4d, 0x0a, 0x08, 0x42, 0x6f,
+ 0x75, 0x6e, 0x63, 0x65, 0x49, 0x74, 0x12, 0x15, 0x2e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x61, 0x6c, 0x6c, 0x49, 0x6e, 0x1a, 0x16, 0x2e,
+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x61,
+ 0x6c, 0x6c, 0x4f, 0x75, 0x74, 0x22, 0x12, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x22, 0x07, 0x2f,
+ 0x62, 0x6f, 0x75, 0x6e, 0x63, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x4b, 0x0a, 0x08, 0x47, 0x72, 0x6f,
+ 0x77, 0x54, 0x61, 0x69, 0x6c, 0x12, 0x13, 0x2e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x65,
+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x1a, 0x13, 0x2e, 0x74, 0x61, 0x72,
+ 0x67, 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x22,
+ 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x6f,
+ 0x77, 0x2f, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x4b, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x16,
+ 0x2e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45,
+ 0x63, 0x68, 0x6f, 0x4d, 0x73, 0x67, 0x1a, 0x16, 0x2e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x4d, 0x73, 0x67, 0x22, 0x13,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x22, 0x08, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x63, 0x68, 0x6f,
+ 0x3a, 0x01, 0x2a, 0x42, 0x11, 0x5a, 0x0f, 0x2e, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+ file_targetservice_proto_rawDescOnce sync.Once
+ file_targetservice_proto_rawDescData = file_targetservice_proto_rawDesc
+)
+
+func file_targetservice_proto_rawDescGZIP() []byte {
+ file_targetservice_proto_rawDescOnce.Do(func() {
+ file_targetservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_targetservice_proto_rawDescData)
+ })
+ return file_targetservice_proto_rawDescData
+}
+
+var file_targetservice_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
+var file_targetservice_proto_goTypes = []interface{}{
+ (*HelloRequest)(nil), // 0: targetservice.HelloRequest
+ (*HelloResponse)(nil), // 1: targetservice.HelloResponse
+ (*BallIn)(nil), // 2: targetservice.BallIn
+ (*BallOut)(nil), // 3: targetservice.BallOut
+ (*Limb)(nil), // 4: targetservice.Limb
+ (*Body)(nil), // 5: targetservice.Body
+ (*EchoMsg)(nil), // 6: targetservice.EchoMsg
+ (*timestamp.Timestamp)(nil), // 7: google.protobuf.Timestamp
+}
+var file_targetservice_proto_depIdxs = []int32{
+ 7, // 0: targetservice.BallIn.when:type_name -> google.protobuf.Timestamp
+ 7, // 1: targetservice.BallIn.now:type_name -> google.protobuf.Timestamp
+ 7, // 2: targetservice.BallOut.now:type_name -> google.protobuf.Timestamp
+ 4, // 3: targetservice.Body.hands:type_name -> targetservice.Limb
+ 4, // 4: targetservice.Body.legs:type_name -> targetservice.Limb
+ 4, // 5: targetservice.Body.tail:type_name -> targetservice.Limb
+ 0, // 6: targetservice.Bouncer.SayHello:input_type -> targetservice.HelloRequest
+ 0, // 7: targetservice.Bouncer.UnknownMethod:input_type -> targetservice.HelloRequest
+ 2, // 8: targetservice.Bouncer.BounceIt:input_type -> targetservice.BallIn
+ 5, // 9: targetservice.Bouncer.GrowTail:input_type -> targetservice.Body
+ 6, // 10: targetservice.Bouncer.Echo:input_type -> targetservice.EchoMsg
+ 1, // 11: targetservice.Bouncer.SayHello:output_type -> targetservice.HelloResponse
+ 1, // 12: targetservice.Bouncer.UnknownMethod:output_type -> targetservice.HelloResponse
+ 3, // 13: targetservice.Bouncer.BounceIt:output_type -> targetservice.BallOut
+ 5, // 14: targetservice.Bouncer.GrowTail:output_type -> targetservice.Body
+ 6, // 15: targetservice.Bouncer.Echo:output_type -> targetservice.EchoMsg
+ 11, // [11:16] is the sub-list for method output_type
+ 6, // [6:11] is the sub-list for method input_type
+ 6, // [6:6] is the sub-list for extension type_name
+ 6, // [6:6] is the sub-list for extension extendee
+ 0, // [0:6] is the sub-list for field type_name
+}
+
+func init() { file_targetservice_proto_init() }
+func file_targetservice_proto_init() {
+ if File_targetservice_proto != nil {
+ return
+ }
+ if !protoimpl.UnsafeEnabled {
+ file_targetservice_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*HelloRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_targetservice_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*HelloResponse); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_targetservice_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BallIn); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_targetservice_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*BallOut); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_targetservice_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Limb); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_targetservice_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*Body); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_targetservice_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*EchoMsg); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ }
+ type x struct{}
+ out := protoimpl.TypeBuilder{
+ File: protoimpl.DescBuilder{
+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+ RawDescriptor: file_targetservice_proto_rawDesc,
+ NumEnums: 0,
+ NumMessages: 7,
+ NumExtensions: 0,
+ NumServices: 1,
+ },
+ GoTypes: file_targetservice_proto_goTypes,
+ DependencyIndexes: file_targetservice_proto_depIdxs,
+ MessageInfos: file_targetservice_proto_msgTypes,
+ }.Build()
+ File_targetservice_proto = out.File
+ file_targetservice_proto_rawDesc = nil
+ file_targetservice_proto_goTypes = nil
+ file_targetservice_proto_depIdxs = nil
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/targetservice/targetservice_grpc.pb.go b/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/targetservice/targetservice_grpc.pb.go
new file mode 100644
index 00000000..e59433d7
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/target/targetservice/targetservice_grpc.pb.go
@@ -0,0 +1,251 @@
+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
+// versions:
+// - protoc-gen-go-grpc v1.2.0
+// - protoc v3.21.7
+// source: targetservice.proto
+
+package targetservice
+
+import (
+ context "context"
+ grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
+)
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the grpc package it is being compiled against.
+// Requires gRPC-Go v1.32.0 or later.
+const _ = grpc.SupportPackageIsVersion7
+
+// BouncerClient is the client API for Bouncer service.
+//
+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
+type BouncerClient interface {
+ SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
+ // define a gRPC method that's not implemented in the target
+ UnknownMethod(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
+ BounceIt(ctx context.Context, in *BallIn, opts ...grpc.CallOption) (*BallOut, error)
+ GrowTail(ctx context.Context, in *Body, opts ...grpc.CallOption) (*Body, error)
+ Echo(ctx context.Context, in *EchoMsg, opts ...grpc.CallOption) (*EchoMsg, error)
+}
+
+type bouncerClient struct {
+ cc grpc.ClientConnInterface
+}
+
+func NewBouncerClient(cc grpc.ClientConnInterface) BouncerClient {
+ return &bouncerClient{cc}
+}
+
+func (c *bouncerClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) {
+ out := new(HelloResponse)
+ err := c.cc.Invoke(ctx, "/targetservice.Bouncer/SayHello", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *bouncerClient) UnknownMethod(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) {
+ out := new(HelloResponse)
+ err := c.cc.Invoke(ctx, "/targetservice.Bouncer/UnknownMethod", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *bouncerClient) BounceIt(ctx context.Context, in *BallIn, opts ...grpc.CallOption) (*BallOut, error) {
+ out := new(BallOut)
+ err := c.cc.Invoke(ctx, "/targetservice.Bouncer/BounceIt", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *bouncerClient) GrowTail(ctx context.Context, in *Body, opts ...grpc.CallOption) (*Body, error) {
+ out := new(Body)
+ err := c.cc.Invoke(ctx, "/targetservice.Bouncer/GrowTail", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *bouncerClient) Echo(ctx context.Context, in *EchoMsg, opts ...grpc.CallOption) (*EchoMsg, error) {
+ out := new(EchoMsg)
+ err := c.cc.Invoke(ctx, "/targetservice.Bouncer/Echo", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+// BouncerServer is the server API for Bouncer service.
+// All implementations must embed UnimplementedBouncerServer
+// for forward compatibility
+type BouncerServer interface {
+ SayHello(context.Context, *HelloRequest) (*HelloResponse, error)
+ // define a gRPC method that's not implemented in the target
+ UnknownMethod(context.Context, *HelloRequest) (*HelloResponse, error)
+ BounceIt(context.Context, *BallIn) (*BallOut, error)
+ GrowTail(context.Context, *Body) (*Body, error)
+ Echo(context.Context, *EchoMsg) (*EchoMsg, error)
+ mustEmbedUnimplementedBouncerServer()
+}
+
+// UnimplementedBouncerServer must be embedded to have forward compatible implementations.
+type UnimplementedBouncerServer struct {
+}
+
+func (UnimplementedBouncerServer) SayHello(context.Context, *HelloRequest) (*HelloResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method SayHello not implemented")
+}
+func (UnimplementedBouncerServer) UnknownMethod(context.Context, *HelloRequest) (*HelloResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UnknownMethod not implemented")
+}
+func (UnimplementedBouncerServer) BounceIt(context.Context, *BallIn) (*BallOut, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method BounceIt not implemented")
+}
+func (UnimplementedBouncerServer) GrowTail(context.Context, *Body) (*Body, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GrowTail not implemented")
+}
+func (UnimplementedBouncerServer) Echo(context.Context, *EchoMsg) (*EchoMsg, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented")
+}
+func (UnimplementedBouncerServer) mustEmbedUnimplementedBouncerServer() {}
+
+// UnsafeBouncerServer may be embedded to opt out of forward compatibility for this service.
+// Use of this interface is not recommended, as added methods to BouncerServer will
+// result in compilation errors.
+type UnsafeBouncerServer interface {
+ mustEmbedUnimplementedBouncerServer()
+}
+
+func RegisterBouncerServer(s grpc.ServiceRegistrar, srv BouncerServer) {
+ s.RegisterService(&Bouncer_ServiceDesc, srv)
+}
+
+func _Bouncer_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(HelloRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BouncerServer).SayHello(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/targetservice.Bouncer/SayHello",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BouncerServer).SayHello(ctx, req.(*HelloRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Bouncer_UnknownMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(HelloRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BouncerServer).UnknownMethod(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/targetservice.Bouncer/UnknownMethod",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BouncerServer).UnknownMethod(ctx, req.(*HelloRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Bouncer_BounceIt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(BallIn)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BouncerServer).BounceIt(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/targetservice.Bouncer/BounceIt",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BouncerServer).BounceIt(ctx, req.(*BallIn))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Bouncer_GrowTail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(Body)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BouncerServer).GrowTail(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/targetservice.Bouncer/GrowTail",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BouncerServer).GrowTail(ctx, req.(*Body))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _Bouncer_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(EchoMsg)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BouncerServer).Echo(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/targetservice.Bouncer/Echo",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BouncerServer).Echo(ctx, req.(*EchoMsg))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+// Bouncer_ServiceDesc is the grpc.ServiceDesc for Bouncer service.
+// It's only intended for direct use with grpc.RegisterService,
+// and not to be introspected or modified (even as a copy)
+var Bouncer_ServiceDesc = grpc.ServiceDesc{
+ ServiceName: "targetservice.Bouncer",
+ HandlerType: (*BouncerServer)(nil),
+ Methods: []grpc.MethodDesc{
+ {
+ MethodName: "SayHello",
+ Handler: _Bouncer_SayHello_Handler,
+ },
+ {
+ MethodName: "UnknownMethod",
+ Handler: _Bouncer_UnknownMethod_Handler,
+ },
+ {
+ MethodName: "BounceIt",
+ Handler: _Bouncer_BounceIt_Handler,
+ },
+ {
+ MethodName: "GrowTail",
+ Handler: _Bouncer_GrowTail_Handler,
+ },
+ {
+ MethodName: "Echo",
+ Handler: _Bouncer_Echo_Handler,
+ },
+ },
+ Streams: []grpc.StreamDesc{},
+ Metadata: "targetservice.proto",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/grpc/targetservice.proto b/kong-versions/3.8.0/kong/spec/fixtures/grpc/targetservice.proto
new file mode 100644
index 00000000..e2f887fe
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/grpc/targetservice.proto
@@ -0,0 +1,95 @@
+syntax = "proto3";
+
+package targetservice;
+
+import "google/api/annotations.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "./targetservice";
+
+service Bouncer {
+ rpc SayHello(HelloRequest) returns (HelloResponse) {
+ option (google.api.http) = {
+ // https://github.com/googleapis/googleapis/blob/master/google/api/http.proto
+ // HTTP | gRPC
+ // -----|-----
+ // `GET /v1/messages/123456` | `HelloRequest(greeting: "123456")`
+ get: "/v1/messages/{greeting}"
+ additional_bindings {
+ get: "/v1/messages/legacy/{greeting=**}"
+ additional_bindings {
+ post: "/v1/messages/"
+ }
+ }
+ body: "*"
+ };
+ };
+
+ // define a gRPC method that's not implemented in the target
+ rpc UnknownMethod(HelloRequest) returns (HelloResponse) {
+ option (google.api.http) = {
+ get: "/v1/unknown/{greeting}"
+ };
+ };
+
+ rpc BounceIt (BallIn) returns (BallOut) {
+ option (google.api.http) = {
+ post: "/bounce"
+ body: "*"
+ };
+ }
+
+ rpc GrowTail(Body) returns (Body) {
+ option (google.api.http) = {
+ get: "/v1/grow/tail"
+ };
+ }
+
+ rpc Echo(EchoMsg) returns (EchoMsg) {
+ option (google.api.http) = {
+ post: "/v1/echo"
+ body: "*"
+ };
+ }
+}
+
+
+message HelloRequest {
+ string greeting = 1;
+ bool boolean_test = 2;
+}
+
+message HelloResponse {
+ string reply = 1;
+ bool boolean_test = 2;
+}
+
+
+message BallIn {
+ string message = 1;
+ google.protobuf.Timestamp when = 2;
+ google.protobuf.Timestamp now = 3;
+}
+
+message BallOut {
+ string reply = 1;
+ string time_message = 2;
+ google.protobuf.Timestamp now = 3;
+}
+
+message Limb {
+ int32 count = 1;
+ string endings = 2;
+}
+
+message Body {
+ string name = 1;
+ Limb hands = 2;
+ Limb legs = 3;
+ Limb tail = 4;
+}
+
+message EchoMsg {
+ repeated string array = 1;
+ string nullable = 2;
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/headers.conf b/kong-versions/3.8.0/kong/spec/fixtures/headers.conf
new file mode 100644
index 00000000..36df085d
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/headers.conf
@@ -0,0 +1,28 @@
+# 1st digit is 9 for our test instances
+admin_listen = 127.0.0.1:9001
+proxy_listen = 0.0.0.0:9000, 0.0.0.0:9443 ssl
+
+ssl_cert = spec/fixtures/kong_spec.crt
+ssl_cert_key = spec/fixtures/kong_spec.key
+
+admin_ssl_cert = spec/fixtures/kong_spec.crt
+admin_ssl_cert_key = spec/fixtures/kong_spec.key
+
+database = postgres
+pg_host = 127.0.0.1
+pg_port = 5432
+pg_timeout = 10000
+pg_database = kong_tests
+anonymous_reports = off
+
+dns_hostsfile = spec/fixtures/hosts
+
+nginx_main_worker_processes = 1
+nginx_main_worker_rlimit_nofile = 4096
+nginx_events_worker_connections = 4096
+nginx_events_multi_accept = off
+
+prefix = servroot
+log_level = debug
+
+headers = server_tokens, X-Kong-Proxy-Latency
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/hosts b/kong-versions/3.8.0/kong/spec/fixtures/hosts
new file mode 100644
index 00000000..75721cd5
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/hosts
@@ -0,0 +1 @@
+127.0.0.1 localhost
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/https_server.lua b/kong-versions/3.8.0/kong/spec/fixtures/https_server.lua
new file mode 100644
index 00000000..04872ece
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/https_server.lua
@@ -0,0 +1,282 @@
+local https_server = {}
+https_server.__index = https_server
+
+
+local fmt = string.format
+local mock_srv_tpl_file = require "spec.fixtures.mock_webserver_tpl"
+local ngx = require "ngx"
+local pl_dir = require "pl.dir"
+local pl_file = require "pl.file"
+local pl_template = require "pl.template"
+local pl_path = require "pl.path"
+local uuid = require "resty.jit-uuid"
+local http_client = require "resty.http"
+local cjson = require "cjson"
+local shell = require "resty.shell"
+
+
+local Template = require("pl.stringx").Template
+
+
+-- we need this to get random UUIDs
+math.randomseed(os.time())
+
+
+local HTTPS_SERVER_START_MAX_RETRY = 10
+
+local tmp_root = os.getenv("TMPDIR") or "/tmp"
+local host_regex = [[([a-z0-9\-._~%!$&'()*+,;=]+@)?([a-z0-9\-._~%]+|\[[a-z0-9\-._~%!$&'()*+,;=:]+\])(:?[0-9]+)*]]
+
+
+
+local function create_temp_dir(copy_cert_and_key)
+ local tmp_name = fmt("nginx_%s", uuid())
+ local tmp_path = fmt("%s/%s", tmp_root, tmp_name)
+ local _, err = pl_path.mkdir(tmp_path)
+ if err then
+ return nil, err
+ end
+
+ local _, err = pl_path.mkdir(tmp_path .. "/logs")
+ if err then
+ return nil, err
+ end
+
+ if copy_cert_and_key then
+ local status = pl_dir.copyfile("./spec/fixtures/kong_spec.crt", tmp_path)
+ if not status then
+ return nil, "could not copy cert"
+ end
+
+ status = pl_dir.copyfile("./spec/fixtures/kong_spec.key", tmp_path)
+ if not status then
+ return nil, "could not copy private key"
+ end
+ end
+
+ return tmp_path
+end
+
+
+local function create_conf(params)
+ local tpl, err = pl_template.compile(mock_srv_tpl_file)
+ if err then
+ return nil, err
+ end
+
+ local compiled_tpl = Template(tpl:render(params, { ipairs = ipairs }))
+ local conf_filename = params.base_path .. "/nginx.conf"
+ local conf, err = io.open (conf_filename, "w")
+ if err then
+ return nil, err
+ end
+
+ conf:write(compiled_tpl:substitute(params))
+ conf:close()
+
+ return conf_filename
+end
+
+
+local function count_results(logs_dir)
+ local results = {
+ ["ok"] = 0,
+ ["fail"] = 0,
+ ["total"] = 0,
+ ["status_ok"] = 0,
+ ["status_fail"] = 0,
+ ["status_total"] = 0
+ }
+ local error_log_filename = logs_dir .. "/error.log"
+
+ for line in io.lines(error_log_filename) do
+ local m = ngx.re.match(line, [[^.*\[COUNT\] (.+) (\d\d\d)\,.*\, host: \"(.+)\"$]])
+ if m then
+ local location = m[1]
+ local status = m[2]
+ local host = m[3]
+ if host then
+ local host_no_port = ngx.re.match(m[3], host_regex)
+ if host_no_port then
+ host = host_no_port[2]
+ end
+ else
+ host = "nonamehost"
+ end
+ if results[host] == nil then
+ results[host] = {
+ ["ok"] = 0,
+ ["fail"] = 0,
+ ["status_ok"] = 0,
+ ["status_fail"] = 0,
+ }
+ end
+
+ if location == "slash" then
+ if status == "200" then
+ results.ok = results.ok + 1
+ results[host].ok = results[host].ok + 1
+ else
+ results.fail = results.fail + 1
+ results[host].fail = results[host].fail + 1
+ end
+ results.total = results.ok + results.fail
+ elseif location == "status" then
+ if status == "200" then
+ results.status_ok = results.status_ok + 1
+ results[host].status_ok = results[host].status_ok + 1
+ else
+ results.status_fail = results.status_fail + 1
+ results[host].status_fail = results[host].status_fail + 1
+ end
+ results.status_total = results.status_ok + results.status_fail
+ end
+ end
+ end
+
+ return results
+end
+
+
+function https_server.clear_access_log(self)
+ local client = assert(http_client.new())
+
+ local uri = string.format("%s://%s:%d/clear_log", self.protocol, self.host, self.http_port)
+
+ local res = assert(client:request_uri(uri, {
+ method = "GET"
+ }))
+
+ assert(res.body == "cleared\n")
+end
+
+
+function https_server.get_access_log(self)
+ local client = assert(http_client.new())
+
+ local uri = string.format("%s://%s:%d/log?do_not_log", self.protocol, self.host, self.http_port)
+
+ local res = assert(client:request_uri(uri, {
+ method = "GET"
+ }))
+
+ return assert(cjson.decode(res.body))
+end
+
+
+function https_server.start(self)
+ if not pl_path.exists(tmp_root) or not pl_path.isdir(tmp_root) then
+ error("could not get a temporary path", 2)
+ end
+
+ local err
+ self.base_path, err = create_temp_dir(self.protocol == "https")
+ if err then
+ error(fmt("could not create temp dir: %s", err), 2)
+ end
+
+ local conf_params = {
+ base_path = self.base_path,
+ delay = self.delay,
+ cert_path = "./",
+ check_hostname = self.check_hostname,
+ logs_dir = self.logs_dir,
+ host = self.host,
+ hosts = self.hosts,
+ http_port = self.http_port,
+ protocol = self.protocol,
+ worker_num = self.worker_num,
+ disable_ipv6 = self.disable_ipv6,
+ }
+
+ local file, err = create_conf(conf_params)
+ if err then
+ error(fmt("could not create conf: %s", err), 2)
+ end
+
+ for _ = 1, HTTPS_SERVER_START_MAX_RETRY do
+ if shell.run("nginx -c " .. file .. " -p " .. self.base_path, nil, 0) then
+ return
+ end
+
+ ngx.sleep(1)
+ end
+
+ error("failed starting nginx")
+end
+
+
+function https_server.shutdown(self)
+ local pid_filename = self.base_path .. "/logs/nginx.pid"
+ local pid_file = io.open (pid_filename, "r")
+ if pid_file then
+ local pid, err = pid_file:read()
+ if err then
+ error(fmt("could not read pid file: %s", tostring(err)), 2)
+ end
+
+ local kill_nginx_cmd = fmt("kill -s TERM %s", tostring(pid))
+ local status = shell.run(kill_nginx_cmd, nil, 0)
+ if not status then
+ error(fmt("could not kill nginx test server. %s was not removed", self.base_path), 2)
+ end
+
+ local pidfile_removed
+ local watchdog = 0
+ repeat
+ pidfile_removed = pl_file.access_time(pid_filename) == nil
+ if not pidfile_removed then
+ ngx.sleep(0.01)
+ watchdog = watchdog + 1
+ if(watchdog > 100) then
+ error("could not stop nginx", 2)
+ end
+ end
+ until(pidfile_removed)
+ end
+
+ local count, err = count_results(self.base_path .. "/" .. self.logs_dir)
+ if err then
+ -- not a fatal error
+ print(fmt("could not count results: %s", tostring(err)))
+ end
+
+ local _, err = pl_dir.rmtree(self.base_path)
+ if err then
+ print(fmt("could not remove %s: %s", self.base_path, tostring(err)))
+ end
+
+ return count
+end
+
+-- **DEPRECATED**: please use `spec.helpers.http_mock` instead.
+function https_server.new(port, hostname, protocol, check_hostname, workers, delay, disable_ipv6)
+ local self = setmetatable({}, https_server)
+ local host
+ local hosts
+
+ if type(hostname) == "table" then
+ hosts = hostname
+ host = ""
+ for _, h in ipairs(hostname) do
+ host = fmt("%s %s", host, h)
+ end
+ else
+ hosts = {hostname}
+ host = hostname
+ end
+
+ self.check_hostname = check_hostname or false
+ self.delay = tonumber(delay) or 0
+ self.host = host or "localhost"
+ self.hosts = hosts
+ self.http_port = port
+ self.logs_dir = "logs"
+ self.protocol = protocol or "http"
+ self.worker_num = workers or 2
+ self.disable_ipv6 = disable_ipv6
+
+ return self
+end
+
+return https_server
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/invalid-module.lua b/kong-versions/3.8.0/kong/spec/fixtures/invalid-module.lua
new file mode 100644
index 00000000..d4406b86
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/invalid-module.lua
@@ -0,0 +1,5 @@
+-- Invalid module (syntax error) for utils.load_module_if_exists unit tests.
+-- Assert that load_module_if_exists throws an error helps for development, where one could
+-- be confused as to the reason why his or her plugin doesn't load. (not implemented or has an error)
+
+local a = "hello",
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/invalid.conf b/kong-versions/3.8.0/kong/spec/fixtures/invalid.conf
new file mode 100644
index 00000000..fbbfedcc
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/invalid.conf
@@ -0,0 +1,3 @@
+pg_ssl = on
+database = postgres
+untrusted_lua = foobar
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/invalid_nginx_directives.conf b/kong-versions/3.8.0/kong/spec/fixtures/invalid_nginx_directives.conf
new file mode 100644
index 00000000..46738cc2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/invalid_nginx_directives.conf
@@ -0,0 +1 @@
+nginx_http_random_directive = value
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering.crt b/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering.crt
new file mode 100644
index 00000000..a92d31ca
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering.crt
@@ -0,0 +1,23 @@
+-----BEGIN CERTIFICATE-----
+MIIDzTCCArWgAwIBAgIUMmq4W4is+P02LXKinUdLoPjFuDYwDQYJKoZIhvcNAQEL
+BQAwdjELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExFjAUBgNVBAcM
+DVNhbiBGcmFuY2lzY28xIDAeBgNVBAoMF0tvbmcgQ2x1c3RlcmluZyBUZXN0aW5n
+MRgwFgYDVQQDDA9rb25nX2NsdXN0ZXJpbmcwHhcNMTkxMTEzMDU0NTA1WhcNMjkx
+MTEwMDU0NTA1WjB2MQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEW
+MBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEgMB4GA1UECgwXS29uZyBDbHVzdGVyaW5n
+IFRlc3RpbmcxGDAWBgNVBAMMD2tvbmdfY2x1c3RlcmluZzCCASIwDQYJKoZIhvcN
+AQEBBQADggEPADCCAQoCggEBALr7evXK3nLxW98lXDWUcyNRCKDzUVX5Rlm7ny0a
+qVIh+qRUT7XGHFnDznl7s1gEkcxLtuMnKBV7Ic2jVTzKluZZFJD5H2plP7flpVu/
+byvpBNguERFDC2mbnlX7TSRhhWjlYTgFS2KiFP1OjYjim6vemszobDsCg2gRs0Mh
+A7XwsVvPSFNfnAOPTpyLRGtN3ShEA0LKjBkjg2u67MPAfg1y8/8Tm3h/kqfOciMT
+5ax2J1Ll/9/oCWX9qW6gNmnnUGNlBpcAZk3pzh6n1coRnVaysoCPYPgd9u1KoBkt
+uTQJOn1Qi3OWPZzyiLGRa/X0tGx/5QQDnLr6GyDjwPcC09sCAwEAAaNTMFEwHQYD
+VR0OBBYEFNNvhlhHAsJtBZejHystlPa/CoP2MB8GA1UdIwQYMBaAFNNvhlhHAsJt
+BZejHystlPa/CoP2MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB
+AHQpVBYGfFPFTRY/HvtWdXROgW358m9rUC5E4SfTJ8JLWpCB4J+hfjQ+mASTFb1V
+5FS8in8S/u1MgeU65RC1/xt6Rof7Tu/Cx2SusPWo0YGyN0E9mwr2c91JsIgDO03Y
+gtDiavyw3tAPVo5n2U3y5Hf46bfT5TLZ2yFnUJcKRZ0CeX6YAJA5dwG182xOn02r
+kkh9T1bO72pQHi15QxnQ9Gc4Mi5gjuxX4/Xyag5KyEXnniTb7XquW+JKP36RfhnU
+DGoEEUNU5UYwIzh910NM0UZubu5Umya1JVumoDqAi1lf2DHhKwDNAhmozYqE1vJJ
++e1C9/9oqok3CRyLDe+VJ7M=
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering.key b/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering.key
new file mode 100644
index 00000000..67e3d9f3
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering.key
@@ -0,0 +1,28 @@
+-----BEGIN PRIVATE KEY-----
+MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC6+3r1yt5y8Vvf
+JVw1lHMjUQig81FV+UZZu58tGqlSIfqkVE+1xhxZw855e7NYBJHMS7bjJygVeyHN
+o1U8ypbmWRSQ+R9qZT+35aVbv28r6QTYLhERQwtpm55V+00kYYVo5WE4BUtiohT9
+To2I4pur3prM6Gw7AoNoEbNDIQO18LFbz0hTX5wDj06ci0RrTd0oRANCyowZI4Nr
+uuzDwH4NcvP/E5t4f5KnznIjE+WsdidS5f/f6All/aluoDZp51BjZQaXAGZN6c4e
+p9XKEZ1WsrKAj2D4HfbtSqAZLbk0CTp9UItzlj2c8oixkWv19LRsf+UEA5y6+hsg
+48D3AtPbAgMBAAECggEBALoFVt8RZR2VYYEu+f2UIrgP9jWp3FFcHdFIB6Qn0iwU
+AfdaqbJ91da4JsJVfqciZKqK6Pg0DHzSc17SEArawiWImh1guxBuimW54jjUyxU0
+Tc2EhxZVTRVT7MI9sRFws/kXuxCws7784UTg0Y5NY/IpFHinAoXyiikO8vjl73sg
+trN5mQGNTE/c8lEs7pUAFWX9zuNbmV0m1q25lHDgbkAD76/9X26lLCK1A5e2iCj3
+MME6/2GlSy3hrtSY7mCiR1GktvnK+yidXXJSkGMNCSopQARfcAlMvcCDav5ODxTz
+mB+A47oxGKBTdc9gGF44dR15y5E1kRAvTtaAIzpc14ECgYEA4u9uZkZS0gEiiA5K
+pOm/lnBp6bloGg9RlsOO5waE8DiGZgkwWuDwsncxUB1SvLd28MgxZzNQClncS98J
+viJzdAVzauMpn3Iqrdtk9drGzEeuxibic1FKMf1URGwKnlcsDHaeKAGyRQgO2Q7l
+Oy7EwtRmUKBUA3RCIqLSoiEi6NcCgYEA0u4a2abgYdyR1QMavgevqCGhuqu1Aa2Y
+rbD3TmIfGVubI2YZeFSyhC/7Jx+5HofQj5cpMRgASxzKXqrCXuyb+Q+u23kHogfQ
+cO1yO2GzjlA3FVHTK28t9EDPTOgHWQt3q7iS1s44VHwXDOpEQJ2onKKohvcP5WTf
+LO0T2K9NOJ0CgYEAtX9nHXc6/+iWdJhxjKnCaBBqNNrrboQ37ctj/FOTeQjMPMk2
+mkhzWVjI4NlC9doJz5NdJ7u7VTv/W9L7WMz256EAaUlbXcGSbtAcVCFwg6sFFke9
+Lxuhqo+AmOSMLY1sll88KKUKrfk+3szx+z5xcZ0sY2mHJ+gQiOEOc0rrP6sCgYBi
+Ksi6RU0mnoYMki5PBLq+0DA59ZH/XvCw3ayrgUUiAx1XwzvVYe3XUZFc6wm36NOr
+EFnubFIuow6YMnbVwN7yclcZ8+EWivZ6qDfC5Tyw3ipUtMlH7K2BgOw5yb8ptQmU
+FQnaCQ30W/BKZXkwbW+8voMalT+DroejnA7hiOyyjQKBgFLi6x6w76fTgQ7Ts8x0
+eATLOrvdvfotuLyMSsQLbljXyJznCTNrOGfYTua/Ifgkn4LpnoOkkxvVbj/Eugc7
+WeXBG+gbEi25GZUktrZWP1uc6s8aXH6rjYJP8iXnUpFHmQAPGuGiFnfB5MxlSns9
+9SKBXe7AvKGknGf7zg8WLKJZ
+-----END PRIVATE KEY-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_ca.crt b/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_ca.crt
new file mode 100644
index 00000000..c16572e0
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_ca.crt
@@ -0,0 +1,20 @@
+-----BEGIN CERTIFICATE-----
+MIIDLTCCAhWgAwIBAgIUBEI9LAuIcrg6fFLxC+Qo8SaEvfswDQYJKoZIhvcNAQEL
+BQAwHjEcMBoGA1UEAwwTa29uZ19jbHVzdGVyaW5nX3BraTAeFw0yMDAyMTkxODIw
+MzlaFw0zMDAyMTYxODIxMDlaMB4xHDAaBgNVBAMME2tvbmdfY2x1c3RlcmluZ19w
+a2kwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDqJdBsqWhTxA0k83N1
+9KvV6Z9YBee4BnYhQiOe8HgL8+d/SS/Ri35Ue+rZ5YbGu0im2KwzpsIEc5dw2/Tm
+eL5QL7rGnPeEQlRNufP27lI07M5XVsQx3VeZ41lhVFBwr03XQCOdozkeimriZryd
+WElslevdH4htxALDobK+HaSWl8FR8kJWlflaXuoOH0A4SQf2djo3/kmRkok5OXZz
+oeActuO5tE8/EveykABNyC4HOOfHSFCrm4dzVTskEZsJKEgQGqXNG30S5SmP6keS
+4npcgVTYV8DQinwY3lpwGb5f62nCFYbiu7M41e3ly+J9UP+qxmI9Qm1QG3rlVCtF
+wCJbAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0G
+A1UdDgQWBBRdgggWza66a1dWqUDM05ANj+BUJDAfBgNVHSMEGDAWgBRdgggWza66
+a1dWqUDM05ANj+BUJDANBgkqhkiG9w0BAQsFAAOCAQEAt9nD9jNxF0d08ioqY92R
+MR4WXa7Lp0jZUavLevXl+xhSXUo/ovUARHXs9qJ8SA/8u6eADtUQNGs0D03OSpD+
+klY4FmbcfJSBSXjOgwUz4hUVnUk/MESmLOKRMfqAW9oToBqWa/sdh9B8UzXLeM7c
+DPazf0K9AcaITUuwltDIFkQH80DiRZnoOk6nag/eBkK4nI42UZCvrg0ffRq4HY43
+jvb4EpIOf3i6PfkWznxwPq4UJLoj3NGhPwBzxZEpyfu5bvXFB4sSww9RMwu+w/fT
++wjt04CbQf286zWgOcGShJYBzNZ2EKQji6dC5PBpBO/iidddnxxCKnF/04ivSBME
+6g==
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_client.crt b/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_client.crt
new file mode 100644
index 00000000..b5853359
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_client.crt
@@ -0,0 +1,20 @@
+-----BEGIN CERTIFICATE-----
+MIIDSTCCAjGgAwIBAgIUYr7mGItDJ+hOGVdVQSYBgacnKqIwDQYJKoZIhvcNAQEL
+BQAwHjEcMBoGA1UEAwwTa29uZ19jbHVzdGVyaW5nX3BraTAeFw0yMDAyMTkxODI1
+NDhaFw0zMDAyMTIxNDI2MThaMCwxKjAoBgNVBAMMIWNsaWVudC5rb25nX2NsdXN0
+ZXJpbmdfcGtpLmRvbWFpbjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
+AMv1wKHhIy7RrHr/MFNYzZXyCEcdc0/b+BxFzhgdy8n3KI2rR60WtVulCGItbr35
+Dj3NxfRHTTAF1BvlbCg+A4bEOz3lfuuD1NQHRbLK+j2mH+GuHmUMV9fP9jf7SfbL
+zGR1zdj+d/xQHe3oSsEW3LQ/vjnWpFmVA8LFE6xYKQQtKqPHxJ+/hnohqcW2RiOJ
+EW7oAgjB/HWgwg1kgshEaAhouWWSzI2uEilxHEPtsTcSJCd1bxO0oU61jYa1dkwX
++CWhW/CDoyiCWzxr97lavyW02xRwvcDvTbpXD3sFQScp36quZ1Igr3iWGniKCaQa
+hZ4/OA7TGlhbOf5Bu4RihTECAwEAAaNxMG8wDgYDVR0PAQH/BAQDAgOoMB0GA1Ud
+JQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAdBgNVHQ4EFgQUaeNNIcyO/C7B4L0F
+BQC/2ZILhiowHwYDVR0jBBgwFoAUXYIIFs2uumtXVqlAzNOQDY/gVCQwDQYJKoZI
+hvcNAQELBQADggEBAKUBSjBESwRwgyhSLmZU6LWbVmezmGmkTdTmaArwN4SZL0Vm
+gBJSatBN+MHuqzgnUxvgLIGmZLCMfL1rW6ERv/sOXWV6QTN+91RoGFf9zGBJ+tmH
+oXs+qps9Ge8zV+W63DoNqRKOkU9TrEWYt9kAQE/y6zTCMtmwRBaSAWurlwO6FZcF
+D9apy74B7RNjM3L0NF4Nj9z5O44drWPIcBpd+26sVQuUkyda2MCyLItla7OSHAWl
+FgDQt1Bmx1ByL1PeogKBQ/2elwsw0hn8jqNLDu0YuNEdUz4h6oGxdPsh1zJeGT7l
+u/Jqwu+kkQgZk8UIiKV7A9cGXD88W3+ABpf5IX8=
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_client.key b/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_client.key
new file mode 100644
index 00000000..f4abb659
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/kong_clustering_client.key
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEowIBAAKCAQEAy/XAoeEjLtGsev8wU1jNlfIIRx1zT9v4HEXOGB3LyfcojatH
+rRa1W6UIYi1uvfkOPc3F9EdNMAXUG+VsKD4DhsQ7PeV+64PU1AdFssr6PaYf4a4e
+ZQxX18/2N/tJ9svMZHXN2P53/FAd7ehKwRbctD++OdakWZUDwsUTrFgpBC0qo8fE
+n7+GeiGpxbZGI4kRbugCCMH8daDCDWSCyERoCGi5ZZLMja4SKXEcQ+2xNxIkJ3Vv
+E7ShTrWNhrV2TBf4JaFb8IOjKIJbPGv3uVq/JbTbFHC9wO9NulcPewVBJynfqq5n
+UiCveJYaeIoJpBqFnj84DtMaWFs5/kG7hGKFMQIDAQABAoIBAECRRPE6P5QTxoGN
+hbPs+fBNFbfFp/qRDWON6aeSzy/ZsZnfrioqdTFU9ml2Loevb4W7Pb6OT+4y+in2
+oB3BPAaO2p5Gp75RFrAkuTjXrw6TJ6afI3ojxS9J441nXMvnSoZHEOpv7HYQutjU
+381uumHJiCPxQkglt3ISR58YratnPFKKO21p9JRXBVDGefLhR9cFjhvRixsxF+DU
+y9l0X6hBq/VXtozzLMYpsUwLtzc6+FWIz+pLv5Y+JGtONx5IdaTW5z/VFLMNZHdP
+9cwwYKdR9dm5c37a1HKuHOZvBVAWRwjaC+uaF8IoyrGteAA9HMjCvR+jz9VST+nG
+CVGaN1ECgYEA3+OCeOcdWA2dolWlHPcSkR0BEpHmKlxSYjShJVa1JvW9C91rXw/E
+5jeCtTBmMOT/6OT/SEtaSHtMfuWSknig8OfHO0zO1N5t4+xgmp47vWUFR2fHK5PF
+GoqAYYPmYOZdSAsqE+9Rm7gzjDhriCRl6vvr0gV1bbn3BtyrCJo3XR0CgYEA6TaF
+qDhAoNQlC/GuC0JcrcxZzH2WecdSjncEPFv5xsvzc7K6Y1ptRx+9ntC8x0VyLHJJ
+RL2fPOC3HmGIVko/JS9b8kjciymwRzsQBsq3mDHzloqBAnJI3w1nzibAKfc9Azsp
+ZsZsLK+PWTkx5QR/cl+Avw8K7z+Wil4pfxUdUCUCgYEAnyXgRwUybLcxCIYM2qwe
+vJx7eLHRhOcfgMOckSgzmUAxY8+/VVGmS2fGN/nximweJXUyqjc2NDPBSqryJ8Ar
+11NK4jJVDCgYwV3zxbUZDiZTPFDe2XEvORCe9bKG/vaB9IZLIOSLhD/KFLC+b4ZA
+FGuDVEWhFaCNookV4wWMuVkCgYAQ+VjtD3sUuZwgrGyAgUoBlFgM3C8xmeJWYC88
+vW0GnR2RFDcguBowDQ1eG89BqbpPpdnTWQHYCnsJiQvFTA4ghLvqfIcg0d30sUXP
+WL3YI/qYwGf3Z54KLg2aIZPm+gnEzG+M/XAuKHEEi3coNhWYm37haRTgqP4qAASB
+LWY+yQKBgEN/zl6yTDg1iCGt/QlZWTdeQEWvCSrdaGjqvsFXlWoNsnf20zXiS/rU
+NATB1+T74kKIohYiagcgYt4H4P8wXX7rEFhCi+aYtz5ZRmjrD0hrbJkqmR+VPBJP
+SIHDqpgwRx0gXFoCV3JWl9dvHWUFl/FgRD55oCe1C8lxqZNpt2Fu
+-----END RSA PRIVATE KEY-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/kong_spec.crt b/kong-versions/3.8.0/kong/spec/fixtures/kong_spec.crt
new file mode 100644
index 00000000..10a2427c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/kong_spec.crt
@@ -0,0 +1,14 @@
+-----BEGIN CERTIFICATE-----
+MIICIzCCAYSgAwIBAgIUUMiD8e3GDZ+vs7XBmdXzMxARUrgwCgYIKoZIzj0EAwIw
+IzENMAsGA1UECgwES29uZzESMBAGA1UEAwwJbG9jYWxob3N0MB4XDTIyMTIzMDA0
+MDcwOFoXDTQyMTIyNTA0MDcwOFowIzENMAsGA1UECgwES29uZzESMBAGA1UEAwwJ
+bG9jYWxob3N0MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQBxSldGzzRAtjt825q
+Uwl+BNgxecswnvbQFLiUDqJjVjCfs/B53xQfV97ddxsRymES2viC2kjAm1Ete4TH
+CQmVltUBItHzI77HB+UsfqHoUdjl3lC/HC1yDSPBp5wd9eRRSagdl0eiJwnB9lof
+MEnmOQLg177trb/YPz1vcCCZj7ikhzCjUzBRMB0GA1UdDgQWBBSUI6+CKqKFz/Te
+ZJppMNl/Dh6d9DAfBgNVHSMEGDAWgBSUI6+CKqKFz/TeZJppMNl/Dh6d9DAPBgNV
+HRMBAf8EBTADAQH/MAoGCCqGSM49BAMCA4GMADCBiAJCAZL3qX21MnGtQcl9yOMr
+hNR54VrDKgqLR+ChU7/358n/sK/sVOjmrwVyQ52oUyqaQlfBQS2EufQVO/01+2sx
+86gzAkIB/4Ilf4RluN2/gqHYlVEDRZzsqbwVJBHLeNKsZBSJkhNNpJBwa2Ndl9/i
+u2tDk0KZFSAvRnqRAo9iDBUkIUI1ahA=
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/kong_spec.key b/kong-versions/3.8.0/kong/spec/fixtures/kong_spec.key
new file mode 100644
index 00000000..894bc719
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/kong_spec.key
@@ -0,0 +1,7 @@
+-----BEGIN EC PRIVATE KEY-----
+MIHcAgEBBEIARPKnAYLB54bxBvkDfqV4NfZ+Mxl79rlaYRB6vbWVwFpy+E2pSZBR
+doCy1tHAB/uPo+QJyjIK82Zwa3Kq0i1D2QigBwYFK4EEACOhgYkDgYYABAHFKV0b
+PNEC2O3zbmpTCX4E2DF5yzCe9tAUuJQOomNWMJ+z8HnfFB9X3t13GxHKYRLa+ILa
+SMCbUS17hMcJCZWW1QEi0fMjvscH5Sx+oehR2OXeUL8cLXINI8GnnB315FFJqB2X
+R6InCcH2Wh8wSeY5AuDXvu2tv9g/PW9wIJmPuKSHMA==
+-----END EC PRIVATE KEY-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/000_base.lua b/kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/000_base.lua
new file mode 100644
index 00000000..cd62b807
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/000_base.lua
@@ -0,0 +1,18 @@
+return {
+ postgres = {
+ up = [[
+ CREATE TABLE IF NOT EXISTS "cluster_events" (
+ "id" UUID PRIMARY KEY,
+ "node_id" UUID NOT NULL,
+ "at" TIMESTAMP WITH TIME ZONE NOT NULL,
+ "nbf" TIMESTAMP WITH TIME ZONE,
+ "expire_at" TIMESTAMP WITH TIME ZONE NOT NULL,
+ "channel" TEXT,
+ "data" TEXT
+ );
+ CREATE TABLE IF NOT EXISTS "consumers" (
+ "id" UUID PRIMARY KEY
+ );
+ ]]
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/001_14_to_15.lua b/kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/001_14_to_15.lua
new file mode 100644
index 00000000..9e18541e
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/001_14_to_15.lua
@@ -0,0 +1,6 @@
+return {
+ postgres = {
+ up = [[
+ ]],
+ },
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/init.lua b/kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/init.lua
new file mode 100644
index 00000000..76458642
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/migrations/kong/db/migrations/core/init.lua
@@ -0,0 +1,3 @@
+return {
+ "000_base",
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mock_cp.lua b/kong-versions/3.8.0/kong/spec/fixtures/mock_cp.lua
new file mode 100644
index 00000000..d45fbdfe
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mock_cp.lua
@@ -0,0 +1,404 @@
+local _M = {}
+
+local ws_server = require "resty.websocket.server"
+local pl_file = require "pl.file"
+local cjson = require "cjson.safe"
+local semaphore = require "ngx.semaphore"
+local gzip = require "kong.tools.gzip"
+local buffer = require "string.buffer"
+
+local shm = assert(ngx.shared.kong_test_cp_mock)
+
+local WRITER = "writer"
+local READER = "reader"
+
+---@type resty.websocket.new.opts
+local WS_OPTS = {
+ timeout = 500,
+ max_payload_len = 1024 * 1024 * 20,
+}
+
+
+---@class spec.fixtures.cluster-mock.ctx
+---
+---@field basic_info table
+---@field cancel boolean
+---@field dp table
+---@field need_pong boolean
+---@field writer_sema ngx.semaphore
+---@field ws resty.websocket.server
+---@field sent_version integer
+
+
+local function send(status, json)
+ ngx.status = status
+ ngx.print(cjson.encode(json))
+ return ngx.exit(status)
+end
+
+
+local function bad_request(err)
+ send(ngx.HTTP_BAD_REQUEST, { error = err })
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+---@param entry table
+local function emit_log_entry(ctx, entry)
+ entry.dp = ctx.dp
+ assert(shm:rpush("log", buffer.encode(entry)))
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+---@param name string
+---@param data table?
+local function log_event(ctx, name, data)
+ local evt = data or {}
+ evt.event = name
+ emit_log_entry(ctx, evt)
+end
+
+
+---@return integer
+local function get_version()
+ return shm:get("payload-version") or 0
+end
+
+
+---@return integer
+local function increment_version()
+ return assert(shm:incr("payload-version", 1, 0))
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+local function wake_writer(ctx)
+ ctx.writer_sema:post(1)
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+---@return boolean
+local function canceled(ctx)
+ return ctx.cancel or ngx.worker.exiting()
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+local function wait_writer(ctx)
+ return canceled(ctx) or ctx.writer_sema:wait(0.1)
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+---@return boolean continue
+local function get_basic_info(ctx)
+ local data, typ, err = ctx.ws:recv_frame()
+
+ if err and err:find("timeout") then
+ return true
+
+ elseif not data then
+ log_event(ctx, "client-read-error", { error = err })
+ return false
+ end
+
+ if typ == "binary" then
+ local info = cjson.decode(data)
+
+ if type(info) == "table" and info.type == "basic_info" then
+ log_event(ctx, "client-basic-info-received")
+ wake_writer(ctx)
+ ctx.basic_info = info
+ return true
+
+ else
+ log_event(ctx, "client-error",
+ { error = "client did not send proper basic info frame" })
+
+ return false
+ end
+
+ else
+ log_event(ctx, "client-error", {
+ error = "invalid pre-basic-info frame type: " .. typ,
+ })
+ return false
+ end
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+---@return boolean continue
+local function reader_recv(ctx)
+ local data, typ, err = ctx.ws:recv_frame()
+
+ if err then
+ if err:find("timeout") then
+ return true
+ end
+
+ log_event(ctx, "client-read-error", { error = err })
+ return false
+ end
+
+ log_event(ctx, "client-recv", {
+ type = typ,
+ data = data,
+ json = cjson.decode(data),
+ })
+
+ if typ == "ping" then
+ ctx.need_pong = true
+ wake_writer(ctx)
+
+ elseif typ == "close" then
+ log_event(ctx, "close", { initiator = "dp" })
+ return false
+ end
+
+ return true
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+local function read_handler(ctx)
+ while not canceled(ctx) and not ctx.basic_info do
+ if not get_basic_info(ctx) then
+ return READER
+ end
+ end
+
+ while not canceled(ctx) do
+ if not reader_recv(ctx) then
+ break
+ end
+ end
+
+ return READER
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+---@return boolean continue
+local function handle_ping(ctx)
+ if ctx.need_pong then
+ ctx.need_pong = false
+ ctx.ws:send_pong()
+ end
+
+ return true
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+---@return boolean continue
+local function send_config(ctx)
+ local version = get_version()
+
+ if version <= ctx.sent_version then
+ return true
+ end
+
+ local data = assert(shm:get("payload"))
+ local payload = gzip.deflate_gzip(data)
+
+ local ok, err = ctx.ws:send_binary(payload)
+
+ if ok then
+ log_event(ctx, "sent-config", {
+ version = version,
+ size = #data,
+ deflated_size = #payload,
+ })
+ ctx.sent_version = version
+ return true
+
+ else
+ log_event(ctx, "send-error", { error = err })
+ return false
+ end
+end
+
+
+---@param ctx spec.fixtures.cluster-mock.ctx
+local function write_handler(ctx)
+ while not ctx.basic_info and not canceled(ctx) do
+ wait_writer(ctx)
+ end
+
+ -- wait until the test driver has sent us at least one config payload
+ while get_version() < 1 and not canceled(ctx) do
+ wait_writer(ctx)
+ end
+
+ ctx.sent_version = 0
+
+ while not canceled(ctx)
+ and handle_ping(ctx)
+ and send_config(ctx)
+ do
+ wait_writer(ctx)
+ end
+
+ return WRITER
+end
+
+
+function _M.outlet()
+ local dp = {
+ id = ngx.var.arg_node_id,
+ hostname = ngx.var.arg_node_hostname,
+ ip = ngx.var.remote_addr,
+ version = ngx.var.arg_node_version,
+ }
+
+ local ctx = ngx.ctx
+ ctx.dp = dp
+
+ log_event(ctx, "connect")
+
+ local ws, err = ws_server:new(WS_OPTS)
+
+ if ws then
+ log_event(ctx, "handshake", { ok = true, err = nil })
+ else
+ log_event(ctx, "handshake", { ok = false, err = err })
+ log_event(ctx, "close", { initiator = "cp" })
+ return ngx.exit(ngx.HTTP_CLOSE)
+ end
+
+ ws:set_timeout(500)
+
+ ctx.ws = ws
+ ctx.cancel = false
+ ctx.writer_sema = semaphore.new()
+
+ local reader = ngx.thread.spawn(read_handler, ctx)
+ local writer = ngx.thread.spawn(write_handler, ctx)
+
+ local ok, err_or_result = ngx.thread.wait(reader, writer)
+
+ ctx.cancel = true
+ wake_writer(ctx)
+
+ ws:send_close()
+
+ if ok then
+ local res = err_or_result
+ local thread
+ if res == READER then
+ thread = writer
+
+ elseif res == WRITER then
+ thread = reader
+
+ else
+ error("unreachable!")
+ end
+
+ ngx.thread.wait(thread)
+ ngx.thread.kill(thread)
+
+ else
+ ngx.log(ngx.ERR, "abnormal ngx.thread.wait() status: ", err_or_result)
+ ngx.thread.kill(reader)
+ ngx.thread.kill(writer)
+ end
+
+ log_event(ctx, "exit")
+end
+
+
+function _M.set_payload()
+ ngx.req.read_body()
+
+ local body = ngx.req.get_body_data()
+ if not body then
+ local body_file = ngx.req.get_body_file()
+ if body_file then
+ body = pl_file.read(body_file)
+ end
+ end
+
+ if not body then
+ return bad_request("expected request body")
+ end
+
+ local json, err = cjson.decode(body)
+ if err then
+ return bad_request("invalid JSON: " .. tostring(err))
+ end
+
+ assert(shm:set("payload", cjson.encode(json)))
+ local version = increment_version()
+
+ return send(201, {
+ status = "created",
+ message = "updated payload",
+ version = version,
+ })
+end
+
+function _M.get_log()
+ local entries = {}
+
+ repeat
+ local data = shm:lpop("log")
+ if data then
+ table.insert(entries, buffer.decode(data))
+ end
+ until not data
+
+ send(200, { data = entries })
+end
+
+
+function _M.fixture(listen, listen_ssl)
+ return ([[
+lua_shared_dict kong_test_cp_mock 10m;
+
+server {
+ charset UTF-8;
+ server_name kong_cluster_listener;
+ listen %s;
+ listen %s ssl;
+
+ access_log ${{ADMIN_ACCESS_LOG}};
+ error_log ${{ADMIN_ERROR_LOG}} ${{LOG_LEVEL}};
+
+> if cluster_mtls == "shared" then
+ ssl_verify_client optional_no_ca;
+> else
+ ssl_verify_client on;
+ ssl_client_certificate ${{CLUSTER_CA_CERT}};
+ ssl_verify_depth 4;
+> end
+ ssl_certificate ${{CLUSTER_CERT}};
+ ssl_certificate_key ${{CLUSTER_CERT_KEY}};
+ ssl_session_cache shared:ClusterSSL:10m;
+
+ location = /v1/outlet {
+ content_by_lua_block {
+ require("spec.fixtures.mock_cp").outlet()
+ }
+ }
+
+ location = /payload {
+ content_by_lua_block {
+ require("spec.fixtures.mock_cp").set_payload()
+ }
+ }
+
+ location = /log {
+ content_by_lua_block {
+ require("spec.fixtures.mock_cp").get_log()
+ }
+ }
+}
+]]):format(listen, listen_ssl)
+end
+
+
+return _M
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mock_upstream.lua b/kong-versions/3.8.0/kong/spec/fixtures/mock_upstream.lua
new file mode 100644
index 00000000..0584ae85
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mock_upstream.lua
@@ -0,0 +1,416 @@
+local cjson_safe = require "cjson.safe"
+local cjson = require "cjson"
+local ws_server = require "resty.websocket.server"
+local pl_file = require "pl.file"
+local strip = require("kong.tools.string").strip
+local split = require("kong.tools.string").split
+
+
+local kong = {
+ table = require("kong.pdk.table").new()
+}
+
+local ocsp_status = "good"
+
+local function parse_multipart_form_params(body, content_type)
+ if not content_type then
+ return nil, 'missing content-type'
+ end
+
+ local m, err = ngx.re.match(content_type, "boundary=(.+)", "oj")
+ if not m or not m[1] or err then
+ return nil, "could not find boundary in content type " .. content_type ..
+ "error: " .. tostring(err)
+ end
+
+ local boundary = m[1]
+ local parts_split = split(body, '--' .. boundary)
+ local params = {}
+ local part, from, to, part_value, part_name, part_headers, first_header
+ for i = 1, #parts_split do
+ part = strip(parts_split[i])
+
+ if part ~= '' and part ~= '--' then
+ from, to, err = ngx.re.find(part, '^\\r$', 'ojm')
+ if err or (not from and not to) then
+ return nil, nil, "could not find part body. Error: " .. tostring(err)
+ end
+
+ part_value = part:sub(to + 2, #part) -- +2: trim leading line jump
+ part_headers = part:sub(1, from - 1)
+ first_header = split(part_headers, '\\n')[1]
+ if first_header:lower():sub(1, 19) == "content-disposition" then
+ local m, err = ngx.re.match(first_header, 'name="(.*?)"', "oj")
+
+ if err or not m or not m[1] then
+ return nil, "could not parse part name. Error: " .. tostring(err)
+ end
+
+ part_name = m[1]
+ else
+ return nil, "could not find part name in: " .. part_headers
+ end
+
+ params[part_name] = part_value
+ end
+ end
+
+ return params
+end
+
+
+local function send_text_response(text, content_type, headers)
+ headers = headers or {}
+ content_type = content_type or "text/plain"
+
+ text = ngx.req.get_method() == "HEAD" and "" or tostring(text)
+
+ ngx.header["X-Powered-By"] = "mock_upstream"
+ ngx.header["Server"] = "mock-upstream/1.0.0"
+ ngx.header["Content-Length"] = #text + 1
+ ngx.header["Content-Type"] = content_type
+
+ for header,value in pairs(headers) do
+ if type(value) == "table" then
+ ngx.header[header] = table.concat(value, ", ")
+ else
+ ngx.header[header] = value
+ end
+ end
+
+ return ngx.say(text)
+end
+
+
+local function filter_access_by_method(method)
+ if ngx.req.get_method() ~= method then
+ ngx.status = ngx.HTTP_NOT_ALLOWED
+ send_text_response("Method not allowed for the requested URL")
+ return ngx.exit(ngx.OK)
+ end
+end
+
+
+local function find_http_credentials(authorization_header)
+ if not authorization_header then
+ return
+ end
+
+ local iterator, iter_err = ngx.re.gmatch(authorization_header,
+ "\\s*[Bb]asic\\s*(.+)")
+ if not iterator then
+ ngx.log(ngx.ERR, iter_err)
+ return
+ end
+
+ local m, err = iterator()
+
+ if err then
+ ngx.log(ngx.ERR, err)
+ return
+ end
+
+ if m and m[1] then
+ local decoded_basic = ngx.decode_base64(m[1])
+
+ if decoded_basic then
+ local user_pass = split(decoded_basic, ":")
+ return user_pass[1], user_pass[2]
+ end
+ end
+end
+
+
+local function filter_access_by_basic_auth(expected_username,
+ expected_password)
+ local headers = ngx.req.get_headers(0)
+
+ local username, password =
+ find_http_credentials(headers["proxy-authorization"])
+
+ if not username then
+ username, password =
+ find_http_credentials(headers["authorization"])
+ end
+
+ if username ~= expected_username or password ~= expected_password then
+ ngx.header["WWW-Authenticate"] = "mock_upstream"
+ ngx.header["X-Powered-By"] = "mock_upstream"
+ return ngx.exit(ngx.HTTP_UNAUTHORIZED)
+ end
+end
+
+
+local function get_ngx_vars()
+ local var = ngx.var
+ return {
+ uri = var.uri,
+ host = var.host,
+ hostname = var.hostname,
+ https = var.https,
+ scheme = var.scheme,
+ is_args = var.is_args,
+ server_addr = var.server_addr,
+ server_port = var.server_port,
+ server_name = var.server_name,
+ server_protocol = var.server_protocol,
+ remote_addr = var.remote_addr,
+ remote_port = var.remote_port,
+ realip_remote_addr = var.realip_remote_addr,
+ realip_remote_port = var.realip_remote_port,
+ binary_remote_addr = var.binary_remote_addr,
+ request = var.request,
+ request_uri = var.request_uri,
+ request_time = var.request_time,
+ request_length = var.request_length,
+ request_method = var.request_method,
+ bytes_received = var.bytes_received,
+ ssl_server_name = var.ssl_server_name or "no SNI",
+ }
+end
+
+
+local function get_body_data()
+ local req = ngx.req
+
+ req.read_body()
+ local data = req.get_body_data()
+ if data then
+ return data
+ end
+
+ local file_path = req.get_body_file()
+ if file_path then
+ local file = io.open(file_path, "r")
+ data = file:read("*all")
+ file:close()
+ return data
+ end
+
+ return ""
+end
+
+local function get_post_data(content_type)
+ local text = get_body_data()
+ local kind = "unknown"
+ local params = cjson_safe.null
+ local err
+
+ if type(content_type) == "string" then
+ if content_type:find("application/x-www-form-urlencoded", nil, true) then
+
+ kind = "form"
+ params, err = ngx.req.get_post_args(0)
+
+ elseif content_type:find("multipart/form-data", nil, true) then
+ kind = "multipart-form"
+ params, err = parse_multipart_form_params(text, content_type)
+
+ elseif content_type:find("application/json", nil, true) then
+ kind = "json"
+ params, err = cjson_safe.decode(text)
+ end
+
+ params = params or cjson_safe.null
+
+ if err then
+ kind = kind .. " (error)"
+ err = tostring(err)
+ end
+ end
+
+ return { text = text, kind = kind, params = params, error = err }
+end
+
+
+local function get_default_json_response()
+ local headers = ngx.req.get_headers(0)
+ local vars = get_ngx_vars()
+
+ return {
+ headers = headers,
+ post_data = get_post_data(headers["Content-Type"]),
+ url = ("%s://%s:%s%s"):format(vars.scheme, vars.host,
+ vars.server_port, vars.request_uri),
+ uri_args = ngx.req.get_uri_args(0),
+ vars = vars,
+ }
+end
+
+
+local function send_default_json_response(extra_fields, response_headers)
+ local tbl = kong.table.merge(get_default_json_response(), extra_fields)
+ return send_text_response(cjson.encode(tbl),
+ "application/json", response_headers)
+end
+
+
+local function serve_web_sockets()
+ local wb, err = ws_server:new({
+ timeout = 5000,
+ max_payload_len = 65535,
+ })
+
+ if not wb then
+ ngx.log(ngx.ERR, "failed to open websocket: ", err)
+ return ngx.exit(444)
+ end
+
+ while true do
+ local data, typ, err = wb:recv_frame()
+ if wb.fatal then
+ ngx.log(ngx.ERR, "failed to receive frame: ", err)
+ return ngx.exit(444)
+ end
+
+ if data then
+ if typ == "close" then
+ break
+ end
+
+ if typ == "ping" then
+ local bytes, err = wb:send_pong(data)
+ if not bytes then
+ ngx.log(ngx.ERR, "failed to send pong: ", err)
+ return ngx.exit(444)
+ end
+
+ elseif typ == "pong" then
+ ngx.log(ngx.INFO, "client ponged")
+
+ elseif typ == "text" then
+ local bytes, err = wb:send_text(data)
+ if not bytes then
+ ngx.log(ngx.ERR, "failed to send text: ", err)
+ return ngx.exit(444)
+ end
+ end
+
+ else
+ local bytes, err = wb:send_ping()
+ if not bytes then
+ ngx.log(ngx.ERR, "failed to send ping: ", err)
+ return ngx.exit(444)
+ end
+ end
+ end
+
+ wb:send_close()
+end
+
+
+local function get_logger()
+ local logger = ngx.shared.kong_mock_upstream_loggers
+ if not logger then
+ error("missing 'kong_mock_upstream_loggers' shm declaration")
+ end
+
+ return logger
+end
+
+
+local function store_log(logname)
+ ngx.req.read_body()
+
+ local raw_entries = ngx.req.get_body_data()
+ local logger = get_logger()
+
+ local entries = cjson.decode(raw_entries)
+ if #entries == 0 then
+ -- backwards-compatibility for `conf.queue_size == 1`
+ entries = { entries }
+ end
+
+ local log_req_headers = ngx.req.get_headers(0)
+
+ for i = 1, #entries do
+ local store = {
+ entry = entries[i],
+ log_req_headers = log_req_headers,
+ }
+
+ assert(logger:rpush(logname, cjson.encode(store)))
+ assert(logger:incr(logname .. "|count", 1, 0))
+ end
+
+ ngx.status = 200
+end
+
+
+local function retrieve_log(logname)
+ local logger = get_logger()
+ local len = logger:llen(logname)
+ local entries = {}
+
+ for i = 1, len do
+ local encoded_stored = assert(logger:lpop(logname))
+ local stored = cjson.decode(encoded_stored)
+ entries[i] = stored.entry
+ entries[i].log_req_headers = stored.log_req_headers
+ assert(logger:rpush(logname, encoded_stored))
+ end
+
+ local count, err = logger:get(logname .. "|count")
+ if err then
+ error(err)
+ end
+
+ ngx.status = 200
+ ngx.say(cjson.encode({
+ entries = entries,
+ count = count,
+ }))
+end
+
+
+local function count_log(logname)
+ local logger = get_logger()
+ local count = assert(logger:get(logname .. "|count"))
+
+ ngx.status = 200
+ ngx.say(count)
+end
+
+
+local function reset_log(logname)
+ local logger = get_logger()
+ logger:delete(logname)
+ logger:delete(logname .. "|count")
+end
+
+
+local function handle_ocsp()
+ if ocsp_status == "good" then
+ ngx.print(pl_file.read(ngx.config.prefix() .. "/../spec/fixtures/ocsp_certs/resp-good.dat"))
+
+ elseif ocsp_status == "revoked" then
+ ngx.print(pl_file.read(ngx.config.prefix() .. "/../spec/fixtures/ocsp_certs/resp-revoked.dat"))
+
+ elseif ocsp_status == "error" then
+ ngx.exit(500)
+
+ else
+ assert("unknown ocsp_status:" ..ocsp_status)
+ end
+end
+
+
+local function set_ocsp(status)
+ ocsp_status = status
+end
+
+
+return {
+ get_default_json_response = get_default_json_response,
+ filter_access_by_method = filter_access_by_method,
+ filter_access_by_basic_auth = filter_access_by_basic_auth,
+ send_text_response = send_text_response,
+ send_default_json_response = send_default_json_response,
+ serve_web_sockets = serve_web_sockets,
+ store_log = store_log,
+ retrieve_log = retrieve_log,
+ count_log = count_log,
+ reset_log = reset_log,
+ handle_ocsp = handle_ocsp,
+ set_ocsp = set_ocsp,
+}
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mock_webserver_tpl.lua b/kong-versions/3.8.0/kong/spec/fixtures/mock_webserver_tpl.lua
new file mode 100644
index 00000000..87ebbf16
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mock_webserver_tpl.lua
@@ -0,0 +1,260 @@
+return [[daemon on;
+worker_processes ${worker_num};
+error_log ${base_path}/${logs_dir}/error.log info;
+pid ${base_path}/${logs_dir}/nginx.pid;
+worker_rlimit_nofile 8192;
+
+events {
+ worker_connections 1024;
+}
+
+http {
+ lua_shared_dict server_values 512k;
+ lua_shared_dict logs 512k;
+ lua_shared_dict log_locks 512k;
+
+ init_worker_by_lua_block {
+ local resty_lock = require "resty.lock"
+ _G.log_locks = resty_lock:new("log_locks")
+
+ _G.log_record = function(ngx_req)
+ local cjson = require("cjson")
+ local args, err = ngx_req.get_uri_args(0)
+ local key = args['key'] or "default"
+ local log_locks = _G.log_locks
+
+ if err then
+ return ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
+ end
+
+ log_locks:lock("lock")
+
+ local logs = ngx.shared.logs:get(key) or "[]"
+
+ if not args['do_not_log'] then
+ local log = {
+ time = ngx.now(),
+ -- path = "/log",
+ method = ngx_req.get_method(),
+ headers = ngx_req.get_headers(0),
+ }
+
+ logs = cjson.decode(logs)
+ table.insert(logs, log)
+ logs = cjson.encode(logs)
+ ngx.shared.logs:set(key, logs)
+ end
+
+ log_locks:unlock()
+
+ return logs
+ end
+
+ local server_values = ngx.shared.server_values
+# for _, prefix in ipairs(hosts) do
+ if server_values:get("$(prefix)_healthy") == nil then
+ server_values:set("$(prefix)_healthy", true)
+ ngx.log(ngx.INFO, "Creating entries for $(prefix)_healthy")
+ end
+
+ if server_values:get("$(prefix)_timeout") == nil then
+ server_values:set("$(prefix)_timeout", false)
+ ngx.log(ngx.INFO, "Creating entries for $(prefix)_timeout")
+ end
+# end
+ }
+
+ default_type application/json;
+ access_log ${base_path}/${logs_dir}/access.log;
+ sendfile on;
+ tcp_nopush on;
+ server_names_hash_bucket_size 128;
+
+ server {
+# if protocol ~= 'https' then
+ listen 127.0.0.1:${http_port};
+# if not disable_ipv6 then
+ listen [::1]:${http_port};
+#end
+# else
+ listen 127.0.0.1:${http_port} ssl;
+# if not disable_ipv6 then
+ listen [::1]:${http_port} ssl;
+#end
+ http2 on;
+
+ ssl_certificate ${cert_path}/kong_spec.crt;
+ ssl_certificate_key ${cert_path}/kong_spec.key;
+ ssl_protocols TLSv1.2;
+ ssl_ciphers HIGH:!aNULL:!MD5;
+#end
+# if check_hostname then
+ server_name ${host};
+#end
+
+ location = /clear_log {
+ content_by_lua_block {
+ local log_locks = _G.log_locks
+ log_locks:lock("lock")
+ ngx.shared.logs:flush_all()
+ log_locks:unlock()
+ ngx.say("cleared")
+ }
+ }
+
+ location = /log {
+ content_by_lua_block {
+ ngx.say(_G.log_record(ngx.req))
+ }
+ }
+
+ location = /always_200 {
+ content_by_lua_block {
+ ngx.say("ok")
+ return ngx.exit(ngx.HTTP_OK)
+ }
+ }
+
+ location = /healthy {
+ access_by_lua_block {
+ local host = ngx.req.get_headers(0)["host"] or "localhost"
+ local host_no_port = ngx.re.match(host, [=[([a-z0-9\-._~%!$&'()*+,;=]+@)?([a-z0-9\-._~%]+|\[[a-z0-9\-._~%!$&'()*+,;=:]+\])(:?[0-9]+)*]=])
+ if host_no_port == nil then
+ return ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
+ else
+ host = host_no_port[2]
+ if host == "[0000:0000:0000:0000:0000:0000:0000:0001]" then
+ host = "[::1]"
+ end
+ end
+ ngx.shared.server_values:set(host .. "_healthy", true)
+ ngx.shared.server_values:set(host .. "_timeout", false)
+ ngx.log(ngx.INFO, "Host ", host, " is now healthy")
+ }
+
+ content_by_lua_block {
+ ngx.say("server ", ngx.var.server_name, " is now healthy")
+ return ngx.exit(ngx.HTTP_OK)
+ }
+ }
+
+ location = /unhealthy {
+ access_by_lua_block {
+ local host = ngx.req.get_headers(0)["host"] or "localhost"
+ local host_no_port = ngx.re.match(host, [=[([a-z0-9\-._~%!$&'()*+,;=]+@)?([a-z0-9\-._~%]+|\[[a-z0-9\-._~%!$&'()*+,;=:]+\])(:?[0-9]+)*]=])
+ if host_no_port == nil then
+ return ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
+ else
+ host = host_no_port[2]
+ if host == "[0000:0000:0000:0000:0000:0000:0000:0001]" then
+ host = "[::1]"
+ end
+ end
+ ngx.shared.server_values:set(host .. "_healthy", false)
+ ngx.log(ngx.INFO, "Host ", host, " is now unhealthy")
+ }
+
+ content_by_lua_block {
+ ngx.say("server ", ngx.var.server_name, " is now unhealthy")
+ return ngx.exit(ngx.HTTP_OK)
+ }
+ }
+
+ location = /timeout {
+ access_by_lua_block {
+ local host = ngx.req.get_headers()["host"] or "localhost"
+ local host_no_port = ngx.re.match(host, [=[([a-z0-9\-._~%!$&'()*+,;=]+@)?([a-z0-9\-._~%]+|\[[a-z0-9\-._~%!$&'()*+,;=:]+\])(:?[0-9]+)*]=])
+ if host_no_port == nil then
+ return ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
+ else
+ host = host_no_port[2]
+ if host == "[0000:0000:0000:0000:0000:0000:0000:0001]" then
+ host = "[::1]"
+ end
+ end
+ ngx.shared.server_values:set(host .. "_timeout", true)
+ ngx.log(ngx.INFO, "Host ", host, " is timeouting now")
+ }
+
+ content_by_lua_block {
+ ngx.say("server ", ngx.var.server_name, " is timeouting now")
+ return ngx.exit(ngx.HTTP_OK)
+ }
+ }
+
+ location = /status {
+ access_by_lua_block {
+ _G.log_record(ngx.req)
+ local i = require 'inspect'
+ ngx.log(ngx.ERR, "INSPECT status (headers): ", i(ngx.req.get_headers(0)))
+ local host = ngx.req.get_headers(0)["host"] or "localhost"
+ local host_no_port = ngx.re.match(host, [=[([a-z0-9\-._~%!$&'()*+,;=]+@)?([a-z0-9\-._~%]+|\[[a-z0-9\-._~%!$&'()*+,;=:]+\])(:?[0-9]+)*]=])
+ if host_no_port == nil then
+ return ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
+ else
+ host = host_no_port[2]
+ if host == "[0000:0000:0000:0000:0000:0000:0000:0001]" then
+ host = "[::1]"
+ end
+ end
+ local server_values = ngx.shared.server_values
+
+ local status = server_values:get(host .. "_healthy") and
+ ngx.HTTP_OK or ngx.HTTP_INTERNAL_SERVER_ERROR
+
+ if server_values:get(host .. "_timeout") == true then
+ ngx.log(ngx.INFO, "Host ", host, " timeouting...")
+ ngx.log(ngx.INFO, "[COUNT] status 599")
+ ngx.sleep(4)
+ else
+ ngx.log(ngx.INFO, "[COUNT] status ", status)
+ end
+
+ ngx.exit(status)
+ }
+ }
+
+ location / {
+ access_by_lua_block {
+ _G.log_record(ngx.req)
+ local cjson = require("cjson")
+ local server_values = ngx.shared.server_values
+ local host = ngx.req.get_headers(0)["host"] or "localhost"
+ local host_no_port = ngx.re.match(host, [=[([a-z0-9\-._~%!$&'()*+,;=]+@)?([a-z0-9\-._~%]+|\[[a-z0-9\-._~%!$&'()*+,;=:]+\])(:?[0-9]+)*]=])
+ if host_no_port == nil then
+ return ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
+ else
+ host = host_no_port[2]
+ if host == "[0000:0000:0000:0000:0000:0000:0000:0001]" then
+ host = "[::1]"
+ end
+ end
+ local status
+
+ local status = server_values:get(host .. "_healthy") and
+ ngx.HTTP_OK or ngx.HTTP_INTERNAL_SERVER_ERROR
+
+ if server_values:get(host .. "_timeout") == true then
+ -- not this status actually, but it is used to count failures
+ ngx.log(ngx.INFO, "[COUNT] slash 599")
+ ngx.sleep(4)
+ else
+ ngx.log(ngx.INFO, "[COUNT] slash ", status)
+ end
+
+ ngx.sleep(${delay}/1000)
+ ngx.exit(status)
+ }
+ }
+ }
+# if check_hostname then
+ server {
+ listen 127.0.0.1:${http_port} default_server;
+ listen [::1]:${http_port} default_server;
+ server_name _;
+ return 400;
+ }
+# end
+
+}
+]]
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mocker.lua b/kong-versions/3.8.0/kong/spec/fixtures/mocker.lua
new file mode 100644
index 00000000..1116a4e2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mocker.lua
@@ -0,0 +1,61 @@
+local mocker = {}
+
+-- Setup mocks, which are undone in a finally() block
+-- @param finally The `finally` function, that needs to be passed in because
+-- Busted generates it dynamically.
+-- @param args A table containing three optional fields:
+-- * modules: an array of pairs (module name, module content).
+-- This allows modules to be declared in order.
+-- * kong: a mock of the kong global (which will fallback to the default one
+-- via metatable)
+-- * ngx: a mock of the ngx global (which will fallback to the default one
+-- via metatable)
+function mocker.setup(finally, args)
+
+ local mocked_modules = {}
+ local _ngx = _G.ngx
+ local _kong = _G.kong
+
+ local function mock_module(name, tbl)
+ local old_module = require(name)
+ mocked_modules[name] = true
+ package.loaded[name] = setmetatable(tbl or {}, {
+ __index = old_module,
+ })
+ end
+
+ if args.ngx then
+ _G.ngx = setmetatable(args.ngx, { __index = _ngx })
+ end
+
+ if args.kong then
+ _G.kong = setmetatable(args.kong, { __index = _kong })
+ end
+
+ if args.modules then
+ for _, pair in ipairs(args.modules) do
+ mock_module(pair[1], pair[2])
+ end
+ end
+
+ finally(function()
+ _G.ngx = _ngx
+ _G.kong = _kong
+
+ for k in pairs(mocked_modules) do
+ package.loaded[k] = nil
+ end
+ end)
+end
+
+
+function mocker.table_where_every_key_returns(value)
+ return setmetatable({}, {
+ __index = function()
+ return value
+ end
+ })
+end
+
+
+return mocker
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mocks/lua-resty-dns/resty/dns/resolver.lua b/kong-versions/3.8.0/kong/spec/fixtures/mocks/lua-resty-dns/resty/dns/resolver.lua
new file mode 100644
index 00000000..cc59178f
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mocks/lua-resty-dns/resty/dns/resolver.lua
@@ -0,0 +1,122 @@
+-- Mock for the underlying 'resty.dns.resolver' library
+-- (so NOT the Kong dns client)
+
+-- this file should be in the Kong working directory (prefix)
+local MOCK_RECORD_FILENAME = "dns_mock_records.json"
+
+
+local LOG_PREFIX = "[mock_dns_resolver] "
+local cjson = require "cjson.safe"
+
+-- first thing is to get the original (non-mock) resolver
+local resolver
+do
+ local function get_source_path()
+ -- find script path remember to strip off the starting @
+ -- should be like: 'spec/fixtures/mocks/lua-resty-dns/resty/dns/resolver.lua'
+ return debug.getinfo(2, "S").source:sub(2) --only works in a function, hence the wrapper
+ end
+ local path = get_source_path()
+
+ -- module part is like: 'resty.dns.resolver'
+ local module_part = select(1,...)
+
+ -- create the packagepath part, like: 'spec/fixtures/mocks/lua-resty-dns/?.lua'
+ path = path:gsub(module_part:gsub("%.", "/"), "?") .. ";" -- prefix path, so semi-colon at end
+
+ -- grab current paths
+ local old_paths = package.path
+
+ -- drop the element that picked this mock from the path
+ local s, e = old_paths:find(path, 1, true)
+ package.path = old_paths:sub(1, s-1) .. old_paths:sub(e + 1, -1)
+
+ -- With the mock out of the path, require the module again to get the original.
+ -- Problem is that package.loaded contains a userdata now, because we're in
+ -- the middle of loading that same module name. So swap it.
+ local swap
+ swap, package.loaded[module_part] = package.loaded[module_part], nil
+ resolver = require(module_part)
+ package.loaded[module_part] = swap
+
+ -- restore the package path
+ package.path = old_paths
+end
+
+
+-- load and cache the mock-records
+local get_mock_records
+do
+ local mock_file
+ get_mock_records = function()
+ if mock_file then
+ return mock_file.records, mock_file.mocks_only
+ end
+
+ local is_file = require("pl.path").isfile
+ local prefix = ((kong or {}).configuration or {}).prefix
+ if not prefix then
+ -- we might be invoked before the Kong config was loaded, so exit early
+ -- and do not set _mock_records yet.
+ return {}
+ end
+
+ local filename = prefix .. "/" .. MOCK_RECORD_FILENAME
+
+ mock_file = {}
+ if not is_file(filename) then
+ -- no mock records set up, return empty default
+ ngx.log(ngx.DEBUG, LOG_PREFIX, "bypassing mock, no mock records found")
+ return mock_file
+ end
+
+ -- there is a file with mock records available, go load it
+ local f = assert(io.open(filename))
+ local json_file = assert(f:read("*a"))
+ f:close()
+
+ mock_file = assert(cjson.decode(json_file))
+ return mock_file.records, mock_file.mocks_only
+ end
+end
+
+
+-- patch the actual query method
+local old_query = resolver.query
+resolver.query = function(self, name, options, tries)
+ local mock_records, mocks_only = get_mock_records()
+ local qtype = (options or {}).qtype or resolver.TYPE_A
+
+ local answer = (mock_records[qtype] or {})[name]
+ if answer then
+ -- we actually have a mock answer, return it
+ ngx.log(ngx.DEBUG, LOG_PREFIX, "serving '", name, "' from mocks")
+ return answer, nil, tries
+ end
+
+ if not mocks_only then
+ -- No mock, so invoke original resolver. Note that if the original resolver fails (i.e. because an
+ -- invalid domain name like example.com was used), we return an empty result set instead of passing
+ -- the error up to the caller. This is done so that if the mock contains "A" records (which would
+ -- be the most common case), the initial query for a SRV record does not fail, but appear not to have
+ -- yielded any results. This will make dns/client.lua try finding an A record next.
+ local records, err, tries = old_query(self, name, options, tries)
+ if records then
+ return records, err, tries
+ end
+ end
+
+ return {}, nil, tries
+end
+
+-- do
+-- local semaphore = require "ngx.semaphore"
+-- local old_post = semaphore.post
+-- function semaphore.post(self, n)
+-- old_post(self, n)
+-- ngx.sleep(0)
+-- end
+-- end
+
+
+return resolver
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mocks/lua-resty-websocket/resty/websocket/peer.lua b/kong-versions/3.8.0/kong/spec/fixtures/mocks/lua-resty-websocket/resty/websocket/peer.lua
new file mode 100644
index 00000000..2f42c587
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mocks/lua-resty-websocket/resty/websocket/peer.lua
@@ -0,0 +1,143 @@
+local semaphore = require "ngx.semaphore"
+local semaphore_new = semaphore.new
+
+local remove = table.remove
+local insert = table.insert
+
+-- buffer
+local recv_buf = {}
+local recv_buf_mt = { __index = recv_buf }
+
+local default_timeout = 5
+
+function recv_buf.new()
+ return setmetatable({ smph = semaphore_new() }, recv_buf_mt)
+end
+
+function recv_buf:push(obj)
+ insert(self, obj)
+ if #self == 1 then
+ self.smph:post()
+ end
+
+ return true
+end
+
+function recv_buf:pop_no_wait()
+ return remove(self)
+end
+
+function recv_buf:pop(timeout)
+ if #self == 0 then
+ local ok, err = self.smph:wait(timeout or default_timeout)
+ if not ok then
+ return nil, err
+ end
+ end
+
+ return remove(self)
+end
+
+-- end buffer
+
+local unpack = unpack
+
+local _M = {}
+local mt = { __index = _M }
+
+local empty = {}
+
+-- we ignore mask problems and most of error handling
+
+function _M:new(opts)
+ opts = opts or empty
+
+ local new_peer = setmetatable({
+ timeout = opts.timeout,
+ buf = recv_buf.new(),
+ }, mt)
+
+ return new_peer
+end
+
+function _M:set_timeout(time)
+ self.timeout = time
+ return true
+end
+
+local types = {
+ [0x0] = "continuation",
+ [0x1] = "text",
+ [0x2] = "binary",
+ [0x8] = "close",
+ [0x9] = "ping",
+ [0xa] = "pong",
+}
+
+function _M:translate_frame(fin, op, payload)
+ payload = payload or ""
+ local payload_len = #payload
+ op = types[op]
+ if op == "close" then
+ -- being a close frame
+ if payload_len > 0 then
+ return payload[2], "close", payload[1]
+ end
+
+ return "", "close", nil
+ end
+
+ return payload, op, not fin and "again" or nil
+end
+
+function _M:recv_frame()
+ local buf = self.buf
+ local obj, err = buf:pop(self.timeout)
+ if not obj then
+ return nil, nil, err
+ end
+
+ return self:translate_frame(unpack(obj)) -- data, typ, err
+end
+
+local function send_frame(self, fin, op, payload)
+ local message = { fin, op, payload }
+
+ return self.peer.buf:push(message)
+end
+
+_M.send_frame = send_frame
+
+function _M:send_text(data)
+ return self:send_frame(true, 0x1, data)
+end
+
+function _M:send_binary(data)
+ return self:send_frame(true, 0x2, data)
+end
+
+function _M:send_close(code, msg)
+ local payload
+ if code then
+ payload = {code, msg}
+ end
+ return self:send_frame(true, 0x8, payload)
+end
+
+function _M:send_ping(data)
+ return self:send_frame(true, 0x9, data)
+end
+
+function _M:send_pong(data)
+ return self:send_frame(true, 0xa, data)
+end
+
+-- for clients
+function _M.connect()
+end
+function _M.set_keepalive()
+end
+function _M.close()
+end
+
+return _M
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/ca.crt b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/ca.crt
new file mode 100644
index 00000000..6b5555eb
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/ca.crt
@@ -0,0 +1,33 @@
+-----BEGIN CERTIFICATE-----
+MIIFoTCCA4mgAwIBAgIUQDBLwIychoRbVRO44IzBBk9R4oYwDQYJKoZIhvcNAQEL
+BQAwWDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExFTATBgNVBAoM
+DEtvbmcgVGVzdGluZzEdMBsGA1UEAwwUS29uZyBUZXN0aW5nIFJvb3QgQ0EwHhcN
+MTkwNTAyMTkzNDQyWhcNMzkwNDI3MTkzNDQyWjBYMQswCQYDVQQGEwJVUzETMBEG
+A1UECAwKQ2FsaWZvcm5pYTEVMBMGA1UECgwMS29uZyBUZXN0aW5nMR0wGwYDVQQD
+DBRLb25nIFRlc3RpbmcgUm9vdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCC
+AgoCggIBAMp6IggUp3aSNRbLAac8oOkrbUnFuxtlKGYgg8vfA2UU71qTktigdwO6
+Kod0/M+daO3RDqJJXQL2rD14NDO3MaextICanoQSEe+nYyMFUIk+QplXLD3fbshU
+nHoJcMS2w0x4cm1os4ebxR2Evndo6luz39ivcjau+BL+9iBAYL1g6+eGOjcSy7ft
+1nAMvbxcQ7dmbAH2KP6OmF8cok+eQWVqXEjqtVx5GDMDlj1BjX6Kulmh/vhNi3Hr
+NEi+kPrw/YtRgnqnN0sv3NnAyKnantxy7w0TDicFjiBsSIhjB5aUfWYErBR+Nj/m
+uumwc/kRJcHWklqDzxrZKCIyOyWcE5Dyjjr46cnF8HxhYwgZcwkmgTtaXOLpBMlo
+XUTgOQrWpm9HYg2vOJMMA/ZPUJ2tJ34/4RgiA00EJ5xG8r24suZmT775l+XFLFzp
+Ihxvs3BMbrWsXlcZkI5neNk7Q/1jLoBhWeTYjMpUS7bJ/49YVGQZFs3xu2IcLqeD
+5WsB1i+EqBAI0jm4vWEynsyX+kS2BqAiDtCsS6WYT2q00DTeP5eIHh/vHsm75jJ+
+yUEb1xFxGnNevLKNTcHUeXxPUnowdC6wqFnaJm7l09qVGDom7tLX9i6MCojgpAP0
+hMpBxzh8jLxHh+zZQdiORSFdYxNnlnWwbic2GUJruiQVLuhpseenAgMBAAGjYzBh
+MB0GA1UdDgQWBBQHT/IIheEC2kdBxI/TfGqUxWJw9zAfBgNVHSMEGDAWgBQHT/II
+heEC2kdBxI/TfGqUxWJw9zAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB
+hjANBgkqhkiG9w0BAQsFAAOCAgEAqXZjy4EltJCRtBmN0ohAHPWqH4ZJQCI2HrM3
+wHB6c4oPWcJ+M2PfmYPUJo9VMjvn4S3sZuAysyoHduvRdGDnElW4wglL1xxpoUOx
+FqoZUoYWV8hDFmUTWM5b4CtJxOPdTAd8VgypulM3iUEzBQrjR6tnMOdkiFMOmVag
+0/Nnr+Tcfk/crMCx3xsVnisYjJoQBFBH4UY+gWE/V/MS1Sya4/qTbuuCUq+Qym5P
+r8TkWAJlg7iVVLbZ2j94VUdpiQPWJEGMtJck/NEmOTruhhQlT7c1u/lqXCGj7uci
+LmhLsBVmdtWT9AWS8Rl7Qo5GXbjxKIaP3IM9axhDLm8WHwPRLx7DuIFEc+OBxJhz
+wkr0g0yLS0AMZpaC6UGbWX01ed10U01mQ/qPU5uZiB0GvruwsYWZsyL1QXUeqLz3
+/KKrx3XsXjtBu3ZG4LAnwuxfeZCNw9ofg8CqF9c20ko+7tZAv6DCu9UL+2oZnEyQ
+CboRDwpnAlQ7qJVSp2xMgunO3xxVMlhD5LZpEJz1lRT0nQV3uuLpMYNM4FS9OW/X
+MZSzwHhDdCTDWtc/iRszimOnYYV8Y0ubJcb59uhwcsHmdfnwL9DVO6X5xyzb8wsf
+wWaPbub8SN2jKnT0g6ZWuca4VwEo1fRaBkzSZDqXwhkBDWP8UBqLXMXWHdZaT8NK
+0NEO74c=
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/ca.key b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/ca.key
new file mode 100644
index 00000000..22f7391c
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/ca.key
@@ -0,0 +1,51 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIJKAIBAAKCAgEAynoiCBSndpI1FssBpzyg6SttScW7G2UoZiCDy98DZRTvWpOS
+2KB3A7oqh3T8z51o7dEOokldAvasPXg0M7cxp7G0gJqehBIR76djIwVQiT5CmVcs
+Pd9uyFSceglwxLbDTHhybWizh5vFHYS+d2jqW7Pf2K9yNq74Ev72IEBgvWDr54Y6
+NxLLt+3WcAy9vFxDt2ZsAfYo/o6YXxyiT55BZWpcSOq1XHkYMwOWPUGNfoq6WaH+
++E2Lces0SL6Q+vD9i1GCeqc3Sy/c2cDIqdqe3HLvDRMOJwWOIGxIiGMHlpR9ZgSs
+FH42P+a66bBz+RElwdaSWoPPGtkoIjI7JZwTkPKOOvjpycXwfGFjCBlzCSaBO1pc
+4ukEyWhdROA5Ctamb0diDa84kwwD9k9Qna0nfj/hGCIDTQQnnEbyvbiy5mZPvvmX
+5cUsXOkiHG+zcExutaxeVxmQjmd42TtD/WMugGFZ5NiMylRLtsn/j1hUZBkWzfG7
+Yhwup4PlawHWL4SoEAjSObi9YTKezJf6RLYGoCIO0KxLpZhParTQNN4/l4geH+8e
+ybvmMn7JQRvXEXEac168so1NwdR5fE9SejB0LrCoWdombuXT2pUYOibu0tf2LowK
+iOCkA/SEykHHOHyMvEeH7NlB2I5FIV1jE2eWdbBuJzYZQmu6JBUu6Gmx56cCAwEA
+AQKCAgBh8MQHbp42r7B4bwhEsgIP5868kaXZMYxiIjY+ZojI22CQSrQMj0oihmnO
+Dhu//Z9k8ewHOj+AkHtuXHe70FB3knECiEhHEEqWxzwgE5EKYhBrBgzDfRGkW7E5
+ItnmfZVopxaKr8uvu/yUM8LCFgDPDOopcWxo4SfkYGoD3cAtuvVBj98XBsN+G9DP
+cIpS07p5u1RheoYH5Ef2Me6dXqq5eMJdDxNdQMIg4wpIZS4hWM+dTcv8pd3e4+vt
+iCivCeVK/8mCtOH9P5Cv0B4Ac1zGu93AUEhXPcurCVXoiyZ/gyJJN9dZLlflfyFI
+qu7eOpot8jHnEL0cepB8Qhn0LlQTuv6rjJqmnl3tJA3S6rcM/mOjihkk1uo7JdDK
+vH498XR5qZPDlXZ8PVu3nI5EgXpmFIcCBuuVFS5QI63NZ32YqoGYXK37K7C9lQsL
+L/iR+YpwuQqDmM+UEETjBCIMKvxghFH0ICR041yg9tkjRhNKCAGc6n70wQDUq57s
+jjZmTQ4ZydxCsWVjLo7fCcoyQ9B7IUGPUUn8WavPUwtz1kG6VK7RDGa0KtgCD0vc
+iEwbWi9uwkZdoZdHcB8qLgCPjMGgRJLOyJ67xQ0RP+r+WkhUAjYcaucFonyyBhtv
+OrqNyEM3SEpgrzgttyyg+dP/cDvPbp4NXoxKAMyd8c7mjPploQKCAQEA+BL/qxLe
+LTKwe3TKpjAeyTB2iOxoWjtCqe3/xKbTS32Tn/VGwqhXyNeh+FTRhQu7fg5iL2C2
+JCOdYXWxRYIBwUh4HfApkgYzznUAU2vOh653MzW6LsOtDdgYF2cijN1ZFcbRTGpw
+eoA6U/cijuglwpTHF7zmRd9rSsv+PZ/fTDgY82MOdeaOUwyKuVyPUpNWfqSwxPd9
+tWEdOYjgq1llPbl1mktR0gYHIdHcSr1By7kmFw3/TQuic5Nm+FDidtfJYO36xFI1
+/CfwGVYeH42iul+KzdlITLAMRm2PAcWFjvxpw78T+xeUNpZlnZSgCIjtpfjywmXb
+uQvJoMMEX5PN1wKCAQEA0PIx4sgXiwqASa/foBB0Tk5jG3QWxucpqnLJURZeRqLQ
+BmF4WRrjs5V2y6iizegIcNmL0ZfwFBU79HwtAgFiTELLQL2xivhpMVjXL7QHeE4r
+A/9+49iO8wu8W/hwKxCDdGqXKyCKtW9b1yfUVB09j29GtApcV9v8KCTmDwYGrHI0
+DcEMtNLUbJvUeWFYFadJNFKxbsBtJPJIrYaiIyv2sL+Y3tZrYES72tTAYhMFwd0r
+9ooL5Ufrpuh4pHOxxA0Sh0EVUhNmyoq/ZJZ5wia+WB5NXBSD9JbciC5M4J8BMl/u
+Bx5RZbJSoAktYiOzev//6NHUmXsDjg3Kh9P48JVasQKCAQBVjt/k1bYQ6pmZirdV
+x+TmSLOpF7gJ3sRoLTB4V30qXR4sHgEQo9Ta7RvstPwqIdjBah6M7pMDNdFSyq+g
+JG2Mhvz+flUoCsGVZB7/pn/tpctwuwgClvQ5gR0V/TkaUkEmVJLdAxzV8yGq0eJ2
+XTSgvoVH95uH3712Z5LBGEGAXRyl3LUhDqpplDrIIVdBCJXdSdm5pQ4TH3Jf5Ihw
+MH3NYwhfdbi7cd7F2EZc9Jcbtzie3PH/VZLqv5zU6bihelz29Dz3ts7tr6yMYHo1
+Mbk9BDSwOE9KO7GQHLskxkYBAadMnrs6b3Brv0U+qwLizq7//jNjvpOgZ6Nbscbx
+W92zAoIBAQCNCK17cavSgggNtNSw6epXYLmssjMdlrKdBlW0kfCYpRTc+bWOD4Ra
+lyxUU0Nw0InCAlVJ59B4/cw2PgrzK5P5/avLyz6nmv0F/f1hiZbxMXH/hNlVWbtD
+ekxtl8e+iarxTXEz/wchaEUJeSzsicAfrPCAXe3ur+IIBr/yrBKdG4jfL8sv0o7n
+sFc+huI522yiEJ8LLn99TLyZxCJ0sxwUOX8qCnj3xe02zBv/Fu/v5yXhh1R4Mo9x
+XcDw39bBikFTYi7N86KSXAzMDHWrAxO/ztRQrthSo/G/SeFCTJE2O2IjE+fFSRRU
+SV2EvKxM/bbyo49o+YtwuwZVoFKLsYRBAoIBADaL9sx49XTHIIFGqEQP7NLEhs7D
+eJgSKP5oQ54J0iaoVpsoxng8DrTBkMVW75hiWzTW75EJnMXrauo/YfAbvsMM//3e
+BfRWvYpS5xKcHmXg2QJxy2VpvElHLg5Y2lligEZhO+5Sm2OG/hixBmiFvEvxPEB8
+8YIvYKcRAGA/HgDY9hGWSNsBP7qDXWP5kRm8qnB6zn33TVZMsXwUv6TP0cwsBKf7
+XDbnPBpOQK9nicehY7oscy9yTB9Q3bUHecYLY822ueCwaJgwJWFUH+Xe4u6xIH5l
+A/IyIfyOqxjUc34Me+37ehNmbTIxZ1BqLddppm9QsSAD7cDMurfb3pRpju4=
+-----END RSA PRIVATE KEY-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example.com.crt b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example.com.crt
new file mode 100644
index 00000000..8a3257f9
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example.com.crt
@@ -0,0 +1,63 @@
+-----BEGIN CERTIFICATE-----
+MIIFTDCCAzSgAwIBAgICIAAwDQYJKoZIhvcNAQELBQAwYDELMAkGA1UEBhMCVVMx
+EzARBgNVBAgMCkNhbGlmb3JuaWExFTATBgNVBAoMDEtvbmcgVGVzdGluZzElMCMG
+A1UEAwwcS29uZyBUZXN0aW5nIEludGVybWlkaWF0ZSBDQTAeFw0xOTA1MDIxOTU1
+MjFaFw0yOTA0MjgxOTU1MjFaME8xCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxp
+Zm9ybmlhMRUwEwYDVQQKDAxLb25nIFRlc3RpbmcxFDASBgNVBAMMC2V4YW1wbGUu
+Y29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqCozbPPts2H7CsUf
+4KlyKwbCOjqUa7ZhBcXfX5KuEHOvAUZfJOlm2TCNbO1wMTI1QHwjn6a9HM1njhBG
+4r9HH8CLckF83b247iJQbqUEjjvbb6DMTxjbC7dBunIikv6gUXeWGlRHupy/UEh8
+K0Y2KM2fm+HEbKI6zvjg/wb7zb0agzNaKV6fyEourKL0Xjz8ePm3kH58HaUmqhfk
+PPf7GnGW1xk/aIm6tsi9wzj2VBI/T3E5hVnMGrJTYnXh5DoFQrbuLvWtOB6MdZcM
+BWN/he8ISvvhKrctjWvUjpWgoZE9bRoMxkzxpHF/agM++WlHJrJ7my3yRHN3LspF
+4ER+/QIDAQABo4IBHzCCARswCQYDVR0TBAIwADARBglghkgBhvhCAQEEBAMCBkAw
+MwYJYIZIAYb4QgENBCYWJE9wZW5TU0wgR2VuZXJhdGVkIFNlcnZlciBDZXJ0aWZp
+Y2F0ZTAdBgNVHQ4EFgQUlpSl7QvKjdvJLx/sI3CXST3SqwowgYEGA1UdIwR6MHiA
+FAsOBA6X+G1iTyTwO8Zv0go7jRERoVykWjBYMQswCQYDVQQGEwJVUzETMBEGA1UE
+CAwKQ2FsaWZvcm5pYTEVMBMGA1UECgwMS29uZyBUZXN0aW5nMR0wGwYDVQQDDBRL
+b25nIFRlc3RpbmcgUm9vdCBDQYICEAAwDgYDVR0PAQH/BAQDAgWgMBMGA1UdJQQM
+MAoGCCsGAQUFBwMBMA0GCSqGSIb3DQEBCwUAA4ICAQA6kfAONRKeg0ygcyY8OwVi
+y9SGPKnKtOGjF2BSk74UF3bj63kx7utIQ0w5LZA3CwjcE2VzdPx+lQEDy/dbv442
+2bWrc7kG0/Dcr92KoUbzuuI0kPRoM/4rcOb8shKG9txFL1j44a60SWlbvkoNUD88
+vKZy2uSJ++OeQ7vuxrt2UDsfO2jRk74p/ztQibTX/cpwjvHrz2JcLTSxUZXK342x
+o7bWl1f7XMn8o7nPtNWHZq418uwFJ6OZO/rLc+FxE+31SnHYJUYC6/TSAg9kGomk
+Ws+K453QVoiPsG08Uz1JRjUQWotlEmqFAwax3kmfnrsiKmKy451CcwVAlyEIvnSb
+s2hEePHUaJltsatvFNPLnjcsOtqA46zJN0mv63BKuoa9fWAYr81D8wilcPgx534j
+KQcSv24cAoWesp/KhERK5G+F5mE0qnlCfMpFJFtfMjh+CDLbR//L4/0KQrSS/eRn
+ooeXinTpO5S2WOxk0W96rZMsBL2rBUI2qhfjBW8aQAiew4cMtddxryyUKskDlJPx
+bZXB2OmPibOOOTrTrBFkQ+tjKCuPKbOQDsIPTasZQKc2jK0boixXE8AXhN/A+3J4
+muvYnypmWGb0jMLEQT2u+RQzCNDjIOEHBP50XnoEX3jkOgEwknje89VDm/JXcClR
+l5HH4/9/AbS7rFCRnphOjQ==
+-----END CERTIFICATE-----
+-----BEGIN CERTIFICATE-----
+MIIFmjCCA4KgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwWDELMAkGA1UEBhMCVVMx
+EzARBgNVBAgMCkNhbGlmb3JuaWExFTATBgNVBAoMDEtvbmcgVGVzdGluZzEdMBsG
+A1UEAwwUS29uZyBUZXN0aW5nIFJvb3QgQ0EwHhcNMTkwNTAyMTk0MDQ4WhcNMjkw
+NDI5MTk0MDQ4WjBgMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEV
+MBMGA1UECgwMS29uZyBUZXN0aW5nMSUwIwYDVQQDDBxLb25nIFRlc3RpbmcgSW50
+ZXJtaWRpYXRlIENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0dnj
+oHlJmNM94vQnK2FIIQJm9OAVvyMtAAkBKL7Cxt8G062GHDhq6gjQ9enuNQE0l3Vv
+mSAh7N9gNlma6YbRB9VeG54BCuRQwCxveOBiwQvC2qrTzYI34kF/AeflrDOdzuLb
+zj5cLADKXGCbGDtrSPKUwdlkuLs3pRr/YAyIQr7zJtlLz+E0GBYp0GWnLs0FiLSP
+qSBWllC9u8gt2MiKyNlXw+kZ8lofOehCJzfFr6qagVklPw+8IpU6OGmRLFQVwVhp
+zdAJmAGmSo/AGNKGqDdjzC4N2l4uYGH6n2KmY2yxsLBGZgwtLDst3fK4a3Wa5Tj7
+cUwCcGLGtfVTaIXZYbqQ0nGsaYUd/mhx3B3Jk1p3ILZ72nVYowhpj22ipPGal5hp
+ABh1MX3s/B+2ybWyDTtSaspcyhsRQsS6axB3DwLOLRy5Xp/kqEdConCtGCsjgm+U
+FzdupubXK+KIAmTKXDx8OM7Af/K7kLDfFTre40sEB6fwrWwH8yFojeqkA/Uqhn5S
+CzB0o4F3ON0xajsw2dRCziiq7pSe6ALLXetKpBr+xnVbUswH6BANUoDvh9thVPPx
+1trkv+OuoJalkruZaT+38+iV9xwdqxnR7PUawqSyvrEAxjqUo7dDPsEuOpx1DJjO
+XwRJCUjd7Ux913Iks24BqpPhEQz/rZzJLBApRVsCAwEAAaNmMGQwHQYDVR0OBBYE
+FAsOBA6X+G1iTyTwO8Zv0go7jRERMB8GA1UdIwQYMBaAFAdP8giF4QLaR0HEj9N8
+apTFYnD3MBIGA1UdEwEB/wQIMAYBAf8CAQAwDgYDVR0PAQH/BAQDAgGGMA0GCSqG
+SIb3DQEBCwUAA4ICAQAWzIvIVM32iurqM451Amz0HNDG9j84cORnnaRR5opFTr3P
+EqI3QkgCyP6YOs9t0QSbA4ur9WUzd3c9Ktj3qRRgTE+98JBOPO0rv+Kjj48aANDV
+5tcbI9TZ9ap6g0jYr4XNT+KOO7E8QYlpY/wtokudCUDJE9vrsp1on4Bal2gjvCdh
+SU0C1lnj6q6kBdQSYHrcjiEIGJH21ayVoNaBVP/fxyCHz472w1xN220dxUI/GqB6
+pjcuy9cHjJHJKJbrkdt2eDRAFP5cILXc3mzUoGUDHY2JA1gtOHV0p4ix9R9AfI9x
+snBEFiD8oIpcQay8MJH/z3NLEPLoBW+JaAAs89P+jcppea5N9vbiAkrPi687BFTP
+PWPdstyttw6KrvtPQR1+FsVFcGeTjo32/UrckJixdiOEZgHk+deXpp7JoRdcsgzD
++okrsG79/LgS4icLmzNEp0IV36QckEq0+ALKDu6BXvWTkb5DB/FUrovZKJgkYeWj
+GKogyrPIXrYi725Ff306124kLbxiA+6iBbKUtCutQnvut78puC6iP+a2SrfsbUJ4
+qpvBFOY29Mlww88oWNGTA8QeW84Y1EJbRkHavzSsMFB73sxidQW0cHNC5t9RCKAQ
+uibeZgK1Yk7YQKXdvbZvXwrgTcAjCdbppw2L6e0Uy+OGgNjnIps8K460SdaIiA==
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example.com.key b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example.com.key
new file mode 100644
index 00000000..c8ad8f2e
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example.com.key
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEAqCozbPPts2H7CsUf4KlyKwbCOjqUa7ZhBcXfX5KuEHOvAUZf
+JOlm2TCNbO1wMTI1QHwjn6a9HM1njhBG4r9HH8CLckF83b247iJQbqUEjjvbb6DM
+TxjbC7dBunIikv6gUXeWGlRHupy/UEh8K0Y2KM2fm+HEbKI6zvjg/wb7zb0agzNa
+KV6fyEourKL0Xjz8ePm3kH58HaUmqhfkPPf7GnGW1xk/aIm6tsi9wzj2VBI/T3E5
+hVnMGrJTYnXh5DoFQrbuLvWtOB6MdZcMBWN/he8ISvvhKrctjWvUjpWgoZE9bRoM
+xkzxpHF/agM++WlHJrJ7my3yRHN3LspF4ER+/QIDAQABAoIBACHkx5KpI3qpP+ju
+zDsCzAECDrmfvvRqwOlh9WCU9sJYHqi6H0kYReN2lrqirJ8tyG/j1WZDPBCHEd0f
+SLpA5TvwGesAagNjTteoUN/MILvuMo8wMJ2sm9GjsPq8MF3CNlvVJ4rM+9wP5btv
+sJ8kOpxEvWu0uFtQ41t97BNau/u+UtMk3oNCYBhiUWDg0rWPrUeX8cKzFSM8VAt4
+vvsybRHPbBmSLW01xO1Hq5cZdqbN4SxyQC1Ug9gW/afJQNRK7CubpWjOOQAsla0j
+ExyBxMMwDLLZfYCQpRn92ZB4x+LiaXqnbrtyfA+GLLjtlUPY6ClpdXa7KSN/mEuE
+LIIjiV0CgYEA2YsCt1+Yak+GOX6tSx1YUDz6UpZyOo2OKwqJ+G+SKT7JLT84A5nP
+rn6r6UUpNKhK3glpU1A1VJKiFnZ9qJi/gHJcNiSEIcUFHNFflDSmiZc6MyfcIkCZ
+xLUCrYHpETubTnB5P5jOhmsA3/uApaAc/Pv5hfSRzQv524k08TRgCU8CgYEAxeSQ
+MIRV1SKDYsEdEfXJE+WJLz2rlpR19l/9Wfuc5QVgAgDhFCCvHUX1ULU8yGQUSHqz
+DseR3iQF+Jvo3MK7pgC2fH6UePjakWOCXqXey1CpAzUHM/Qhwd451VqAGAT+Pabj
+tzPJ0cSC7sszxhwmAzotIUrjZDbuAzwQyRXdh/MCgYEApP2KVNt69H5V9bs+4W5j
+MY/d5s9V2VTNE5XNqI+uEfwdhmShLhH08on+BlC+/MH67kXDDT4TBI6lwlWh3kHj
+VB7oEuRFFnuf8ghV7ki0WjxJFs1PZucJ+Ke0XTXfN4O2uZoSS4qwcEAtjLLqEjPK
+aJEO4WrpPdOsb7WzYpDvmX8CgYEAwPunXZkAN0xkAl8+4S/mup+Ci+5BMiRvcSek
+4yaLl5AJU4rV9JH3E74QgHdt4iIu4Yu+qHAYoSBSLmKk0PyakEVrsLakReCxDU2U
+aoapYW60k6sX7iNq9CuqDJUoC8R6x1bEBPndG9LeuM6zG8SBkW4farMkU6t5qu/d
+kqvfEN8CgYAQphK9AoATrEomLbGwmcW+8JkjU9Sxnq+zo8io75wFAY2cUnQJQEId
+zGWwYjwHxXQCNCZ3ZwD7+iYgFHfxbPaiTWELkV2nEpBHQI0cLgzlcEBwo+uoFiYK
+33Yxb6EhNFSy7d2GPVZMjIR+KifCIem+i/3BiIlzneuFSRlnKORekQ==
+-----END RSA PRIVATE KEY-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example2.com.crt b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example2.com.crt
new file mode 100644
index 00000000..85756548
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example2.com.crt
@@ -0,0 +1,25 @@
+-----BEGIN CERTIFICATE-----
+MIIEJzCCAg8CFAQ6oTnLBUHbumx1bxyY9kV0W21BMA0GCSqGSIb3DQEBCwUAMFgx
+CzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRUwEwYDVQQKDAxLb25n
+IFRlc3RpbmcxHTAbBgNVBAMMFEtvbmcgVGVzdGluZyBSb290IENBMB4XDTIwMDQx
+MzIzNDg0MVoXDTMwMDQxMTIzNDg0MVowSDELMAkGA1UEBhMCVVMxCzAJBgNVBAgM
+AkNBMRUwEwYDVQQKDAxLb25nIFRlc3RpbmcxFTATBgNVBAMMDGV4YW1wbGUyLmNv
+bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK+kZhxdN8PA3SW9cXiv
+xgtANq57PIWNnSDsg9Yxn0/+JKR45pSU+SKYtZUJJJuOdkv4IIJLm6uG6LbOPUDO
+g9EaV0Zw7RQtbY6EDFDFzeyq0/Mwl9wLJtXf0fPsXGyFIdeelBjzoSVsGGJKPWbP
+rlUtSHCrpFX53NTPnNVUJz9V6CdzZJgbyoiWP7ggKJeRPq6jCW5pt+cd+sR4+EPh
+daBmEVWeifLEKCbBvsQaOGfU1aVG1AlX0RpLBkTxOOFIIk/3dgWOsrek2ofjku4F
+g0MeWmD8oXOHUX2JxO77/BbLDQt0lzD27y/EkDoqy6mMAH85/LTYrU+P0WsEyexg
+CHcCAwEAATANBgkqhkiG9w0BAQsFAAOCAgEAwWAxQjQOoGxU5LQu4ZmsCkps9y0B
+kNj8MUpLcFmK+02VIUh3hM4vuB6Gct2Ph+6zqCge3oqTXltU0Bs2MTwAKs/scsxq
+Mtanz4W00UlmG3QdgHaEs196tYQ8cKIaGZsNBv15VgBBduUG478pKqYE8bJKBbw7
+1Ym390hSPo0dNe7jLFXx6AaJvlEYh09P4FgfkXuY5VVTGXfN7XgJI073pLRY6iGH
+Qd+Egymh86AQtnoNpmqSCMNcjRVAyR8Ti3qnyro8ruZCnNYHieGeh/ZsZvhGDeWX
+v4YXjW2NDQ5+Ok6Gtvhf/l6RSrnXLbZtv8NStqwQJ+ydu05BJglZ/7Sb0uQYVNq2
+H8V+MtApFT6fG6ANM6hadNFG+p8Hwz6k4BLrc9ZxeWYKWIIusqExR9JIlGzEjvFJ
+6NmNjm3eZE9Ue4YgURj1KTr53wAso4LbJpz/zuZS+m9PMz7n8fRL25/Z5b/92L3a
+w0vsxUJyTDeMvYf8oT6OkxNVJ0zBRZNtEg5AJKdP6nU53V998jHP9vUisrU2ALhu
+Jw3QiWiDKnRtx8PiiRx7dWo+Xwn9+xVypytqNz3w/XJlOjMwOg73q399w+vMiFTl
+qdr7eYvaQBGOZVc3OdiP8afyVxlhHBowUoi8G+iPbgOsARHv/j4UeMVyIThzxv73
+a2EQ5BzyOzQ81H4=
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example2.com.key b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example2.com.key
new file mode 100644
index 00000000..05c29251
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/mtls_certs/example2.com.key
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEAr6RmHF03w8DdJb1xeK/GC0A2rns8hY2dIOyD1jGfT/4kpHjm
+lJT5Ipi1lQkkm452S/gggkubq4bots49QM6D0RpXRnDtFC1tjoQMUMXN7KrT8zCX
+3Asm1d/R8+xcbIUh156UGPOhJWwYYko9Zs+uVS1IcKukVfnc1M+c1VQnP1XoJ3Nk
+mBvKiJY/uCAol5E+rqMJbmm35x36xHj4Q+F1oGYRVZ6J8sQoJsG+xBo4Z9TVpUbU
+CVfRGksGRPE44UgiT/d2BY6yt6Tah+OS7gWDQx5aYPyhc4dRfYnE7vv8FssNC3SX
+MPbvL8SQOirLqYwAfzn8tNitT4/RawTJ7GAIdwIDAQABAoIBAHMJzgdN1rRToYSS
+a7uMBL5htG7bMGyYsA1cW4zyu1F9NyqyNPOkDvjl5ChU8LEhwcFIJqKwOqlBlzIE
+KoJDwHo4MmlklSLeDh+FxTsyEwmraV6iuRPaCfmSusR0TqSVHfFHX+Bn0WfdQKs/
+zK+F3rzTB9sj0GKvYD/SKvpeP8Zuu9EBqo4N7PU3VHwDq5t32Ut/+M5XWtulsQcs
+qXr2R3agj/DnODANT6Dn/mJboTrYOSV18S/Yw/+OnWBcLzlT5sj0aLgrtXvIputv
+9caux4HklAQr29+lKB8nBTfjhXnBntMaEgqCVJ3ri83MuEfVDhmjwo6PnX22/J0h
+2XbCyUECgYEA2v8m+CTBTjdAqOuje34+UiWRzT2P9OFONV8nYgzEcQW5JkUoFCun
+KgQQIvjCsX4jY6/8w/IPF1ieTconZYJUWSyMZFtBBDCVif1GZRiiM2C4Zcero1KV
+U0V3wZcnYkzafzIHkqFUYZwamvdKWVI4c6F5MhSEKCgcbgKKI52TEokCgYEAzVHr
+KjQt+dqNkbipYoGH2ywLdcogDwKoyUFbgcvz/q625gu4am025wF25yRKExm7Dyjx
+eCQC+KOsBfJSc78fG5R6KPIDK1JrpUEGSCeqFICiqGv9kUzPf5zeGZVf9cU4tyPT
+5wYUEM7NX8VRoasZ4OUvYyYBw1Cx8vMdvQn/gv8CgYAIhxcFYqkEWrJx4XskO+5B
+VKUw0MziREO/YE0wTD76B7cF/ntpDaocwLvAIN+z+a13HEtDdhGQXysK7GxMT57p
+OgrdfZAykZHBJdOv7B2k0odbr0LHwVd/Pp1DNJecBFId0dzpoM6gXmvKzQZgJAt+
+tTL6+EGNLsKspfyrFl+7wQKBgQDAt2VuJbAJ1xQOdS+4IDCujfbrxp60uCBJVylW
++WK56LAP2WxtqLlhtsQuTKeiqgIkRp/vzo1jZ+0tX7f4oKnIL2NCT3aeESys3g3R
+aDmCKQOD5mkJGvmgpFLr3INHoqiLbfuV2uS2qgWnIQRwJLOTnksOWzxIYdPFYGDH
+cTz9bQKBgQDGv929DUinrKXe/uKJHLAcq+MjmF/+kZU9yn+svq6SSdplqp7xbXX4
+3T5HCWqD4Sy+PVzGaDg5YfXC8yaFPPfY0/35T2FoQEiCAPQO+07Smg6RqJ3yVpIm
+LTsbLleJTc8CX0bI4SukQ7MVQsiHimzyEzx3eyLt1S8aBdJuRFZ2mg==
+-----END RSA PRIVATE KEY-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/nginx-directives.conf b/kong-versions/3.8.0/kong/spec/fixtures/nginx-directives.conf
new file mode 100644
index 00000000..c7a73f59
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/nginx-directives.conf
@@ -0,0 +1,8 @@
+nginx_http_variables_hash_bucket_size = 128
+nginx_stream_variables_hash_bucket_size = 128
+nginx_http_lua_shared_dict = custom_cache 5m
+nginx_stream_lua_shared_dict = custom_cache 5m
+nginx_proxy_proxy_bind = 127.0.0.1
+nginx_sproxy_proxy_bind = 127.0.0.1
+nginx_admin_server_tokens = off
+nginx_status_client_body_buffer_size = 8k
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ca-chain.crt b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ca-chain.crt
new file mode 100644
index 00000000..9c3449c5
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ca-chain.crt
@@ -0,0 +1,65 @@
+-----BEGIN CERTIFICATE-----
+MIIFmTCCA4GgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwXjELMAkGA1UEBhMCVVMx
+CzAJBgNVBAgMAkNBMQswCQYDVQQHDAJTRjENMAsGA1UECgwES29uZzEUMBIGA1UE
+CwwLRW5naW5lZXJpbmcxEDAOBgNVBAMMB3Jvb3RfY2EwHhcNMjEwMzA0MTEyMjM1
+WhcNNDEwMjI3MTEyMjM1WjBZMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExDTAL
+BgNVBAoMBEtvbmcxFDASBgNVBAsMC0VuZ2luZWVyaW5nMRgwFgYDVQQDDA9pbnRl
+cm1lZGlhdGVfY2EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDXcXvt
+kyiEY7Nr8VeEF2KTpGkEwPLNoLW9eNpFH0bFlKcmM/+IocSUErD091SCf0fGCRuo
+8bISb4MVa5esq8XMUSR63cDmz2IbWOtvNir4wLfAoUuA4JBhubaSyaslXLf376QT
+sYDjLH9jQ3rFYskz9hrlX1HFFmm0hlDnuqr1w0GF+6PxPdxRKkdvKexPuQp3qaVZ
+dzKvFcGuCu7nuqemb37CBBkdRAgVUj37pXBIcc5p5h8PVAU24r7pAaYppDmmZMWa
+uTSjz4K/PTh5GzG+snf8iH+EpTLGUqPElR+ABP8YiNrQQzgA91lPjwLqp6D34sMT
+7xvk4Ri1cOpOsNA4hCdFPilzolMQ6Zpz0ELI25vBt8qY57JMlsUjaY2PR1gI+pE+
+jc52e18Bt/axNnbgxoxTQWPcw27mUs7H4+1WiZufhzz59obgWRnoCom0Fb6RN9Rl
+8ezl+h30+Dgk8ftiFm/fI1BttL6dihveSP/xvuMYRFyT0F1ZNZhgME218cOB5hZN
+dKOFynRgI4SfCeMNSy3KnrBoPYE3P/f1ljBbrR5x/xQE0V5iWFJwZwWexO0+Hf7h
+Aaql5dcwsMIjf8MfHKuQOfZauUmPxu0EbM4NiQu5GEK/9rGEIO51Tlo237l6k4tF
+oKCj3EUZ9cM02CROKGDM6vfkyeyGDbuDPGmdLwIDAQABo2YwZDAdBgNVHQ4EFgQU
+xTAm/Gj7/9K32+Wdc0BOHFKRFeEwHwYDVR0jBBgwFoAU9NE7mu7p9CqGxLNWl7km
+VfMeEO0wEgYDVR0TAQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwDQYJKoZI
+hvcNAQELBQADggIBAKFvNX1Wv7lOsYvDGOCmIrJEDdjW2Q60p23v1U/R9Wv7xo7X
+2SRuQvqKd3AB/9dCSgaaXKHwYgTPIS8NwUJ0SMvSwrnnRpZS5qkOB9JgRgAX5Ebd
+eyupB2AumZ1BGaw2gqPYHm8zxu3N2yw2pVV9LJ2nM+IPTqiQrYCV7BxNpAd/v9OA
+EC9XbKhPqdJ4bD6dGg7w5iBPadb6amAKkGutKjjB+AC/lJlM9bMEGd6RP0ywptQx
+jAfY0VTElLsN30Q6pn31Xf4UzZk4xzyW04GaPFcJVoHTWSl969p0k0L/WAMakDHB
+/g4VvkMTFDoH1Mi7ohakHnMC9XQbMVj2t/EE3XLiD4gcNEyCjXczIxDYJRYe2X3f
+51vQNR921P1KUNTooGusltMmHuWBnT046o9rp/2uQvHm2y/qv1kCPHTiP7vhb/TG
+2JCc+3LZ621EjH5jRvL60Pji4RnGGqLDBykLK68dymHVfrSAi+ZCx6PNxSm0Ydm6
+ZM1Vb8lD2EwEm20qKWM484ItWcVHgWEWDvaMjh0iIq45LA0KmN47iUN8X6rmdulZ
+MDSnSYwJfRt1DdyUC0nDWMQaW1JOQxQxoJCoDmiLwv9BIeNB8LNJEU0FTOPc8xhf
+VdlbjNIC1fs2OMWOc3A1hAFlf+vU8UYLRgYhLiAhFT2iwhBksSzGURY7eKqM
+-----END CERTIFICATE-----
+-----BEGIN CERTIFICATE-----
+MIIFrTCCA5WgAwIBAgIUFQe9z25yjw26iWzS+P7+hz1zx6AwDQYJKoZIhvcNAQEL
+BQAwXjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMQswCQYDVQQHDAJTRjENMAsG
+A1UECgwES29uZzEUMBIGA1UECwwLRW5naW5lZXJpbmcxEDAOBgNVBAMMB3Jvb3Rf
+Y2EwHhcNMjEwMzA0MTEyMjM0WhcNNDEwMjI3MTEyMjM0WjBeMQswCQYDVQQGEwJV
+UzELMAkGA1UECAwCQ0ExCzAJBgNVBAcMAlNGMQ0wCwYDVQQKDARLb25nMRQwEgYD
+VQQLDAtFbmdpbmVlcmluZzEQMA4GA1UEAwwHcm9vdF9jYTCCAiIwDQYJKoZIhvcN
+AQEBBQADggIPADCCAgoCggIBAKKjido39I5SEmPhme0Z+hG0buOylXg+jmqHpJ/K
+rs+dSq/PsJCjSke81eOP2MFa5duyBxdnXmMJwZYxuQ91bKxdzWVE9ZgCJgNJYsB6
+y5+Fe7ypERwa2ebS/M99FFJ3EzpF017XdsgnSfVh1GEQOZkWQ1+7YrEUEgtwN5lO
+MVUmj1EfoL+jQ/zwxwdxpLu3dh3Ica3szmx3YxqIPRnpyoYYqbktjL63gmFCjLeW
+zEXdVZyoisdaA4iZ9e/wmuLR2/F4cbZ0SjU7QULZ2Zt/SCrs3CaJ3/ZAa6s84kjg
+JBMav+GxbvATSuWQEajiVQrkW9HvXD/NUQBCzzZsOfpzn0044Ls7XvWDCCXs+xtG
+Uhd5cJfmlcbHbZ9PU1xTBqdbwiRX+XlmX7CJRcfgnYnU/B3m5IheA1XKYhoXikgv
+geRwq5uZ8Z2E/WONmFts46MLSmH43Ft+gIXA1u1g3eDHkU2bx9u592lZoluZtL3m
+bmebyk+5bd0GdiHjBGvDSCf/fgaWROgGO9e0PBgdsngHEFmRspipaH39qveM1Cdh
+83q4I96BRmjU5tvFXydFCvp8ABpZz9Gj0h8IRP+bK5ukU46YrEIxQxjBee1c1AAb
+oatRJSJc2J6zSYXRnQfwf5OkhpmVYc+1TAyqPBfixa2TQ7OOhXxDYsJHAb7WySKP
+lfonAgMBAAGjYzBhMB0GA1UdDgQWBBT00Tua7un0KobEs1aXuSZV8x4Q7TAfBgNV
+HSMEGDAWgBT00Tua7un0KobEs1aXuSZV8x4Q7TAPBgNVHRMBAf8EBTADAQH/MA4G
+A1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAgI8CSmjvzQgmnzcNwqX5
+o+KBWEMHJEqQfowaZE7o6xkvEljb1YHRDE0hlwUtD1vbKUthoHD8Mqim3No5z4J0
+dEE+mXQ3zlJWKl5gqHs9KtcLhk51mf4VJ2TW8Z7AoE2OjWSnycLNdlpqUvxzCQOn
+CIhvyDfs4OV1RYywbfiLLmzTCYT7Mt5ye1ZafoRNZ37DCnI/uqoOaMb+a6VaE+0F
+ZXlDonXmy54QUmt6foSG/+kYaqdVLribsE6H+GpePmPTKKOvgE1RutR5+nvMJUB3
++zMQSPVVYLzizwV+Tq9il81qNQB2hZGvM8iSRraBNn8mwpx7M6kcoJ4gvCA3kHCI
+rmuuzlhkNcmZYh0uG378CzhdEOV+JMmuCh4xt2SbQIr5Luqm/+Xoq4tDplKoUVkC
+DScxPoFNoi9bZYW/ppcaeX5KT3Gt0JBaCfD7d0CtbUp/iPS1HtgXTIL9XiYPipsV
+oPLtqvfeORl6aUuqs1xX8HvZrSgcld51+r8X31YIs6feYTFvlbfP0/Jhf2Cs0K/j
+jhC0sGVdWO1C0akDlEBfuE5YMrehjYrrOnEavtTi9+H0vNaB+BGAJHIAj+BGj5C7
+0EkbQdEyhB0pliy9qzbPtN5nt+y0I1lgN9VlFMub6r1u5novNzuVm+5ceBrxG+ga
+T6nsr9aTE1yghO6GTWEPssw=
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ca.crt b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ca.crt
new file mode 100644
index 00000000..a33350b0
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ca.crt
@@ -0,0 +1,33 @@
+-----BEGIN CERTIFICATE-----
+MIIFrTCCA5WgAwIBAgIUFQe9z25yjw26iWzS+P7+hz1zx6AwDQYJKoZIhvcNAQEL
+BQAwXjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMQswCQYDVQQHDAJTRjENMAsG
+A1UECgwES29uZzEUMBIGA1UECwwLRW5naW5lZXJpbmcxEDAOBgNVBAMMB3Jvb3Rf
+Y2EwHhcNMjEwMzA0MTEyMjM0WhcNNDEwMjI3MTEyMjM0WjBeMQswCQYDVQQGEwJV
+UzELMAkGA1UECAwCQ0ExCzAJBgNVBAcMAlNGMQ0wCwYDVQQKDARLb25nMRQwEgYD
+VQQLDAtFbmdpbmVlcmluZzEQMA4GA1UEAwwHcm9vdF9jYTCCAiIwDQYJKoZIhvcN
+AQEBBQADggIPADCCAgoCggIBAKKjido39I5SEmPhme0Z+hG0buOylXg+jmqHpJ/K
+rs+dSq/PsJCjSke81eOP2MFa5duyBxdnXmMJwZYxuQ91bKxdzWVE9ZgCJgNJYsB6
+y5+Fe7ypERwa2ebS/M99FFJ3EzpF017XdsgnSfVh1GEQOZkWQ1+7YrEUEgtwN5lO
+MVUmj1EfoL+jQ/zwxwdxpLu3dh3Ica3szmx3YxqIPRnpyoYYqbktjL63gmFCjLeW
+zEXdVZyoisdaA4iZ9e/wmuLR2/F4cbZ0SjU7QULZ2Zt/SCrs3CaJ3/ZAa6s84kjg
+JBMav+GxbvATSuWQEajiVQrkW9HvXD/NUQBCzzZsOfpzn0044Ls7XvWDCCXs+xtG
+Uhd5cJfmlcbHbZ9PU1xTBqdbwiRX+XlmX7CJRcfgnYnU/B3m5IheA1XKYhoXikgv
+geRwq5uZ8Z2E/WONmFts46MLSmH43Ft+gIXA1u1g3eDHkU2bx9u592lZoluZtL3m
+bmebyk+5bd0GdiHjBGvDSCf/fgaWROgGO9e0PBgdsngHEFmRspipaH39qveM1Cdh
+83q4I96BRmjU5tvFXydFCvp8ABpZz9Gj0h8IRP+bK5ukU46YrEIxQxjBee1c1AAb
+oatRJSJc2J6zSYXRnQfwf5OkhpmVYc+1TAyqPBfixa2TQ7OOhXxDYsJHAb7WySKP
+lfonAgMBAAGjYzBhMB0GA1UdDgQWBBT00Tua7un0KobEs1aXuSZV8x4Q7TAfBgNV
+HSMEGDAWgBT00Tua7un0KobEs1aXuSZV8x4Q7TAPBgNVHRMBAf8EBTADAQH/MA4G
+A1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAgI8CSmjvzQgmnzcNwqX5
+o+KBWEMHJEqQfowaZE7o6xkvEljb1YHRDE0hlwUtD1vbKUthoHD8Mqim3No5z4J0
+dEE+mXQ3zlJWKl5gqHs9KtcLhk51mf4VJ2TW8Z7AoE2OjWSnycLNdlpqUvxzCQOn
+CIhvyDfs4OV1RYywbfiLLmzTCYT7Mt5ye1ZafoRNZ37DCnI/uqoOaMb+a6VaE+0F
+ZXlDonXmy54QUmt6foSG/+kYaqdVLribsE6H+GpePmPTKKOvgE1RutR5+nvMJUB3
++zMQSPVVYLzizwV+Tq9il81qNQB2hZGvM8iSRraBNn8mwpx7M6kcoJ4gvCA3kHCI
+rmuuzlhkNcmZYh0uG378CzhdEOV+JMmuCh4xt2SbQIr5Luqm/+Xoq4tDplKoUVkC
+DScxPoFNoi9bZYW/ppcaeX5KT3Gt0JBaCfD7d0CtbUp/iPS1HtgXTIL9XiYPipsV
+oPLtqvfeORl6aUuqs1xX8HvZrSgcld51+r8X31YIs6feYTFvlbfP0/Jhf2Cs0K/j
+jhC0sGVdWO1C0akDlEBfuE5YMrehjYrrOnEavtTi9+H0vNaB+BGAJHIAj+BGj5C7
+0EkbQdEyhB0pliy9qzbPtN5nt+y0I1lgN9VlFMub6r1u5novNzuVm+5ceBrxG+ga
+T6nsr9aTE1yghO6GTWEPssw=
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/index.txt b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/index.txt
new file mode 100644
index 00000000..d9c4e670
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/index.txt
@@ -0,0 +1,3 @@
+V 310302112235Z 1000 unknown /C=US/ST=CA/L=SF/O=Kong/OU=Engineering/CN=ocsp
+V 310302112337Z 1001 unknown /C=US/ST=CA/L=SF/O=Kong/OU=Engineering/CN=kong_clustering
+V 310302112425Z 1002 unknown /C=US/ST=CA/L=SF/O=Kong/OU=Engineering/CN=kong_data_plane
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/index.txt.revoked b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/index.txt.revoked
new file mode 100644
index 00000000..adc8959a
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/index.txt.revoked
@@ -0,0 +1,3 @@
+V 310302112235Z 1000 unknown /C=US/ST=CA/L=SF/O=Kong/OU=Engineering/CN=ocsp
+V 310302112337Z 1001 unknown /C=US/ST=CA/L=SF/O=Kong/OU=Engineering/CN=kong_clustering
+R 310302112425Z 210304112822Z 1002 unknown /C=US/ST=CA/L=SF/O=Kong/OU=Engineering/CN=kong_data_plane
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_clustering.crt b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_clustering.crt
new file mode 100644
index 00000000..43ae9de2
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_clustering.crt
@@ -0,0 +1,63 @@
+-----BEGIN CERTIFICATE-----
+MIIFYzCCA0ugAwIBAgICEAEwDQYJKoZIhvcNAQELBQAwWTELMAkGA1UEBhMCVVMx
+CzAJBgNVBAgMAkNBMQ0wCwYDVQQKDARLb25nMRQwEgYDVQQLDAtFbmdpbmVlcmlu
+ZzEYMBYGA1UEAwwPaW50ZXJtZWRpYXRlX2NhMB4XDTIxMDMwNDExMjMzN1oXDTMx
+MDMwMjExMjMzN1owZjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMQswCQYDVQQH
+DAJTRjENMAsGA1UECgwES29uZzEUMBIGA1UECwwLRW5naW5lZXJpbmcxGDAWBgNV
+BAMMD2tvbmdfY2x1c3RlcmluZzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
+ggEBANaCyZeJxFogkiIBjNBTZcztOsW/8vfljzK/m6Yi589hbrTw2CgDGBl+3Pnl
+3AA8bkpAG0Tl0TjB3h/hij5Ywopd/dDEeNAhjvlBNiDMy2cN93t3XvGyp7w4hF9u
+yaUiJgyTH7AjuCDO01jvj8GT31cfNDBMBwjQF0AltsGScZhanwy82fHUZzvpHMr6
+OQ+riBwb2rXKHoSCukxbs/Y1HfPxmpNShWDPXFFMbsujPRT6meVcCKQuThIWLdwA
+KvJYSYC3gTHQyadjwTF9nLZgMu6cWxTheWXXZ/sF4tZ1DPQCjd/1Pdi/TwEawAUa
+vOHP7ArfB2vHOX59bJgJbFyGB3ECAwEAAaOCASYwggEiMAkGA1UdEwQCMAAwEQYJ
+YIZIAYb4QgEBBAQDAgZAMDMGCWCGSAGG+EIBDQQmFiRPcGVuU1NMIEdlbmVyYXRl
+ZCBTZXJ2ZXIgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFCOojCEbuBGgdyxoUfYTEyYU
+ioxGMIGIBgNVHSMEgYAwfoAUxTAm/Gj7/9K32+Wdc0BOHFKRFeGhYqRgMF4xCzAJ
+BgNVBAYTAlVTMQswCQYDVQQIDAJDQTELMAkGA1UEBwwCU0YxDTALBgNVBAoMBEtv
+bmcxFDASBgNVBAsMC0VuZ2luZWVyaW5nMRAwDgYDVQQDDAdyb290X2NhggIQADAO
+BgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDQYJKoZIhvcNAQEL
+BQADggIBAHJmrqebjeI7dz34cJBZH0iKTv/dHqinck4u2Dnol85SUICDAlIk1ZDm
++VHA7ZH3ittPjWbiR8N8CJ+GW+2zfcenM+9BfCm95FJ8K/4vU9Xrx/NZH621NELm
+fneD/rFWahf+KT9J7H9SeR3oIiecsDEDM0RAFrqU3innLAnWoTKDNQukjBGUrTnm
+3YPv6+MAUHl1AaZpX4yEtakevQHxY0Kfpt0U1iZbvL5jeC9HuswTFCplARI5qnxG
+0RhRveApQ6Im0clUKx8eqG2Iez4clSNLGJEsUpvyr3CwbyOU/9UneK98hbf13rww
+DPoYT1U6JMEJuKBuL1qDECH8UUF0X41KEPP9s+dgBcAXE/gaD89hjIzOhbkDXbLO
+L8511Fr466Gcab05FBGupXjnJ63EB3Ct4TAkRS6W8IrOtWRPOtOCbRJtSKqcZnfE
+F8UCklCfIHaM7y8JClVLWSIjaOtg2UVJqCJnEMo+5h4WLnkGfBZr7VAJRKPKC3Vt
+jfKbOUcWcMJxR+UWWu+9A/kMb97cAXuSwZRyeeKAnMzQHWYMx6Bo/m2JHWwhlsf+
+vX6mp4C+FeyoXejP1cZBVkMh1JsRKWHAxbGLQkrYHhTKwYudLvsXURatJ0i+BNjI
+QmBTKAfIh2q6qJDRcsDURDsvBD46f2p/kzg08+f5eQv+cMx2ryAq
+-----END CERTIFICATE-----
+-----BEGIN CERTIFICATE-----
+MIIFmTCCA4GgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwXjELMAkGA1UEBhMCVVMx
+CzAJBgNVBAgMAkNBMQswCQYDVQQHDAJTRjENMAsGA1UECgwES29uZzEUMBIGA1UE
+CwwLRW5naW5lZXJpbmcxEDAOBgNVBAMMB3Jvb3RfY2EwHhcNMjEwMzA0MTEyMjM1
+WhcNNDEwMjI3MTEyMjM1WjBZMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExDTAL
+BgNVBAoMBEtvbmcxFDASBgNVBAsMC0VuZ2luZWVyaW5nMRgwFgYDVQQDDA9pbnRl
+cm1lZGlhdGVfY2EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDXcXvt
+kyiEY7Nr8VeEF2KTpGkEwPLNoLW9eNpFH0bFlKcmM/+IocSUErD091SCf0fGCRuo
+8bISb4MVa5esq8XMUSR63cDmz2IbWOtvNir4wLfAoUuA4JBhubaSyaslXLf376QT
+sYDjLH9jQ3rFYskz9hrlX1HFFmm0hlDnuqr1w0GF+6PxPdxRKkdvKexPuQp3qaVZ
+dzKvFcGuCu7nuqemb37CBBkdRAgVUj37pXBIcc5p5h8PVAU24r7pAaYppDmmZMWa
+uTSjz4K/PTh5GzG+snf8iH+EpTLGUqPElR+ABP8YiNrQQzgA91lPjwLqp6D34sMT
+7xvk4Ri1cOpOsNA4hCdFPilzolMQ6Zpz0ELI25vBt8qY57JMlsUjaY2PR1gI+pE+
+jc52e18Bt/axNnbgxoxTQWPcw27mUs7H4+1WiZufhzz59obgWRnoCom0Fb6RN9Rl
+8ezl+h30+Dgk8ftiFm/fI1BttL6dihveSP/xvuMYRFyT0F1ZNZhgME218cOB5hZN
+dKOFynRgI4SfCeMNSy3KnrBoPYE3P/f1ljBbrR5x/xQE0V5iWFJwZwWexO0+Hf7h
+Aaql5dcwsMIjf8MfHKuQOfZauUmPxu0EbM4NiQu5GEK/9rGEIO51Tlo237l6k4tF
+oKCj3EUZ9cM02CROKGDM6vfkyeyGDbuDPGmdLwIDAQABo2YwZDAdBgNVHQ4EFgQU
+xTAm/Gj7/9K32+Wdc0BOHFKRFeEwHwYDVR0jBBgwFoAU9NE7mu7p9CqGxLNWl7km
+VfMeEO0wEgYDVR0TAQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwDQYJKoZI
+hvcNAQELBQADggIBAKFvNX1Wv7lOsYvDGOCmIrJEDdjW2Q60p23v1U/R9Wv7xo7X
+2SRuQvqKd3AB/9dCSgaaXKHwYgTPIS8NwUJ0SMvSwrnnRpZS5qkOB9JgRgAX5Ebd
+eyupB2AumZ1BGaw2gqPYHm8zxu3N2yw2pVV9LJ2nM+IPTqiQrYCV7BxNpAd/v9OA
+EC9XbKhPqdJ4bD6dGg7w5iBPadb6amAKkGutKjjB+AC/lJlM9bMEGd6RP0ywptQx
+jAfY0VTElLsN30Q6pn31Xf4UzZk4xzyW04GaPFcJVoHTWSl969p0k0L/WAMakDHB
+/g4VvkMTFDoH1Mi7ohakHnMC9XQbMVj2t/EE3XLiD4gcNEyCjXczIxDYJRYe2X3f
+51vQNR921P1KUNTooGusltMmHuWBnT046o9rp/2uQvHm2y/qv1kCPHTiP7vhb/TG
+2JCc+3LZ621EjH5jRvL60Pji4RnGGqLDBykLK68dymHVfrSAi+ZCx6PNxSm0Ydm6
+ZM1Vb8lD2EwEm20qKWM484ItWcVHgWEWDvaMjh0iIq45LA0KmN47iUN8X6rmdulZ
+MDSnSYwJfRt1DdyUC0nDWMQaW1JOQxQxoJCoDmiLwv9BIeNB8LNJEU0FTOPc8xhf
+VdlbjNIC1fs2OMWOc3A1hAFlf+vU8UYLRgYhLiAhFT2iwhBksSzGURY7eKqM
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_clustering.key b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_clustering.key
new file mode 100644
index 00000000..77e81fde
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_clustering.key
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEA1oLJl4nEWiCSIgGM0FNlzO06xb/y9+WPMr+bpiLnz2FutPDY
+KAMYGX7c+eXcADxuSkAbROXROMHeH+GKPljCil390MR40CGO+UE2IMzLZw33e3de
+8bKnvDiEX27JpSImDJMfsCO4IM7TWO+PwZPfVx80MEwHCNAXQCW2wZJxmFqfDLzZ
+8dRnO+kcyvo5D6uIHBvatcoehIK6TFuz9jUd8/Gak1KFYM9cUUxuy6M9FPqZ5VwI
+pC5OEhYt3AAq8lhJgLeBMdDJp2PBMX2ctmAy7pxbFOF5Zddn+wXi1nUM9AKN3/U9
+2L9PARrABRq84c/sCt8Ha8c5fn1smAlsXIYHcQIDAQABAoIBAGXOrN6/A/HCg5ig
+I7S74BTigoJYF3iP+uabCcRPzLUgCOrXY7+ZuFZhX387GK8D/1Q+GLMaX7IQUNvQ
+r0vn1GzXLx9mH/Cn/LNPv+DRUbgXaN2wSd9say9po2mnqww0qNpO+TsfuMPZZXVQ
+PWoiRF2U8a/6ZVxJZr+LJrG4TzF+8gyHoUJrlncob8ma5EQKOR3HzMxfJx9OrjQW
+ISu+g2D+0qpaiPGlEUOMKBnrFhVCd5LUaCKM1F7qTe08hvyywqp7CJ4rw2loa+4W
+cdl2UTl01lTke3uEPsBdtvpwQ0DAvFyXgA09LmnwRjHtPzHjNxnkGE2qz14sctBi
+OXt2KAECgYEA+qGxJ5tYkqob+JTvrAQp1zD9ECs9ElVbJZwZ5Z/lhxMBJ07v11Ku
+++M9rSUjhWcYbd2gfGEkxXzSK9yYc4ryzDvCREuNmGxYs52VnaBlKPY3T/h046/9
+S0NivzApCTVK+CYdntT4XNyn9+WGO7zq7x6FQkSsFuj2lnfHrahq0i0CgYEA2xsI
+KMYMe0NTJFNzhfFQMzkSU1R1+TvhaXjpqfneeizF4plYxrZOtOb3vzriWepB70de
+4atsoxZUfqS34RKkLX1WyuoLm3WtpJHHmhUfj18PlIMu0gXrisUZM8evltTOyRsg
+mn+V/nZeXn34tZARbJ4rAMrmOKIz/z0OCtZ6yNUCgYEArb6ZiNNwO3whl9nnrF/W
+gY88X5EZ7TOu1Au7CCwoedL64b0fFy4CkCuf/f/Y+AnYLZGOR6swSpeVO0LZjH+u
+gVaL/bxClH/HnfyIU5V1i0fkYFPk9FJ0TVCRi+hfCjsflZcWwZzx764n4voCbDcy
+xkFqL95bTiaBix3OFtzB8KECgYEAuyhbDuEllkELCxORsY9Qz4Bnq/CQmWXSBVM4
+XW5H4RrPqeENWSgvEQ3eAGZfJSkaSzcu0BurP5/6avdu7n4K6aSP9+J2KcQaoGG6
+G18Bx2kPGO/5lYNjEPWNspJW5cNAI77dWbu0N1mLALIgOY8nox10ZEfs4eGEAvl3
+PkC5P0UCgYBh1qnXWvj5KT0pt7p2X7ayg2FHunNHO1QLpFBWhhgQlyvLns/toQWc
+XXKogwiMZ8D6g3eex8vZ25K01JNn7uQUDUNVhzyUcSjfVFB1Bc9dLdNfIYvL4adz
+BTZ7TjBYdScSIhjHKbaLwimHcNllYqz3vJ6hAK9YFVt5sI+/EixHmQ==
+-----END RSA PRIVATE KEY-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_data_plane.crt b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_data_plane.crt
new file mode 100644
index 00000000..4f30d968
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_data_plane.crt
@@ -0,0 +1,62 @@
+-----BEGIN CERTIFICATE-----
+MIIFOjCCAyKgAwIBAgICEAIwDQYJKoZIhvcNAQELBQAwWTELMAkGA1UEBhMCVVMx
+CzAJBgNVBAgMAkNBMQ0wCwYDVQQKDARLb25nMRQwEgYDVQQLDAtFbmdpbmVlcmlu
+ZzEYMBYGA1UEAwwPaW50ZXJtZWRpYXRlX2NhMB4XDTIxMDMwNDExMjQyNVoXDTMx
+MDMwMjExMjQyNVowZjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMQswCQYDVQQH
+DAJTRjENMAsGA1UECgwES29uZzEUMBIGA1UECwwLRW5naW5lZXJpbmcxGDAWBgNV
+BAMMD2tvbmdfZGF0YV9wbGFuZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
+ggEBAK8wCJuLAIZa+hihNEOx/YBSx+05lXXgoNirVuJjmUhx80oZQsrUnCA3PPe0
+snkUfUTpe0g1P1YPMDQBoXK+MffpanTL2e5EIkD+T1ti9EkTZg+jnjdGaAZ27Y70
+9k6KTb/rFj1Lezswdo86WlXpxcbCFyHlMO590pCPpQ/VpQodqn9bTPPoTKTHlL4q
+8no26rb16t7wBVrbADOu7lzcIZYB2xLslM5B8fk7jzIBPMb3uQxh+AhKn2bw07jv
+unPMHJK64alfUwqRk9krd/1WICSm51eKi400kefrtzXRwtxjr72EmOCnZdHr2A0O
+7ZKlHhZolVXaACghMd4IRI/eUD8CAwEAAaOB/jCB+zAJBgNVHRMEAjAAMBEGCWCG
+SAGG+EIBAQQEAwIFoDAzBglghkgBhvhCAQ0EJhYkT3BlblNTTCBHZW5lcmF0ZWQg
+Q2xpZW50IENlcnRpZmljYXRlMB0GA1UdDgQWBBSpSKxdiN8o9qYMOy158lXYg2MI
+qTAfBgNVHSMEGDAWgBTFMCb8aPv/0rfb5Z1zQE4cUpEV4TAOBgNVHQ8BAf8EBAMC
+BeAwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMEMDcGCCsGAQUFBwEBBCsw
+KTAnBggrBgEFBQcwAYYbaHR0cDovLzEyNy4wLjAuMToxNTU1NS9vY3NwMA0GCSqG
+SIb3DQEBCwUAA4ICAQCxdljA6Yxg7DLCs0RDZwzjHf4/H7SO888v7Tad+mbQcIzI
+dzxEaAcXf0qvDsDEPcE8n3vKDC9kHm3wKFJqK04Clc6Su+BLvGwVO0TTi9yC5X0j
+OFQQQAeth6ByJh7fqXkY4qkER7aunN77tpdmz4/m19we8U3DO/oQm87Fu89l6hMH
+942rpu4uSz2J0d+PpnXulLOJx0xLWv8ARmJkGD8oWUrVMmeeq9q1Yz41Oyyf37Xn
+iGUMLC1ejDTBw89wuMuqD9smka9stMdC/7mQWJJqz/Ww16MqGwqLvcK2WZzvU6jE
+V42n0Zdq/rnPV63B/NZgwGEpfqWqZj5K0NfjboCoRmS70vWurFlP/oeaYZBoCoUW
+cMiw8lnS53fFtX5Mt8gV4NLzoy5a4Q6qoZMzuudcabmEKMNONBp8phkqosSgkDKY
+wJvhK1mYdWf3VcX2mjyW3j/shTXlKibesNZAR2XiKqEFqTkqFY6Dx+wpvsNIyvHw
+ZWLwa71ZONVhVgt5Hu6w/u+hzrL22v/s9ticVx1jJ6lopppiXf/0Ex4EHjZI5h3w
+Sdj2fCBsv05FWJqFadMY6gt92/pmyA1HL7S5rK5odoDviRGQxsCvBax2Vv4WDrIh
+tcGGGUZ4nLeWPOqb9e8fJKJtILvQ9x4qRMmeYKMAkflsbjDNw6g612D3TV2WXQ==
+-----END CERTIFICATE-----
+-----BEGIN CERTIFICATE-----
+MIIFmTCCA4GgAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwXjELMAkGA1UEBhMCVVMx
+CzAJBgNVBAgMAkNBMQswCQYDVQQHDAJTRjENMAsGA1UECgwES29uZzEUMBIGA1UE
+CwwLRW5naW5lZXJpbmcxEDAOBgNVBAMMB3Jvb3RfY2EwHhcNMjEwMzA0MTEyMjM1
+WhcNNDEwMjI3MTEyMjM1WjBZMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExDTAL
+BgNVBAoMBEtvbmcxFDASBgNVBAsMC0VuZ2luZWVyaW5nMRgwFgYDVQQDDA9pbnRl
+cm1lZGlhdGVfY2EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDXcXvt
+kyiEY7Nr8VeEF2KTpGkEwPLNoLW9eNpFH0bFlKcmM/+IocSUErD091SCf0fGCRuo
+8bISb4MVa5esq8XMUSR63cDmz2IbWOtvNir4wLfAoUuA4JBhubaSyaslXLf376QT
+sYDjLH9jQ3rFYskz9hrlX1HFFmm0hlDnuqr1w0GF+6PxPdxRKkdvKexPuQp3qaVZ
+dzKvFcGuCu7nuqemb37CBBkdRAgVUj37pXBIcc5p5h8PVAU24r7pAaYppDmmZMWa
+uTSjz4K/PTh5GzG+snf8iH+EpTLGUqPElR+ABP8YiNrQQzgA91lPjwLqp6D34sMT
+7xvk4Ri1cOpOsNA4hCdFPilzolMQ6Zpz0ELI25vBt8qY57JMlsUjaY2PR1gI+pE+
+jc52e18Bt/axNnbgxoxTQWPcw27mUs7H4+1WiZufhzz59obgWRnoCom0Fb6RN9Rl
+8ezl+h30+Dgk8ftiFm/fI1BttL6dihveSP/xvuMYRFyT0F1ZNZhgME218cOB5hZN
+dKOFynRgI4SfCeMNSy3KnrBoPYE3P/f1ljBbrR5x/xQE0V5iWFJwZwWexO0+Hf7h
+Aaql5dcwsMIjf8MfHKuQOfZauUmPxu0EbM4NiQu5GEK/9rGEIO51Tlo237l6k4tF
+oKCj3EUZ9cM02CROKGDM6vfkyeyGDbuDPGmdLwIDAQABo2YwZDAdBgNVHQ4EFgQU
+xTAm/Gj7/9K32+Wdc0BOHFKRFeEwHwYDVR0jBBgwFoAU9NE7mu7p9CqGxLNWl7km
+VfMeEO0wEgYDVR0TAQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwDQYJKoZI
+hvcNAQELBQADggIBAKFvNX1Wv7lOsYvDGOCmIrJEDdjW2Q60p23v1U/R9Wv7xo7X
+2SRuQvqKd3AB/9dCSgaaXKHwYgTPIS8NwUJ0SMvSwrnnRpZS5qkOB9JgRgAX5Ebd
+eyupB2AumZ1BGaw2gqPYHm8zxu3N2yw2pVV9LJ2nM+IPTqiQrYCV7BxNpAd/v9OA
+EC9XbKhPqdJ4bD6dGg7w5iBPadb6amAKkGutKjjB+AC/lJlM9bMEGd6RP0ywptQx
+jAfY0VTElLsN30Q6pn31Xf4UzZk4xzyW04GaPFcJVoHTWSl969p0k0L/WAMakDHB
+/g4VvkMTFDoH1Mi7ohakHnMC9XQbMVj2t/EE3XLiD4gcNEyCjXczIxDYJRYe2X3f
+51vQNR921P1KUNTooGusltMmHuWBnT046o9rp/2uQvHm2y/qv1kCPHTiP7vhb/TG
+2JCc+3LZ621EjH5jRvL60Pji4RnGGqLDBykLK68dymHVfrSAi+ZCx6PNxSm0Ydm6
+ZM1Vb8lD2EwEm20qKWM484ItWcVHgWEWDvaMjh0iIq45LA0KmN47iUN8X6rmdulZ
+MDSnSYwJfRt1DdyUC0nDWMQaW1JOQxQxoJCoDmiLwv9BIeNB8LNJEU0FTOPc8xhf
+VdlbjNIC1fs2OMWOc3A1hAFlf+vU8UYLRgYhLiAhFT2iwhBksSzGURY7eKqM
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_data_plane.key b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_data_plane.key
new file mode 100644
index 00000000..79ea99e4
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/kong_data_plane.key
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEowIBAAKCAQEArzAIm4sAhlr6GKE0Q7H9gFLH7TmVdeCg2KtW4mOZSHHzShlC
+ytScIDc897SyeRR9ROl7SDU/Vg8wNAGhcr4x9+lqdMvZ7kQiQP5PW2L0SRNmD6Oe
+N0ZoBnbtjvT2TopNv+sWPUt7OzB2jzpaVenFxsIXIeUw7n3SkI+lD9WlCh2qf1tM
+8+hMpMeUviryejbqtvXq3vAFWtsAM67uXNwhlgHbEuyUzkHx+TuPMgE8xve5DGH4
+CEqfZvDTuO+6c8wckrrhqV9TCpGT2St3/VYgJKbnV4qLjTSR5+u3NdHC3GOvvYSY
+4Kdl0evYDQ7tkqUeFmiVVdoAKCEx3ghEj95QPwIDAQABAoIBACkcGXj+pnHg2X18
+HrqgAv/g7R+C+sq9mqEdm/bmLmssqk3CHcVhHP4GWF08XwFAyKCqNY7dR+6XA9XA
+aDV34lvtv1iHGa3q+SrNQqwMTYz0a2fSGmeYMwMJV3fLjh0iIVqe/QoHM3TRS5ES
+vW4ZvJqGo00F7nSYvBfGTZKorODxb3CIjFXTlJZ1u/+YDVswWv3+XrqXKponoedr
+Zl8SCf7iqLz6cIPGnx6joIR/e7LK9eDBfgV8bxfsyulby51f06V/cBTQk4l8Qjeb
+Z+iFJzZxDuxq219JLWYqKH/JIAchvPoov1PBfEZXK4fKunAR/mw6j4OL/X5H+Dj1
+ziFjbyECgYEA51NHPMiChIRJ4poaTE99CPPcJek3rIAP83+BSRm0e38hibfB7p3C
+FpPhtWlMMM6YRAJsVkYrLWTtdl2nZbw3AuH46MM03nTbEgueQ2ry4hofzUKQfe5Y
+VyQccFQvQx1XF8lFML0TIEZ1ID38G8oNhme/fk5eHsR7Bn8Pi8XlpY8CgYEAwd/S
+qbTph05yCTYGeqqsMh+hUq9oqLvcYJDd7lStJjLlt6b8jEjZspePTHTtcL2vOwx3
+hmA4PQR2Rnc4M4nl8zMHSySk7m7dR9w01uORzk2BzWb2XHy+SdtwFWS+2bKJBWuf
+DAtlQzvfF07ccxZfQQTjMGVkhnsDMinriWCxMlECgYBJTRNSyHrLQRwkiQ5yRfHq
+B1QoUzmIGOB1GV8/abzOMV/QQwFZ+nWJL/0iviYdhSmsy1PHFt8RuFyi2FR2IWkR
+Kcf1Af5by42rrzDMTjR+vyZ6pXAh54fovRGh6ps7Wi3B5M5e/lr0LD9rIxkjOSiG
+AZQlkvGyMDKHwXWMpf36MwKBgGDMslBNpfQK9OEoel+w670zEcdJEYZ+FfCZJFYl
+LTbPXuctlxcsIJYNGl1gXFVYQC/Jb7xGOo4stilEyWjiR1AAgHnCWB88d3uztSY+
+BcTt6gt2hzdyiUgzKmlkHe5wN/3e2FCZN/wz3pWyqFtGJlU+bXjyhximPthDGflD
+r/WhAoGBAKFWK2lmVTiChupq3nihccggW0Dvk1NBLF+OTOGdkPDmNhypMJ7e1OhE
+4KYHCmGKFPvg1M0+CQzqop4lxTzFz8NI/Pt/HkWbkbmRyHE2p2cUY4zGIfF9/nwq
+vS/uKrJbHMqXyu/pa3HzmFtWrMoXd8/yCdSGwaNDK4ZCiP+hVMQ3
+-----END RSA PRIVATE KEY-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ocsp.crt b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ocsp.crt
new file mode 100644
index 00000000..21930086
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ocsp.crt
@@ -0,0 +1,33 @@
+-----BEGIN CERTIFICATE-----
+MIIFpTCCA42gAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwWTELMAkGA1UEBhMCVVMx
+CzAJBgNVBAgMAkNBMQ0wCwYDVQQKDARLb25nMRQwEgYDVQQLDAtFbmdpbmVlcmlu
+ZzEYMBYGA1UEAwwPaW50ZXJtZWRpYXRlX2NhMB4XDTIxMDMwNDExMjIzNVoXDTMx
+MDMwMjExMjIzNVowWzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMQswCQYDVQQH
+DAJTRjENMAsGA1UECgwES29uZzEUMBIGA1UECwwLRW5naW5lZXJpbmcxDTALBgNV
+BAMMBG9jc3AwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDOlydfksGd
+jK5CI2yNdsqpA9/Zr6eksPE0BOkbb1LdrqNyI2pRw9D8tpEY6AqaaYwQQyVDA54U
+BKE0L/PiqpACm4nKWv1XNsRK+REhEw8V4aqgkt8oyVz2w22mXq+DH8+iCmlpap1N
+ZfLXpKz0ZS47uvhFscs3N8bohWI92EHrMxp3JKbmWdoE/NnyAF9wV1WvYpfdpcDT
+BKwxO7lW7cgIB3kArtvGLLrtkVhR/js/B+Ff9CLugImGrNnSXfiXOMeLhui1U4v2
+aYEM+BN5TC8PTIoLwo96SRoBnZBoZ215liJiF3peVQNnR1NCYmJ6jQjtBXC4/wz9
+ganFdYF9+WSzSrBHiwIe7Nn7ARdRAtJPvOUBvaj3/zNpNCfikqcvGSTgJ1ixw0oO
+8o+UvWThQCGfB34FkG3oAl0y7SEpFKU6+8IWqPoM7Kdm0ZFUKXA2G7RNl5gH/o/B
+qVJyx31OvvZZoc3OyTInRpxNdhrWRaJppYw8xxv4mudedf48CToFGQjsWumVkjlU
+VdPSVP4VbgrOeVwwas7YBONES7oqkKnvjmLHqAYdalMLyopSuvnb3X96Fp6L2Oms
+FuNo6/7AUBVQtm0I08uCRWhP2CPeca1fERgTbO/puECMW3XqNAhyBB5e20uxcB/E
+h3qgu4y2xcn6Za1aQ30+RUB5n7DST0odEQIDAQABo3UwczAJBgNVHRMEAjAAMB0G
+A1UdDgQWBBRnqkgve+lZRPAGhX4AwHIMJl++gzAfBgNVHSMEGDAWgBTFMCb8aPv/
+0rfb5Z1zQE4cUpEV4TAOBgNVHQ8BAf8EBAMCB4AwFgYDVR0lAQH/BAwwCgYIKwYB
+BQUHAwkwDQYJKoZIhvcNAQELBQADggIBACuoaNr7uVBIfDFo6jdLqtiVAOKsUxO9
+EDoBIpGGiLOk3/NZxKUG2+xhsuAwZxPIVxifkg64qlLmMzZMrWFzOvkvRDYnU2se
+s/1sbOC3h+Xm5G5HjRhwmHczXUljyZySz0m8UHWeJ49zkDVIGzEBXrRnzBtji1N2
+9PddIz8zhqMtP33nKTo9m1kkkdoA3cZ/fcM21doZ6+ZimtRcOOz7BgQLOwPupq0L
+9DxBjJYwPrXj5IRaib0rZQ+kdjPNgggCryvJCk/27dKAwFe4rWLmFYQ+fgY2N2DL
+djXtxDxZ8Gw3x+GM5agI/BUhTscx4AvscZZr7brSPPmW5Q8nAE6NJQtanuT0VCuU
+VoRwNuTs0w4uTXyS7TwXDvfSrQqQLI+O7BWDnJT02FYmakT5CFsf7zqJzsbhSqq7
+11qK32MBN6q7QvH9SZi6A1jK2UgGiZSCZxF8OFQGJxaf5VBL6naP2NlPSeCZUZ5X
+eWVqE/lXi4LLUIWTwGdjbfkY72FFWThZoxtS+lM/CGVjVWS9gwABL+jiirZL++qQ
+y9IzzULMyxd6Xl3/eEzwT8kYjgwUQ2KWnjaHSBxHssJiRyHUhl0cUXuLGiW5fsHE
+TG6WevipP7qdOiIttLzFyC60pLR7v+vW5VrRXGR1kzou5N1ESi/ixl7PY9fg+wp0
+cWEwPQGHYdE/
+-----END CERTIFICATE-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ocsp.key b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ocsp.key
new file mode 100644
index 00000000..5d0bf2cc
--- /dev/null
+++ b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/ocsp.key
@@ -0,0 +1,51 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIJKAIBAAKCAgEAzpcnX5LBnYyuQiNsjXbKqQPf2a+npLDxNATpG29S3a6jciNq
+UcPQ/LaRGOgKmmmMEEMlQwOeFAShNC/z4qqQApuJylr9VzbESvkRIRMPFeGqoJLf
+KMlc9sNtpl6vgx/PogppaWqdTWXy16Ss9GUuO7r4RbHLNzfG6IViPdhB6zMadySm
+5lnaBPzZ8gBfcFdVr2KX3aXA0wSsMTu5Vu3ICAd5AK7bxiy67ZFYUf47PwfhX/Qi
+7oCJhqzZ0l34lzjHi4botVOL9mmBDPgTeUwvD0yKC8KPekkaAZ2QaGdteZYiYhd6
+XlUDZ0dTQmJieo0I7QVwuP8M/YGpxXWBfflks0qwR4sCHuzZ+wEXUQLST7zlAb2o
+9/8zaTQn4pKnLxkk4CdYscNKDvKPlL1k4UAhnwd+BZBt6AJdMu0hKRSlOvvCFqj6
+DOynZtGRVClwNhu0TZeYB/6PwalScsd9Tr72WaHNzskyJ0acTXYa1kWiaaWMPMcb
++JrnXnX+PAk6BRkI7FrplZI5VFXT0lT+FW4KznlcMGrO2ATjREu6KpCp745ix6gG
+HWpTC8qKUrr5291/ehaei9jprBbjaOv+wFAVULZtCNPLgkVoT9gj3nGtXxEYE2zv
+6bhAjFt16jQIcgQeXttLsXAfxId6oLuMtsXJ+mWtWkN9PkVAeZ+w0k9KHRECAwEA
+AQKCAgBz7ytvXQI+kfYws4R1ltaAJuZ2WTbxG0Mg+CiA9uY/9YNPyEQgAo3DZAjl
+O0LICLdLYQMGKn+JqFd22/o3l5Qdgn+/CXTmfpuFn2RXdUSf+PYyCnolf2smJ+He
+3YANS8rPmpwxRl1kU/QFxCozNJzPdEtjgTUTlb+QOVo6bqP/g7w0ZGMtHftVlTgR
+sNfeSYSSWffzsNMXGKYxMtz9xY7dwqPLGFXJTszQCSLRUKSa6Kc3m+AGjCehZlsO
+zSF2a6y/xkPNjkcbT3XWe1kiVviJ02Ac3WB7NY7cnTmu/WvYMcK13YsUaQzx5nr4
+5BFzyLXbnZP2nVsC4MMPRrQWp+A0Iwu8TJVrb5tUhEoVXGkkj4aUc6awX9g8OTii
+5JhQ2le2BazrCWCXtIfrhbcPyORyGizHqtzXqqVbtLUU6AgRyscWeIFf7v1nxP0K
+PgzFwzTMT8CH4t/CnkV4S9blj+S3JZY+MrmcliSAVz5+45mY3h7+A2vvMrBFnwiw
+5273HZyOCcRdfyufuDGt6vaAC+pgnRuno19i+Q7Mfsp6W3HiutfuNXJwG4YXTLba
+JL47QzOXO5DiJ9AczKo/c0lXMw/K/OkcV7QB5qi+9ynoY42sQFdin1mNW03KwZru
+Yo40wkXfAMAX/0i0dAKmf2ubG8/g1YcHg+NIAr+HQ6SjLuukYQKCAQEA82vIpCt4
+0iW9uOvvF6PpB/PwnUKTwjJYtVlk92TJ/zNhW50MylMMk5Hj4NC2rbH4yBgjHxAn
+jyhYqVi+mrsqidZGXgzmDuS19moqikFV70gFuaf+HbJN4ow3SbvTd5dv4Vv7UKbc
+v/jblLM3Zx5kNBZNP9hoo65o7kywcH38lCxOOr4RheJOCUL0YZmGd+S9BFQgfbur
+dITTHJ1t4g5zYFSevPM+CbkEIUWgOZrdqjhxGsH1SVTGtzR5qwzWiG3tPKe0nwWb
+gejPDrMCzYJm2kd01/WRmkqZU/sAJr7R1iQzrwe9PJmH9BOezyfYremieXqfD4xs
+t7OJD1lxutb//QKCAQEA2UQjaISYnwyVYQPSBiS4FiH5Cn5kTd9jX33Qxy/QUbHJ
+4MaKNq5N6hwb0nCg52kZdOCzLqpX6wVAxHBL3ouKFYFHVk0b1oaoGMb4pxx5EnEZ
+0z18VH+VgfluZH5/ARRwwlB40naqGQq5XlRL+xCm0lcnkqp2/Ie86qwaO+vyYUf0
+L3BcshuWjbVI1aPS81j5lelxpZwBOUAm//tNyPV1KJDRhjV784MxcpH7lNgtrRVf
+4woAZnEu9OnAZcoRHm7IsWnwu3lH7h7rU+WMy163dztKzEzZ6fTZYFemyZV5XQ4N
+q1FwQkav+puSMKZWB6atORY6GormpMK7VZR1XhhLpQKCAQEA0sqThRbgGZr1IB2v
+fhlCwtBLnOL6cUCH8QLonBN7mLM1q8/kM5CXY3MCkrwqdV+YwC2mvE+Q8jdOD9f5
+tqQ9wf78EJW640rLCAgHrpHFiOAllRAUzkKJj5U8i21LQlSxXcX5a24T22n1PF+1
+qmZ2/2QQoSkV9CgkVbezUrbG8skrNVNCeV3vlbWVSq9X8prx073GJRtO7ifXaQAr
+F4bMAq9Ehvtcza6aFPXmOfwR2EXoK/OqJUZ0jlGyypzjamFG/y97CfohH+4q39/E
+nZI+3ubiF+FfpOzUuhSxnNvBel7/IqLhDIknYgVbkKhAytl3CRtWgnBn9OxT1Cbw
+hYuJQQKCAQBVXL0gsoAYdWQ3cr3Q5hphr8VeRxx3sB4mBZPCvtl1T4oGw1rIcyFv
+qs2Pl+rQIO38itA7tHfIgg7ZX1mfvWlqW5nAoZkfZ1aiLYLCfaBgC4nfAhhYRqxi
+HbMuzrhtny9SWTWvUyovnpQIKMyVfwxcNhv5Nvp664XhGe9QvbpEWHXrMZVp8Qbs
+9F4CelRGgh3FtauOKsYcTUVFa+I64529a3C270qc+V2zKwISkAEaMPy0glh3515Q
+oYqTM5oYP+SgOAR6VANb3lANbXIs8TDaKrSPol432piRjr6cExtU4VGjjuKxV36K
+0xbUAHZqmSUT+dSoWwyVjWD3FdYrOxZ1AoIBADwwUIdheYJbVVlcRZclm1pDoVCB
+bzh57GLKQ7KLj+gGp2AoizUKRELLKI844HZ70d2hghEcWei0sfzExRGq61yaNfHa
+lf3SiS6eJ7ivRHWwtrUXTOfO5LcVGzVLp4TMXvl4uZMrHVSB7vGJsDpoRaCK8hKf
+/f3d2lPRWcRQU9Gyc4hQE6daH0pVxrwqnWjmPvf9AIxs9vf6RVGR3y3dyccJeiph
+vC2sZv29dDlfWHSBun0vZzd+Xk73Qn3hSMM083FZrJWhqdzaOA0NfpdYgVxfn5Q+
+B1BYbv02WurCQwdWsCiDiLrXEc4HQT/fY+cV41fBrE2Kb4g565qd93Rh80w=
+-----END RSA PRIVATE KEY-----
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/resp-good.dat b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/resp-good.dat
new file mode 100644
index 0000000000000000000000000000000000000000..0004e5f8ba0226217345899a68ac2ba4d229b1ba
GIT binary patch
literal 2259
zcmcJQYdDna8pr2-=bbTT#wliKkWft;D9Oh`l_mWC8V4oj#U
zLk^41B%LG2VmF-}mgNxD$gIk;9U|6f@Ah8T-s{8uvOhc@{`YfV&vV_^_5b~EScvJu
z0*E3ZrWF=qn$YqTG=M_M!2kdWF}1SNRrt81*c;wU#liAuq#J}*1>Ib}3k)8#+WK9{
z;X#)jR0SBf)P}`F_6LJ`R5f_nlEmS0%wQfrn9B|2%c}ouLgJx=oUjlLC1co_3e#W{
zD%IGOMrXm!uoG-9`wvA?M1mv~0#XCxH{7cBkLXD~+Q+u3wKDV%pyWYnkKr}*0dtGu
zn|-7CVOw@-IcE@tKu{TsL;Tm9#rm)=tn=^rKxi4HtZRPgpf|@*lF4pUP8IA}v)snxrRrmn!`B=_+5aJ2e$Czkgz5H(6OsI^sMn
zVYaK2ET7JI&KG$iYck?t!C+b^wpFmktXMMLzS2EYbab6VXt|+I?m8+zD`)46GxU&@
zkPgdF&fq}q%P)$3b&`Up{V&hVE8OepB(@8#G4_(;1`6@bQN){nXQl_B{U@?FCCA$P
zoGab`u485P=x~hS=Go5mtX3V-=ldUf_HBEUpqFMo!@Y9W!b2^Z)^_g0fsV~>u?c15
z0*f$%=Db5w(FLef>Pqo1VLxx3h&?h<=PC+4+iCK|pV$I5mlln95o$vl1{1E+lY#vH
z@f7T}a(TaljxU62g-;51RVx&R#ywkc80xTIg~}zf7DjIX~7v%5c
zPP{Iyp5$&YZ4
zsjh)q8Ds7dvEmDUynO$&3|E5?y5^0YIk|ERX%8!%LtA2Y-J9|(e%je)Ox}^VGlKMr
zd4XS+V$q^GbMBo__=1Hz1GOA8&XSzT{K3`jx!84q5RC1N^nwMQ-O!uu_6_UOD?grQ
zw^X3D1unSuWaoz2zWyJhhy|iAD)PIfu4;`-OX
zz`>g*N8gSFTc>J-+GtV%pBua@YXsY8F?)4BGLkx*hwQ3uzh)&5Z~)V)+uJ^WwaslndbIc0pp&wM
zJe6Z+u4po`aMa0uEF!JD$I*81?Ct{hNUlJ2)?Fm*a60kR10E-6R^y`|)6>keMAP|;
zizSB3ar3_$j{uC`4=2~z&yA&bh-pu^J?W6K`dpG2{`HZ%<>PURFRti
literal 0
HcmV?d00001
diff --git a/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/resp-revoked.dat b/kong-versions/3.8.0/kong/spec/fixtures/ocsp_certs/resp-revoked.dat
new file mode 100644
index 0000000000000000000000000000000000000000..9744f11df95d86d445534d1e8181468b84bf0967
GIT binary patch
literal 2276
zcmcJQYdDna8pmhed1nkWNRAP5N~L&bh9QI;a>^lxG$UljV1z^zQW|myF%l{XQMl-U
zkYYQIQ#w#9hn2>0IgCSPV^ZwV-tE2CzSf8JWqo)){Qu8=JVK@qJXpGPl3h)CI^2CJ}lsP
z2qy?(Hp>LCp!KOhADkGpbyH%n7_&ehdLWG!Oy{}(DMDbuQ`C?kDPcT>$3X;06Nkg=
zXlarmD&z_2@%}@q2_XP!Bn%V-V$`3Od4&z6oExH8JTckp<*SwhinT#Izxl3h^wtbb
z+zv6a-R{5?9|3?ZK)%Qy-^Am|e>8ZXUh+X{qDy}7R
zgCIc^|DHIDxD`P-9D{@*7yuk*<07weoyl=T&ijd)VuW&{cPA9swstUW4LYWg3n`C+
zlbLMWRMz%F#9;Jykw$7pRN{ToaJ)`Ul(Q8-NP|QqS6|H(D9od#+ihrkl!UQJ4}*~X
zZT0Ns)PkHavjP<$1W_Zc?EiMQv8Qrca@G3Ql93qZG^T$0d{~POL(Ec5X&3i%=Fy!m
zZ26iQ>(}Yx^(ap8(FDJUt7!
z{3pP$f@^ldN~kPxNZrN^z1;W8t|x(Y{=jN?wp