From b5e326a7ff4da12441ba95c552fe29ec67099835 Mon Sep 17 00:00:00 2001 From: samugi Date: Wed, 15 Nov 2023 13:00:02 +0100 Subject: [PATCH] tests(key-auth): deprecate mockbin mockbin.com redirects to insomnia official site and triggers a security policy, which makes tests fail. --- spec/03-plugins/09-key-auth/02-access_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/03-plugins/09-key-auth/02-access_spec.lua b/spec/03-plugins/09-key-auth/02-access_spec.lua index 4ba12da2306..57e277de487 100644 --- a/spec/03-plugins/09-key-auth/02-access_spec.lua +++ b/spec/03-plugins/09-key-auth/02-access_spec.lua @@ -51,8 +51,8 @@ for _, strategy in helpers.each_strategy() do local service7 = bp.services:insert{ protocol = "http", - port = 80, - host = "mockbin.com", + port = helpers.mock_upstream_port, + host = "localhost", } local route7 = bp.routes:insert {