Skip to content

Commit

Permalink
tests: update test case name
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu327 committed Mar 7, 2024
1 parent cc648fe commit 51369fc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/apisix/t/bk-delete-cookie.t
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ passed
=== TEST 3: check ctx var
=== TEST 3: check with cookie
--- request
GET /hello HTTP/1.1
--- more_headers
Expand Down
6 changes: 3 additions & 3 deletions src/apisix/t/bk-log-context.t
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ passed
=== TEST 3: check ctx var
=== TEST 3: check ctx var should_log_response_body
--- request
GET /hello HTTP/1.1
--- error_log
Expand Down Expand Up @@ -143,7 +143,7 @@ passed
=== TEST 5: check ctx var
=== TEST 5: check ctx var backend_part_response_body
--- request
GET /hello HTTP/1.1
--- response_body
Expand Down Expand Up @@ -193,7 +193,7 @@ passed
=== TEST 7: check ctx var
=== TEST 7: check ctx var backend_part_response_body empty
--- request
GET /hello HTTP/1.1
--- response_body
Expand Down
2 changes: 1 addition & 1 deletion src/apisix/t/bk-opentelemetry.t
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ __DATA__
=== TEST 2: add plugin
=== TEST 2: add plugin route
--- config
location /t {
content_by_lua_block {
Expand Down
4 changes: 2 additions & 2 deletions src/apisix/t/bk-resource-context.t
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ done
},
"serverless-post-function": {
"phase": "rewrite",
"functions" : ["return function(conf, ctx) ngx.say(string.format(\"ID: %d, Name: %s, Auth: %s\", ctx.var.bk_resource_id, ctx.var.bk_resource_name, require(\"toolkit.json\").encode(ctx.var.bk_resource_auth))); ngx.exit(200); end"]
"functions" : ["return function(conf, ctx) ngx.say(string.format(\"bk_resource_id: %d, bk_resource_name: %s, bk_resource_auth: %s\", ctx.var.bk_resource_id, ctx.var.bk_resource_name, require(\"toolkit.json\").encode(ctx.var.bk_resource_auth))); ngx.exit(200); end"]
}
},
"upstream": {
Expand Down Expand Up @@ -113,4 +113,4 @@ passed
--- request
GET /hello HTTP/1.1
--- response_body
ID: 1, Name: resource, Auth: {"resource_perm_required":false,"skip_user_verification":true,"verified_app_required":true,"verified_user_required":true}
bk_resource_id: 1, bk_resource_name: resource, bk_resource_auth: {"resource_perm_required":false,"skip_user_verification":true,"verified_app_required":true,"verified_user_required":true}
6 changes: 3 additions & 3 deletions src/apisix/t/bk-response-check.t
Original file line number Diff line number Diff line change
Expand Up @@ -152,23 +152,23 @@ passed
=== TEST 5: fetch the prometheus metric data
=== TEST 5: fetch the prometheus metric data apisix_apigateway_api_requests_total
--- request
GET /apisix/prometheus/metrics
--- response_body eval
qr/apisix_apigateway_api_requests_total\{api_name="demo",stage_name="prod",resource_name="",status="200",proxy_phase="",proxy_error="0"\} \d+/
=== TEST 6: fetch the prometheus metric data
=== TEST 6: fetch the prometheus metric data apisix_apigateway_api_request_duration_milliseconds_bucket
--- request
GET /apisix/prometheus/metrics
--- response_body eval
qr/apisix_apigateway_api_request_duration_milliseconds_bucket\{api_name="demo",stage_name="prod",resource_name="",le="5000"\} \d+/
=== TEST 7: fetch the prometheus metric data
=== TEST 7: fetch the prometheus metric data apisix_apigateway_app_requests_total
--- request
GET /apisix/prometheus/metrics
--- response_body eval
Expand Down
4 changes: 2 additions & 2 deletions src/apisix/t/bk-stage-context.t
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ passed
=== TEST 4: check ctx var
=== TEST 4: check ctx var part one
--- request
GET /hello HTTP/1.1
--- response_body
Expand Down Expand Up @@ -235,7 +235,7 @@ passed
=== TEST 6: check ctx var
=== TEST 6: check ctx var part two
--- request
GET /hello HTTP/1.1
--- response_body
Expand Down

0 comments on commit 51369fc

Please sign in to comment.