Skip to content

Commit 188e3bd

Browse files
author
J3utter
committed
Bump version to 0.18.0
1 parent c49d631 commit 188e3bd

5 files changed

Lines changed: 13 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "Record, mock, and test HTTP(s) requests. CLI agent for Stoobly"
1010
license = "Apache License 2.0"
1111
name = "stoobly-agent"
1212
readme = "README.md"
13-
version = "1.17.0"
13+
version = "1.18.0"
1414

1515
[tool.poetry.dependencies]
1616
python = "^3.12"

stoobly_agent/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
COMMAND = 'stoobly-agent'
2-
VERSION = '1.17.0'
2+
VERSION = '1.18.0'

stoobly_agent/app/cli/scaffold/templates/app/.Dockerfile.context

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM stoobly/agent:1.17
1+
FROM stoobly/agent:1.18
22

33
ARG USER_ID
44

stoobly_agent/app/proxy/intercept_settings.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,13 @@ def parsed_scenario_key(self):
325325
except InvalidScenarioKey:
326326
pass
327327

328+
@property
329+
def request_id(self):
330+
if self.__headers and custom_headers.MOCK_REQUEST_ID in self.__headers:
331+
return self.__headers[custom_headers.MOCK_REQUEST_ID]
332+
333+
return None
334+
328335
@scenario_key.setter
329336
def scenario_key(self, v):
330337
self.__data_rules.scenario_key = v

stoobly_agent/app/proxy/mock/eval_request_service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def eval_request(
5959
scenario_key = intercept_settings.scenario_key
6060

6161
if not scenario_key:
62-
Logger.instance(LOG_ID).info(f"{bcolors.WARNING}Missing{bcolors.ENDC} scenario key, defaulting to all requests for mocking")
62+
request_id = intercept_settings.request_id
63+
if not request_id:
64+
Logger.instance(LOG_ID).info(f"{bcolors.WARNING}Missing{bcolors.ENDC} scenario key, defaulting to all requests for mocking")
6365

6466
try:
6567
query_params_builder.with_resource_scoping(intercept_settings.project_key, scenario_key)

0 commit comments

Comments
 (0)