@@ -17,7 +17,7 @@ class TestPrometheusConnect(unittest.TestCase):
17
17
def setUp (self ):
18
18
"""Set up connection settings for prometheus."""
19
19
self .prometheus_host = os .getenv ("PROM_URL" )
20
- self .pc = PrometheusConnect (url = self .prometheus_host , disable_ssl = True )
20
+ self .pc = PrometheusConnect (url = self .prometheus_host , disable_ssl = False )
21
21
22
22
def test_metrics_list (self ):
23
23
"""Check if setup was done correctly."""
@@ -130,15 +130,15 @@ def test_get_metric_aggregation_with_incorrect_input_types(self): # noqa D102
130
130
131
131
def test_retry_on_error (self ): # noqa D102
132
132
retry = Retry (total = 3 , backoff_factor = 0.1 , status_forcelist = [400 ])
133
- pc = PrometheusConnect (url = self .prometheus_host , disable_ssl = True , retry = retry )
133
+ pc = PrometheusConnect (url = self .prometheus_host , disable_ssl = False , retry = retry )
134
134
135
135
with self .assertRaises (requests .exceptions .RetryError , msg = "too many 400 error responses" ):
136
136
pc .custom_query ("BOOM.BOOM!#$%" )
137
137
138
138
def test_get_label_names_method (self ): # noqa D102
139
139
labels = self .pc .get_label_names (params = {"match[]" : "up" })
140
- self .assertEqual (len (labels ), 4 )
141
- self .assertEqual (labels , ["__name__" , "env" , " instance" , "job" ])
140
+ self .assertEqual (len (labels ), 3 )
141
+ self .assertEqual (labels , ["__name__" , "instance" , "job" ])
142
142
143
143
144
144
class TestPrometheusConnectWithMockedNetwork (BaseMockedNetworkTestcase ):
0 commit comments