Skip to content

Commit c6d7e88

Browse files
author
Jim Ryan
committed
remove used vars via pre commit
1 parent 425b3b3 commit c6d7e88

18 files changed

+17
-67
lines changed

perf-tests/suite/ap_request_perf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22

33
import yaml
4-
from locust import HttpUser, TaskSet, task
4+
from locust import HttpUser, task
55

66
host = ""
77

perf-tests/suite/test_ap_reload_perf.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import logging
32
import os
43
import re
54
import subprocess
@@ -9,7 +8,7 @@
98
import requests
109
import yaml
1110
from kubernetes.client import V1ContainerPort
12-
from settings import DEPLOYMENTS, TEST_DATA
11+
from settings import TEST_DATA
1312
from suite.utils.ap_resources_utils import (
1413
create_ap_logconf_from_yaml,
1514
create_ap_policy_from_yaml,
@@ -25,14 +24,9 @@
2524
delete_items_from_yaml,
2625
ensure_connection_to_public_endpoint,
2726
ensure_response_from_backend,
28-
get_events,
29-
get_file_contents,
30-
get_first_pod_name,
31-
get_ingress_nginx_template_conf,
3227
get_resource_metrics,
3328
replace_ingress_with_ap_annotations,
3429
wait_before_test,
35-
wait_for_event_increment,
3630
wait_until_all_pods_are_ready,
3731
)
3832
from suite.utils.yaml_utils import get_first_ingress_host_from_yaml

perf-tests/suite/test_vs_perf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import json
2-
import re
3-
import subprocess
4-
from datetime import datetime
52

63
import pytest
74
import requests

tests/suite/test_app_protect_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22
import requests
33
import yaml
4-
from settings import CRDS, DEPLOYMENTS, TEST_DATA
4+
from settings import CRDS, TEST_DATA
55
from suite.utils.ap_resources_utils import (
66
create_ap_logconf_from_yaml,
77
create_ap_policy_from_yaml,

tests/suite/test_default_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44
import requests
55
from requests.exceptions import ConnectionError
6-
from settings import BASEDIR, DEPLOYMENTS, TEST_DATA
6+
from settings import TEST_DATA
77
from suite.utils.resources_utils import (
88
create_secret_from_yaml,
99
delete_secret,

tests/suite/test_egress_mtls.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
import pytest
2-
import requests
32
from settings import TEST_DATA
43
from suite.utils.policy_resources_utils import create_policy_from_yaml, delete_policy
54
from suite.utils.resources_utils import create_secret_from_yaml, delete_secret, wait_before_test
65
from suite.utils.ssl_utils import create_sni_session
7-
from suite.utils.vs_vsr_resources_utils import (
8-
delete_and_create_vs_from_yaml,
9-
patch_v_s_route_from_yaml,
10-
patch_virtual_server_from_yaml,
11-
read_vs,
12-
read_vsr,
13-
)
6+
from suite.utils.vs_vsr_resources_utils import delete_and_create_vs_from_yaml, patch_virtual_server_from_yaml, read_vs
147

158
std_vs_src = f"{TEST_DATA}/virtual-server/standard/virtual-server.yaml"
169
std_vsr_src = f"{TEST_DATA}/virtual-server-route/route-multiple.yaml"

tests/suite/test_jwt_policies_jwksuri.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
create_virtual_server_from_yaml,
1010
delete_and_create_vs_from_yaml,
1111
delete_virtual_server,
12-
patch_v_s_route_from_yaml,
1312
)
1413

1514
std_vs_src = f"{TEST_DATA}/virtual-server/standard/virtual-server.yaml"

tests/suite/test_rl_ingress.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22

33
import pytest
44
import requests
5-
import yaml
6-
from kubernetes.client import NetworkingV1Api
7-
from settings import DEPLOYMENTS, TEST_DATA
5+
from settings import TEST_DATA
86
from suite.fixtures.fixtures import PublicEndpoint
9-
from suite.utils.custom_assertions import assert_event_count_increased
107
from suite.utils.resources_utils import (
118
are_all_pods_in_ready_state,
129
create_example_app,

tests/suite/test_rl_policies.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@
55
from settings import TEST_DATA
66
from suite.utils.custom_resources_utils import read_custom_resource
77
from suite.utils.policy_resources_utils import create_policy_from_yaml, delete_policy
8-
from suite.utils.resources_utils import (
9-
get_first_pod_name,
10-
get_pod_list,
11-
get_vs_nginx_template_conf,
12-
scale_deployment,
13-
wait_before_test,
14-
)
8+
from suite.utils.resources_utils import get_pod_list, get_vs_nginx_template_conf, scale_deployment, wait_before_test
159
from suite.utils.vs_vsr_resources_utils import (
1610
create_virtual_server_from_yaml,
1711
delete_virtual_server,

tests/suite/test_transport_server_backup_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
2-
from settings import DEPLOYMENTS, TEST_DATA
2+
from settings import TEST_DATA
33
from suite.fixtures.fixtures import PublicEndpoint
4-
from suite.utils.custom_resources_utils import create_ts_from_yaml, delete_ts, patch_ts_from_yaml, read_ts
4+
from suite.utils.custom_resources_utils import create_ts_from_yaml, delete_ts, patch_ts_from_yaml
55
from suite.utils.resources_utils import (
66
create_configmap_from_yaml,
77
create_items_from_yaml,

0 commit comments

Comments
 (0)