2626}
2727
2828
29+ @pytest .mark .requires_kubeconfig
2930@pytest .fixture (scope = "module" )
3031def port_forward_fixture (request ):
3132 """Pytest fixture to port forward loki backend pod to make it accessible
@@ -41,6 +42,7 @@ def port_forward(labels, port):
4142 return pytest .mark .parametrize ("port_forward_fixture" , [params ], indirect = True )
4243
4344
45+ @pytest .mark .requires_kubeconfig
4446@pytest .mark .parametrize (
4547 "endpoint_path" ,
4648 (
@@ -67,6 +69,7 @@ def test_loki_endpoint(endpoint_path: str, port_forward_fixture: V1Pod):
6769 response .close ()
6870
6971
72+ @pytest .mark .requires_kubeconfig
7073@port_forward (labels = MINIO_POD_LABELS , port = MINIO_PORT )
7174def test_minio_accessible (port_forward_fixture : V1Pod ):
7275 """This will hit liveness endpoint of minio API and verify that we
@@ -82,6 +85,7 @@ def test_minio_accessible(port_forward_fixture: V1Pod):
8285 response .close ()
8386
8487
88+ @pytest .mark .requires_kubeconfig
8589@port_forward (labels = LOKI_GATEWAY_POD_LABELS , port = LOKI_GATEWAY_PORT )
8690def test_loki_gateway (port_forward_fixture : V1Pod ):
8791 """This will hit an endpoint of loki gateway API and verify that we
@@ -99,6 +103,7 @@ def test_loki_gateway(port_forward_fixture: V1Pod):
99103 response .close ()
100104
101105
106+ @pytest .mark .requires_kubeconfig
102107@port_forward (labels = LOKI_GATEWAY_POD_LABELS , port = LOKI_GATEWAY_PORT )
103108def test_loki_gateway_fetch_logs (port_forward_fixture : V1Pod ):
104109 """This will hit an endpoint of loki gateway API to fetch some logs
0 commit comments