Skip to content

tiered rate limit jwt e2e tests #7412

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

Merged
merged 23 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0c80c4a
allow container image to be built in project root or tests directory
pdabelf5 Feb 21, 2025
64f5736
add vsr test to rate limit by JWT claim
pdabelf5 Feb 24, 2025
5ebbf1b
make all nginx variables use underscores rather than hyphens
pdabelf5 Feb 25, 2025
00092d0
add e2e tests for tiered rate limits
pdabelf5 Feb 25, 2025
e6a66b1
allow +1 request in rate limit tests
pdabelf5 Feb 26, 2025
be5115f
add debug
pdabelf5 Feb 27, 2025
c0366e8
test only one rl test
pdabelf5 Feb 27, 2025
14d9b1a
only run my test please
pdabelf5 Feb 27, 2025
0e8fc3e
re-add all tests
pdabelf5 Feb 27, 2025
e7a77de
remove custom marker
pdabelf5 Feb 27, 2025
431df53
remove debug line
pdabelf5 Feb 27, 2025
f64340f
remove event assertion
pdabelf5 Feb 28, 2025
2d2ce9d
Merge branch 'main' into rate-limit-tests
vepatel Feb 28, 2025
0a99c3f
run rl tests in own job
vepatel Feb 28, 2025
6704679
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 28, 2025
45dbe8d
update ratelimit examples to use the same jwk secret as jwt example
pdabelf5 Mar 3, 2025
485f441
move tiered rate limit tests to their own class
pdabelf5 Mar 3, 2025
a6fbf5f
Merge branch 'rate-limit-tests' of github.com:nginx/kubernetes-ingres…
pdabelf5 Mar 3, 2025
5a5fa9c
Merge branch 'main' into rate-limit-tests
vepatel Mar 3, 2025
d19b970
re-add wait for event check to duplicate default policy test
pdabelf5 Mar 3, 2025
462bb1f
Merge branch 'rate-limit-tests' of github.com:nginx/kubernetes-ingres…
pdabelf5 Mar 3, 2025
9703c6c
Merge branch 'main' into rate-limit-tests
pdabelf5 Mar 3, 2025
baaea20
Merge branch 'main' into rate-limit-tests
pdabelf5 Mar 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
re-add all tests
  • Loading branch information
