You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org> on 2023/04/24 07:44:12 UTC

[GitHub] [apisix] monkeyDluffy6017 commented on a diff in pull request #9345: feat: allow degradation

monkeyDluffy6017 commented on code in PR #9345:
URL: https://github.com/apache/apisix/pull/9345#discussion_r1174903027


##########
t/plugin/forward-auth.t:
##########
@@ -206,6 +206,42 @@ property "request_method" validation failed: matches none of the enum values
                         "uri": "/ping"
                     }]],
                 },
+                {
+                    url = "/apisix/admin/routes/4",
+                    data = [[{
+                        "plugins": {
+                            "forward-auth": {
+                                "uri": "http://127.0.0.1:1964/auth",

Review Comment:
   Using the nonexistent port is very unstable, could you try to use the  `serverless-pre-function` plugin and `core.response.exit(444)` to mock the unavailable auth server



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org