stoobly-agent 0.34.12__py3-none-any.whl → 0.34.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- stoobly_agent/__init__.py +1 -1
- stoobly_agent/app/models/adapters/python/response/mitmproxy_adapter.py +1 -1
- stoobly_agent/app/proxy/handle_mock_service.py +6 -2
- {stoobly_agent-0.34.12.dist-info → stoobly_agent-0.34.13.dist-info}/METADATA +1 -1
- {stoobly_agent-0.34.12.dist-info → stoobly_agent-0.34.13.dist-info}/RECORD +8 -8
- {stoobly_agent-0.34.12.dist-info → stoobly_agent-0.34.13.dist-info}/LICENSE +0 -0
- {stoobly_agent-0.34.12.dist-info → stoobly_agent-0.34.13.dist-info}/WHEEL +0 -0
- {stoobly_agent-0.34.12.dist-info → stoobly_agent-0.34.13.dist-info}/entry_points.txt +0 -0
stoobly_agent/__init__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
COMMAND = 'stoobly-agent'
|
2
|
-
VERSION = '0.34.
|
2
|
+
VERSION = '0.34.13'
|
@@ -79,7 +79,11 @@ def handle_request_mock_generic(context: MockContext, **options: MockOptions):
|
|
79
79
|
|
80
80
|
if res.status_code in [custom_response_codes.NOT_FOUND, custom_response_codes.IGNORE_COMPONENTS]:
|
81
81
|
if handle_failure:
|
82
|
-
|
82
|
+
try:
|
83
|
+
res = handle_failure(context)
|
84
|
+
except RuntimeError:
|
85
|
+
# Do nothing, return custom error response
|
86
|
+
pass
|
83
87
|
else:
|
84
88
|
if handle_success:
|
85
89
|
res = handle_success(context) or res
|
@@ -146,7 +150,7 @@ def __handle_mock_failure(context: MockContext) -> None:
|
|
146
150
|
if req.headers.get(custom_headers.REQUEST_ORIGIN) == request_origin.PROXY:
|
147
151
|
# If this header is set, then it is likely that we are going to infinite loop
|
148
152
|
# Unless we stop sending the same request
|
149
|
-
|
153
|
+
raise RuntimeError(f"Request originated from {request_origin.PROXY}")
|
150
154
|
else:
|
151
155
|
req.headers[custom_headers.REQUEST_ORIGIN] = request_origin.PROXY
|
152
156
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
stoobly_agent/__init__.py,sha256=
|
1
|
+
stoobly_agent/__init__.py,sha256=tJ5fRvLV0dm1hBvqKavJgxAINdPiPK0d8kK6M_LgWWc,46
|
2
2
|
stoobly_agent/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
stoobly_agent/app/api/__init__.py,sha256=FFSlVoTgjPfUNlYPr_7u6-P5Y4WOKyaUfAHtUcB-Xio,810
|
4
4
|
stoobly_agent/app/api/application_http_request_handler.py,sha256=jf4fkqjOiCeI2IM5Ro7ie0v_C6y0-7-5TIE_IKMPOfg,5513
|
@@ -96,7 +96,7 @@ stoobly_agent/app/models/adapters/python/request/mitmproxy_adapter.py,sha256=3at
|
|
96
96
|
stoobly_agent/app/models/adapters/python/request/raw_adapter.py,sha256=1jI0XT5webNTVx-bfftEvz3ZCMV5X5bKlj6LFsxgmtc,784
|
97
97
|
stoobly_agent/app/models/adapters/python/request/stoobly_adapter.py,sha256=kSkTu6wQrZcTod6Alsd09kUU62hHtASRNC71IF4V7ec,1072
|
98
98
|
stoobly_agent/app/models/adapters/python/response/__init__.py,sha256=jDyYnJ59t_uPwj6N8fY849A4kPAbBHlaaqDCxXeSiWI,425
|
99
|
-
stoobly_agent/app/models/adapters/python/response/mitmproxy_adapter.py,sha256=
|
99
|
+
stoobly_agent/app/models/adapters/python/response/mitmproxy_adapter.py,sha256=EK86hj6mvSlfypnZxuTGwyTQ1IHbBvGA1-IxrESbT58,1579
|
100
100
|
stoobly_agent/app/models/adapters/python/response/raw_adapter.py,sha256=NByMZBQ_WgaxObug8LM9hQkURvpbyUk7ql7WOn0NYJk,613
|
101
101
|
stoobly_agent/app/models/adapters/raw_http_request_adapter.py,sha256=sZRdwI5ND7JZT9ZlvKX1JOARy-qZm_ZStLbwmjFiNrE,1824
|
102
102
|
stoobly_agent/app/models/adapters/raw_http_response_adapter.py,sha256=0oAycGpo2TpOcwwz8KHPp0NcVQOkMtnCqQsjNk9FdQc,3802
|
@@ -169,7 +169,7 @@ stoobly_agent/app/proxy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
169
169
|
stoobly_agent/app/proxy/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
170
170
|
stoobly_agent/app/proxy/constants/custom_response_codes.py,sha256=1CaApt_6W7GrxvN8_Ozbf_SEodVEQaNZRR2sMYpI0U8,40
|
171
171
|
stoobly_agent/app/proxy/context.py,sha256=XLteUEP8T8aT0hHI_jHDaL2382OaC7QyVwlni5_FS9U,456
|
172
|
-
stoobly_agent/app/proxy/handle_mock_service.py,sha256=
|
172
|
+
stoobly_agent/app/proxy/handle_mock_service.py,sha256=UWEfPyg4nQgrN2LTMleeR7ucM6-RuI2IfzHPP1f05u4,7465
|
173
173
|
stoobly_agent/app/proxy/handle_record_service.py,sha256=KYygWIvonyS_14XO_bZ-cPVC8tCSbbErciE399o013Y,3346
|
174
174
|
stoobly_agent/app/proxy/handle_replay_service.py,sha256=zBsDnmibMZtYUoi9y6co6Ou5-JYHVrKiWnsJKHSkKtk,1795
|
175
175
|
stoobly_agent/app/proxy/handle_test_service.py,sha256=nGoE2m3lfDYVs3_k-_wOXCmmf27vz99pwlsIhMxDu9I,5732
|
@@ -589,8 +589,8 @@ stoobly_agent/test/mock_data/petstore.yaml,sha256=CCdliJky04Az4FIOkFA883uunwFDHL
|
|
589
589
|
stoobly_agent/test/mock_data/request_show_response.py,sha256=K_a0fP0QT58T8sX9PaM6hqtX1A1depZsqg_GsNPf--k,707
|
590
590
|
stoobly_agent/test/mock_data/uspto.yaml,sha256=6U5se7C3o-86J4m9xpOk9Npias399f5CbfWzR87WKwE,7835
|
591
591
|
stoobly_agent/test/test_helper.py,sha256=m_oAI7tmRYCNZdKfNqISWhMv3e44tjeYViQ3nTUfnos,1007
|
592
|
-
stoobly_agent-0.34.
|
593
|
-
stoobly_agent-0.34.
|
594
|
-
stoobly_agent-0.34.
|
595
|
-
stoobly_agent-0.34.
|
596
|
-
stoobly_agent-0.34.
|
592
|
+
stoobly_agent-0.34.13.dist-info/LICENSE,sha256=8QKGyy45eN76Zk52h8gu1DKX2B_gbWgZ3nzDLofEbaE,548
|
593
|
+
stoobly_agent-0.34.13.dist-info/METADATA,sha256=d-bTwFBnrSpPnucercQFS9GJ4TQmb445R04BR197nig,3347
|
594
|
+
stoobly_agent-0.34.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
595
|
+
stoobly_agent-0.34.13.dist-info/entry_points.txt,sha256=aq5wix5oC8MDQtmyPGU0xaFrsjJg7WH28NmXh2sc3Z8,56
|
596
|
+
stoobly_agent-0.34.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|