pdabelf5 committed Feb 28, 2025
commit 0e8fc3e74b91370338f53503d291094c6f2324bf
75 changes: 74 additions & 1 deletion .github/data/matrix-smoke-nap.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,77 @@
{
"images": [],
"images": [
{
"label": "AP_WAF 1/4",
"image": "ubi-8-plus-nap",
"type": "plus",
"nap_modules": "waf",
"marker": "appprotect_waf_policies_allow",
"platforms": "linux/amd64"
},
{
"label": "AP_WAF 2/4",
"image": "ubi-9-plus-nap",
"type": "plus",
"nap_modules": "waf",
"marker": "'appprotect_waf_policies and not appprotect_waf_policies_allow and not appprotect_waf_policies_vsr'",
"platforms": "linux/amd64"
},
{
"label": "AP_WAF 3/4",
"image": "alpine-plus-nap-fips",
"type": "plus",
"nap_modules": "waf",
"marker": "appprotect_waf_policies_grpc",
"platforms": "linux/amd64"
},
{
"label": "AP_WAF 4/4",
"image": "debian-plus-nap",
"type": "plus",
"nap_modules": "waf",
"marker": "'appprotect_watch or appprotect_batch or appprotect_integration or appprotect_waf_policies_vsr'",
"platforms": "linux/amd64"
},
{
"label": "AP_WAF_V5 1/1",
"image": "debian-plus-nap-v5",
"type": "plus",
"nap_modules": "waf",
"marker": "appprotect_waf_v5",
"platforms": "linux/amd64"
},
{
"label": "AP_DOS 1/3",
"image": "debian-plus-nap",
"type": "plus",
"nap_modules": "dos",
"marker": "'dos and not dos_learning and not dos_ingress'",
"platforms": "linux/amd64"
},
{
"label": "AP_DOS 2/3",
"image": "debian-plus-nap",
"type": "plus",
"nap_modules": "dos",
"marker": "'dos_ingress and not dos_learning'",
"platforms": "linux/amd64"
},
{
"label": "AP_DOS 3/3",
"image": "ubi-9-plus-nap",
"type": "plus",
"nap_modules": "dos",
"marker": "dos_learning",
"platforms": "linux/amd64"
},
{
"label": "AGENT 1/1",
"image": "debian-plus-nap",
"type": "plus",
"nap_modules": "waf",
"marker": "agent",
"platforms": "linux/amd64"
}
],
"k8s": []
}
80 changes: 79 additions & 1 deletion .github/data/matrix-smoke-oss.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,82 @@
{
"images": [],
"images": [
{
"label": "ingresses 1/2",
"image": "debian",
"type": "oss",
"marker": "'ingresses and not annotations and not basic_auth and not hsts and not watch_namespace and not wildcard_tls'",
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
},
{
"label": "ingresses 2/2",
"image": "debian",
"type": "oss",
"marker": "'annotations or basic_auth or hsts or watch_namespace or wildcard_tls'",
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
},
{
"label": "VSR 1/3",
"image": "alpine",
"type": "oss",
"marker": "'vsr and not vsr_upstream and not vsr_grpc and not vsr_status and not vsr_canary and not vsr_routing and not vsr_api and not vsr_redirects and not vsr_rewrite and not vsr_canned and not vsr_basic'",
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
},
{
"label": "VSR 2/3",
"image": "alpine",
"type": "oss",
"marker": "'vsr_basic or vsr_canned or vsr_rewrite or vsr_redirects or vsr_upstream'",
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
},
{
"label": "VSR 3/3",
"image": "alpine",
"type": "oss",
"marker": "'vsr_api or vsr_routing or vsr_canary or vsr_status or vsr_grpc'",
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
},
{
"label": "policies 1/2",
"image": "alpine",
"type": "oss",
"marker": "'policies and not policies_rl and not policies_ac and not policies_jwt and not policies_mtls'",
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
},
{
"label": "policies 2/2",
"image": "alpine",
"type": "oss",
"marker": "'policies_rl or policies_ac or policies_jwt or policies_mtls'",
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
},
{
"label": "VS 1/3",
"image": "debian",
"type": "oss",
"marker": "'vs and not vs_ipv6 and not vs_rewrite and not vs_responses and not vs_grpc and not vs_redirects and not vs_externalname and not vs_externaldns and not vs_certmanager and not vs_api and not vs_backup and not vs_use_cluster_ip and not vs_canary and not vs_upstream and not vs_config_map'",
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
},
{
"label": "VS 2/3",
"image": "debian",
"type": "oss",
"marker": "'vs_grpc or vs_redirects or vs_externalname or vs_externaldns or vs_api or vs_backup or vs_use_cluster_ip or vs_canary or vs_upstream or vs_config_map'",
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
},
{
"label": "VS 3/3",
"image": "debian",
"type": "oss",
"marker": "'vs_responses or vs_ipv6 or vs_rewrite or vs_certmanager'",
"platforms": "linux/arm, linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
},
{
"label": "TS",
"image": "ubi",
"type": "oss",
"marker": "ts",
"platforms": "linux/arm64, linux/amd64, linux/ppc64le, linux/s390x"
}
],
"k8s": []
}
79 changes: 78 additions & 1 deletion .github/data/matrix-smoke-plus.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,88 @@
{
"images": [
{
"label": "VS 1/3",
"image": "debian-plus",
"type": "plus",
"marker": "'vs and not vs_ipv6 and not vs_rewrite and not vs_responses and not vs_grpc and not vs_redirects and not vs_externalname and not vs_externaldns and not vs_certmanager and not vs_api and not vs_backup and not vs_use_cluster_ip and not vs_canary and not vs_upstream and not vs_config_map'",
"platforms": "linux/arm64, linux/amd64"
},
{
"label": "VS 2/3",
"image": "debian-plus",
"type": "plus",
"marker": "'vs_grpc or vs_redirects or vs_externalname or vs_externaldns or vs_api or vs_backup or vs_use_cluster_ip or vs_canary or vs_upstream or vs_config_map'",
"platforms": "linux/arm64, linux/amd64"
},
{
"label": "VS 3/3",
"image": "debian-plus",
"type": "plus",
"marker": "'vs_responses or vs_ipv6 or vs_rewrite or vs_certmanager'",
"platforms": "linux/arm64, linux/amd64"
},
{
"label": "TS",
"image": "debian-plus",
"type": "plus",
"marker": "ts",
"platforms": "linux/arm64, linux/amd64"
},
{
"label": "ingresses 1/2",
"image": "alpine-plus",
"type": "plus",
"marker": "'ingresses and not annotations and not basic_auth and not hsts and not watch_namespace and not wildcard_tls'",
"platforms": "linux/arm64, linux/amd64"
},
{
"label": "ingresses 2/2",
"image": "alpine-plus-fips",
"type": "plus",
"marker": "'annotations or basic_auth or hsts or watch_namespace or wildcard_tls'",
"platforms": "linux/arm64, linux/amd64"
},
{
"label": "VSR 1/3",
"image": "alpine-plus",
"type": "plus",
"marker": "'vsr and not vsr_upstream and not vsr_grpc and not vsr_status and not vsr_canary and not vsr_routing and not vsr_api and not vsr_redirects and not vsr_rewrite and not vsr_canned and not vsr_basic'",
"platforms": "linux/arm64, linux/amd64"
},
{
"label": "VSR 2/3",
"image": "alpine-plus-fips",
"type": "plus",
"marker": "'vsr_basic or vsr_canned or vsr_rewrite or vsr_redirects or vsr_upstream'",
"platforms": "linux/arm64, linux/amd64"
},
{
"label": "VSR 3/3",
"image": "alpine-plus",
"type": "plus",
"marker": "'vsr_api or vsr_routing or vsr_canary or vsr_status or vsr_grpc'",
"platforms": "linux/arm64, linux/amd64"
},
{
"label": "policies 1/2",
"image": "ubi-9-plus",
"type": "plus",
"marker": "'policies_paul'",
"marker": "'policies and not policies_ac and not policies_jwt and not policies_mtls'",
"platforms": "linux/arm64, linux/amd64, linux/s390x"
},
{
"label": "policies 2/2",
"image": "ubi-9-plus",
"type": "plus",
"marker": "'policies_ac or policies_jwt or policies_mtls'",
"platforms": "linux/arm64, linux/amd64, linux/s390x"
},
{
"label": "OIDC-UI 1/1",
"image": "debian-plus",
"type": "plus",
"marker": "oidc",
"platforms": "linux/arm64, linux/amd64"
}
],
"k8s": []
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ markers =[
"multi_ns",
"oidc",
"policies",
"policies_paul",
"policies_rl",
"policies_jwt",
"policies_ac",
Expand Down