Skip to content

Commit

Permalink
test: fix plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
bzp2010 committed Nov 18, 2021
1 parent 5650ec0 commit 96f9ce2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions t/plugin/openwhisk.t
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ __DATA__
--- config
location /t {
content_by_lua_block {
local plugin = require("apisix.plugins.openwhisk-serverless")
local plugin = require("apisix.plugins.openwhisk")
local ok, err = plugin.check_schema({api_host = "http://127.0.0.1:3233", service_token = "test:test", namespace = "test", action = "test"})
if not ok then
ngx.say(err)
Expand All @@ -49,7 +49,7 @@ done
--- config
location /t {
content_by_lua_block {
local plugin = require("apisix.plugins.openwhisk-serverless")
local plugin = require("apisix.plugins.openwhisk")
local ok, err = plugin.check_schema({service_token = "test:test", namespace = "test", action = "test"})
if not ok then
ngx.say(err)
Expand All @@ -69,7 +69,7 @@ property "api_host" is required
--- config
location /t {
content_by_lua_block {
local plugin = require("apisix.plugins.openwhisk-serverless")
local plugin = require("apisix.plugins.openwhisk")
local ok, err = plugin.check_schema({api_host = 3233, service_token = "test:test", namespace = "test", action = "test"})
if not ok then
ngx.say(err)
Expand All @@ -94,7 +94,7 @@ property "api_host" validation failed: wrong type: expected string, got number
ngx.HTTP_PUT,
[[{
"plugins": {
"openwhisk-serverless": {
"openwhisk": {
"api_host": "http://127.0.0.1:3233",
"service_token": "23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP",
"namespace": "guest",
Expand Down Expand Up @@ -167,7 +167,7 @@ Content-Type: application/json
ngx.HTTP_PUT,
[[{
"plugins": {
"openwhisk-serverless": {
"openwhisk": {
"api_host": "http://127.0.0.1:3233",
"service_token": "23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP",
"namespace": "guest",
Expand Down

0 comments on commit 96f9ce2

Please # to comment.