diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 904b044b81..e42e330a0d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: types: [go] pass_filenames: false - repo: https://github.com/golangci/golangci-lint - rev: v1.50.1 + rev: v1.51.1 hooks: - id: golangci-lint args: [--new-from-patch=/tmp/diff.patch] @@ -51,7 +51,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black - repo: https://github.com/python-jsonschema/check-jsonschema diff --git a/perf-tests/suite/test_ap_reload_perf.py b/perf-tests/suite/test_ap_reload_perf.py index 9168e1d521..88b2ec62db 100644 --- a/perf-tests/suite/test_ap_reload_perf.py +++ b/perf-tests/suite/test_ap_reload_perf.py @@ -62,7 +62,6 @@ def __init__(self, req_url): def enable_prometheus_port( cli_arguments, kube_apis, ingress_controller_prerequisites, crd_ingress_controller_with_ap ) -> None: - namespace = ingress_controller_prerequisites.namespace port = V1ContainerPort(9113, None, None, "prometheus", "TCP") print("------------------------- Enable 9113 port in IC ----------------------------") diff --git a/tests/suite/test_ingress_mtls.py b/tests/suite/test_ingress_mtls.py index 6ebe7922c4..170af4ab57 100644 --- a/tests/suite/test_ingress_mtls.py +++ b/tests/suite/test_ingress_mtls.py @@ -47,7 +47,6 @@ def setup_policy(kube_apis, test_namespace, mtls_secret, tls_secret, policy): def teardown_policy(kube_apis, test_namespace, tls_secret, pol_name, mtls_secret): - print("Delete policy and related secrets") delete_secret(kube_apis.v1, tls_secret, test_namespace) delete_policy(kube_apis.custom_objects, pol_name, test_namespace) diff --git a/tests/suite/test_virtual_server_wildcard.py b/tests/suite/test_virtual_server_wildcard.py index 98c763f3f6..e8a9c2e91f 100644 --- a/tests/suite/test_virtual_server_wildcard.py +++ b/tests/suite/test_virtual_server_wildcard.py @@ -21,7 +21,6 @@ ) class TestVirtualServerWildcard: def test_vs_status(self, kube_apis, crd_ingress_controller, virtual_server_setup): - wait_and_assert_status_code(200, virtual_server_setup.backend_1_url, virtual_server_setup.vs_host) wait_and_assert_status_code(200, virtual_server_setup.backend_2_url, virtual_server_setup.vs_host) wait_and_assert_status_code(404, virtual_server_setup.backend_1_url, "test.example.com")