Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests(rate-limiting): refactor tests #9764

Merged
merged 2 commits into from
Dec 1, 2022

Conversation

ADD-SP
Copy link
Contributor

@ADD-SP ADD-SP commented Nov 16, 2022

Summary

BLOCKS #9538

The tests of the rate-limiting plugin have many flaky factors, and it is hard to debug. Moreover, the structure of these test cases needs some improve, so I refactor it.

FT-3543

@github-actions github-actions bot added the chore Not part of the core functionality of kong, but still needed label Nov 16, 2022
@ADD-SP ADD-SP marked this pull request as ready for review November 16, 2022 08:54
.ci/run_tests.sh Outdated
@@ -33,14 +33,14 @@ fi
if [ "$TEST_SUITE" == "integration" ]; then
if [[ "$TEST_SPLIT" == first* ]]; then
# GitHub Actions, run first batch of integration tests
eval "$TEST_CMD" $(ls -d spec/02-integration/* | sort | grep -v 05-proxy)
:
Copy link
Member

Choose a reason for hiding this comment

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

These changes seem to be geared towards running only RL specs, for easy development. If that is the case then this file needs to be restored to the original before this PR can be merged. Just leaving this as a reminder

@@ -75,6 +75,7 @@ jobs:
name: Lint, Doc and Unit tests
runs-on: ubuntu-22.04
needs: build
if: false
Copy link
Member

Choose a reason for hiding this comment

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

Ditto: development aids, changes must be undone before merging

@ADD-SP ADD-SP force-pushed the add_sp/tests-rewrite-tests-of-rl-plugin branch 3 times, most recently from f8a9d33 to 1ea8994 Compare November 16, 2022 09:24
@ADD-SP ADD-SP force-pushed the add_sp/tests-rewrite-tests-of-rl-plugin branch 7 times, most recently from 86b5fc7 to 570d0da Compare November 17, 2022 02:56
@ADD-SP ADD-SP force-pushed the add_sp/tests-rewrite-tests-of-rl-plugin branch from 570d0da to 1735b91 Compare November 30, 2022 04:10
@github-actions github-actions bot removed the chore Not part of the core functionality of kong, but still needed label Nov 30, 2022
@ADD-SP ADD-SP force-pushed the add_sp/tests-rewrite-tests-of-rl-plugin branch 5 times, most recently from 4eb7c01 to 38f6be8 Compare November 30, 2022 04:34
@ADD-SP ADD-SP force-pushed the add_sp/tests-rewrite-tests-of-rl-plugin branch 3 times, most recently from 83bf220 to c45a9d5 Compare November 30, 2022 08:31
@ADD-SP ADD-SP force-pushed the add_sp/tests-rewrite-tests-of-rl-plugin branch from c45a9d5 to b39f266 Compare November 30, 2022 08:39
@dndx dndx merged commit a224e19 into master Dec 1, 2022
@dndx dndx deleted the add_sp/tests-rewrite-tests-of-rl-plugin branch December 1, 2022 07:45
oowl pushed a commit that referenced this pull request Aug 15, 2024
… JSON nulls (#9764)

* fix(pdk): fix a bug that pdk.log.serialize() will throw an error
when json entity set via pdk.log.set_serialize_value contains cjson.null
as value.

* handle cdata null

Cherry-picked from #13376

---------

Co-authored-by: Zachary Hu <[email protected]>
(cherry picked from commit 163f72a)

Co-authored-by: Robin Xiang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants