-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
58 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# emacs | ||
*~ | ||
\#*\# | ||
.\#* | ||
.\#* | ||
lua_install | ||
luacov.stats.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
return { | ||
["include"] = { | ||
'kong/plugins/oidc' | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
export LUA_VERSION=${LUA_VERSION:-5.1} | ||
export KONG_VERSION=${KONG_VERSION:-0.11.2-0} | ||
export LUA_RESTY_OPENIDC_VERSION=${LUA_RESTY_OPENIDC_VERSION:-1.5.3} | ||
|
||
apt-get update | ||
apt-get install -y unzip | ||
|
||
pip install hererocks | ||
hererocks lua_install -r^ --lua=${LUA_VERSION} | ||
export PATH=${PATH}:${PWD}/lua_install/bin | ||
|
||
luarocks install kong ${KONG_VERSION} | ||
luarocks install lua-resty-openidc ${LUA_RESTY_OPENIDC_VERSION} | ||
luarocks install lua-cjson | ||
luarocks install luaunit | ||
luarocks install luacov | ||
|
||
lua -lluacov test/unit/test_filter.lua -o TAP --failure | ||
lua -lluacov test/unit/test_filters_advanced.lua -o TAP --failure | ||
lua -lluacov test/unit/test_utils.lua -o TAP --failure | ||
lua -lluacov test/unit/test_handler_mocking_openidc.lua --failure | ||
lua -lluacov test/unit/test_introspect.lua -o TAP --failure | ||
lua -lluacov test/unit/test_utils_bearer_access_token.lua -o TAP --failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters