diff --git a/api/load-test/locust-ewc.py b/api/load-test/locust-ewc.py index f0861a98..35ead0f2 100644 --- a/api/load-test/locust-ewc.py +++ b/api/load-test/locust-ewc.py @@ -45,7 +45,7 @@ def get_data_single_station_single_parameter_last_x_hours(self): dt_string = date_time.strftime("%Y-%m-%dT%H:%M:%SZ") station_id = random.choice(self.station_ids) parameter = random.choice(self.stations[station_id]) - response = self.client.get( + self.client.get( f"/collections/observations/locations/{station_id}?parameter-name={parameter}&datetime={dt_string}/..", name=f"location {hours:02d} hours", headers=headers, @@ -55,7 +55,7 @@ def get_data_single_station_single_parameter_last_x_hours(self): def get_data_single_position_single_parameter(self): (lon, lat) = random.choice(self.station_locations) parameter = random.choice(self.stations_by_location[(lon, lat)]) - response = self.client.get( + self.client.get( f"/collections/observations/position?coords=POINT({lon} {lat})¶meter-name={parameter}", name="position", headers=headers, @@ -74,7 +74,7 @@ def get_data_area_single_parameter_last_hour(self): top = cy + sz polygon = f"POLYGON(({left} {bottom},{right} {bottom},{right} {top},{left} {top},{left} {bottom}))" url = f"/collections/observations/area?coords={polygon}&standard_names={standard_name}&datetime={dt_string}/.." - response = self.client.get(url, name=f"area {sz*2.0}deg x {sz*2.0}deg x 1h", headers=headers) + self.client.get(url, name=f"area {sz*2.0}deg x {sz*2.0}deg x 1h", headers=headers) # if sz == 2.0: # j = response.json() # # print(sz*2.0) diff --git a/api/load-test/locustfile.py b/api/load-test/locustfile.py index 01698252..2a268c60 100644 --- a/api/load-test/locustfile.py +++ b/api/load-test/locustfile.py @@ -38,7 +38,8 @@ def get_data_single_station_single_parameter(self): @task def get_data_bbox_three_parameters(self): self.client.get( - "/collections/observations/area?parameter-name=wind_speed:10.0:mean:PT10M,wind_speed:10.0:mean:PT10M,relative_humidity:2.0:mean:PT1M&" + "/collections/observations/area?parameter-name=" + "wind_speed:10.0:mean:PT10M,wind_speed:10.0:mean:PT10M,relative_humidity:2.0:mean:PT1M&" "coords=POLYGON((5.0 52.0,6.0 52.0,6.0 52.1,5.0 52.1,5.0 52.0))", name="bbox", headers=headers,