Skip to content

Commit

Permalink
test(integration): re-enable some tests by renaming their filename (#…
Browse files Browse the repository at this point in the history
…9906)


Co-authored-by: Michael Martin <flrgh@protonmail.com>
  • Loading branch information
windmgc and flrgh authored Dec 13, 2022
1 parent deede05 commit 2b8d444
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 244 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ jobs:
eval `luarocks path`
scripts/validate-rockspec
- name: Check spec file misspelling
run: |
scripts/check_spec_files_spelling.sh
- name: Unit tests
run: |
eval `luarocks path`
Expand Down
26 changes: 26 additions & 0 deletions scripts/check_spec_files_spelling.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -e

function red() {
echo -e "\033[1;31m$*\033[0m"
}

readarray -t FOUND < \
<(
git ls-files 'spec/[0-9]**.lua' \
| grep -vE \
-e '_spec.lua$' \
-f spec/on_demand_specs
)

if (( ${#FOUND[@]} > 0 )); then
echo
red "----------------------------------------------------------------"
echo "Found some files in spec directory that do not have the _spec suffix, please check if you're misspelling them. If there is an exception, please add the coressponding files(or their path regexes) into the whitelist spec/on_demand_specs."
echo
echo "Possible misspelling file list:"
echo
printf "%s\n" "${FOUND[@]}"
red "----------------------------------------------------------------"
exit 1
fi
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ describe("Plugins conf property" , function()
local body = assert.res_status(200 , res)
local json = assert(cjson.decode(body))
assert.equal(2, tablex.size(json.plugins.available_on_server))
assert.True(json.plugins.available_on_server["key-auth"])
assert.True(json.plugins.available_on_server["basic-auth"])
assert.truthy(json.plugins.available_on_server["key-auth"])
assert.truthy(json.plugins.available_on_server["basic-auth"])
end)
end)

Expand Down
242 changes: 0 additions & 242 deletions spec/02-integration/04-admin_api/18-worker-events.lua

This file was deleted.

4 changes: 4 additions & 0 deletions spec/on_demand_specs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Whitelist regexes representing file paths that will not be tested during running busted CI
spec/02-integration/05-proxy/10-balancer/05-stress.lua
spec/03-plugins/16-jwt/fixtures.lua
spec/04-perf/.*

4 comments on commit 2b8d444

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:2b8d44487a3f3919a9369549c62f42f75cc9313c
Artifacts available https://github.com/Kong/kong/actions/runs/3683292737

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker image available kong/kong:master-deb
Artifacts avaialble https://github.com/Kong/kong/actions/runs/3683292737

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker image available kong/kong:master-apk
Artifacts avaialble https://github.com/Kong/kong/actions/runs/3683292737

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker image available kong/kong:master-rpm
Artifacts avaialble https://github.com/Kong/kong/actions/runs/3683292737

Please sign in to comment.