def METHOD_NAME(
    self,
    kube_apis,
    ingress_controller_prerequisites,
    crd_ingress_controller,
    transport_server_setup,
    ts_externalname_setup,
):
    wait_before_test()
    nginx_file_path = f"/etc/nginx/nginx.conf"
    nginx_conf = ""
    nginx_conf = get_file_contents(
        kube_apis.v1, nginx_file_path, ts_externalname_setup.ic_pod_name, ingress_controller_prerequisites.namespace
    )
    resolver_count = nginx_conf.count("resolver kube-dns.kube-system.svc.cluster.local;")
    ts_file_path = (
        f"/etc/nginx/stream-conf.d/ts_{transport_server_setup.namespace}_{transport_server_setup.name}.conf"
    )
    ts_conf = ""
    retry = 0
    while f"{ts_externalname_setup.external_host}:5353" not in ts_conf and retry < 5:
        wait_before_test()
        ts_conf = get_file_contents(
            kube_apis.v1,
            ts_file_path,
            ts_externalname_setup.ic_pod_name,
            ingress_controller_prerequisites.namespace,
        )
        retry = +1
    assert resolver_count == 2  # one for http and other for stream context
    assert (
        f"server {ts_externalname_setup.external_host}:5353 max_fails=1 fail_timeout=10s max_conns=0 resolve;"
        in ts_conf
    )