Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Jan 21, 2025
1 parent 90a6427 commit 81dea70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 0 additions & 6 deletions tests/data/rate-limit/spec/virtual-server-jwt-claim-sub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ spec:
policies:
- name: rate-limit-jwt-claim-sub
upstreams:
- name: backend2
service: backend2-svc
port: 80
- name: backend1
service: backend1-svc
port: 80
routes:
- path: "/backend1"
action:
pass: backend1
- path: "/backend2"
action:
pass: backend2
6 changes: 2 additions & 4 deletions tests/suite/test_rl_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def test_rl_policy_jwt_claim_sub(
src,
virtual_server_setup.namespace,
)
wait_before_test(10)
wait_before_test()

policy_info = read_custom_resource(kube_apis.custom_objects, test_namespace, "policies", pol_name)
occur = []
Expand All @@ -393,17 +393,15 @@ def test_rl_policy_jwt_claim_sub(
virtual_server_setup.backend_1_url,
headers={"host": virtual_server_setup.vs_host, "Authorization": f"Bearer {token}"},
)
# wait_before_test(120)
print(resp.status_code)
wait_before_test()
assert resp.status_code == 200
while time.perf_counter() < t_end:
resp = requests.get(
virtual_server_setup.backend_1_url,
headers={"host": virtual_server_setup.vs_host, "Authorization": f"Bearer {token}"},
)
print(resp.status_code)
occur.append(resp.status_code)
wait_before_test(300)
delete_policy(kube_apis.custom_objects, pol_name, test_namespace)
self.restore_default_vs(kube_apis, virtual_server_setup)
assert (
Expand Down

0 comments on commit 81dea70

Please sign in to comment.