stoobly-agent 0.34.4__py3-none-any.whl → 0.34.5__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/proxy/handle_mock_service.py +3 -3
- {stoobly_agent-0.34.4.dist-info → stoobly_agent-0.34.5.dist-info}/METADATA +1 -1
- {stoobly_agent-0.34.4.dist-info → stoobly_agent-0.34.5.dist-info}/RECORD +7 -7
- {stoobly_agent-0.34.4.dist-info → stoobly_agent-0.34.5.dist-info}/LICENSE +0 -0
- {stoobly_agent-0.34.4.dist-info → stoobly_agent-0.34.5.dist-info}/WHEEL +0 -0
- {stoobly_agent-0.34.4.dist-info → stoobly_agent-0.34.5.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.5'
|
@@ -79,7 +79,7 @@ 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
|
-
res = handle_failure(context)
|
82
|
+
res = handle_failure(context)
|
83
83
|
else:
|
84
84
|
if handle_success:
|
85
85
|
res = handle_success(context) or res
|
@@ -131,7 +131,7 @@ def __handle_mock_success(context: MockContext) -> None:
|
|
131
131
|
if os.environ.get(env_vars.AGENT_SIMULATE_LATENCY):
|
132
132
|
__simulate_latency(response.headers.get(custom_headers.RESPONSE_LATENCY), start_time)
|
133
133
|
|
134
|
-
def __handle_mock_failure(context: MockContext):
|
134
|
+
def __handle_mock_failure(context: MockContext) -> None:
|
135
135
|
req = context.flow.request
|
136
136
|
intercept_settings = context.intercept_settings
|
137
137
|
upstream_url = intercept_settings.upstream_url
|
@@ -145,7 +145,7 @@ def __handle_mock_failure(context: MockContext):
|
|
145
145
|
|
146
146
|
Logger.instance().debug(f"{LOG_ID}:ReverseProxy:UpstreamUrl: {upstream_url}")
|
147
147
|
|
148
|
-
|
148
|
+
reverse_proxy(req, upstream_url, {})
|
149
149
|
|
150
150
|
###
|
151
151
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
stoobly_agent/__init__.py,sha256=
|
1
|
+
stoobly_agent/__init__.py,sha256=etFwPFpegxWHv7qtGZNy9ZBIAKSsVmi6O_geZY3r85I,45
|
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
|
@@ -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=mcn3tEIUR5m4Pql2Kc0dwiHPBgf-g0Aukgx9WFVLfYw,6940
|
173
173
|
stoobly_agent/app/proxy/handle_record_service.py,sha256=_6UT4vaLncPGp1XDlUVFTqyhlc6Tv70MDTSUwVw3y-U,3355
|
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
|
@@ -587,8 +587,8 @@ stoobly_agent/test/mock_data/petstore.yaml,sha256=CCdliJky04Az4FIOkFA883uunwFDHL
|
|
587
587
|
stoobly_agent/test/mock_data/request_show_response.py,sha256=K_a0fP0QT58T8sX9PaM6hqtX1A1depZsqg_GsNPf--k,707
|
588
588
|
stoobly_agent/test/mock_data/uspto.yaml,sha256=6U5se7C3o-86J4m9xpOk9Npias399f5CbfWzR87WKwE,7835
|
589
589
|
stoobly_agent/test/test_helper.py,sha256=m_oAI7tmRYCNZdKfNqISWhMv3e44tjeYViQ3nTUfnos,1007
|
590
|
-
stoobly_agent-0.34.
|
591
|
-
stoobly_agent-0.34.
|
592
|
-
stoobly_agent-0.34.
|
593
|
-
stoobly_agent-0.34.
|
594
|
-
stoobly_agent-0.34.
|
590
|
+
stoobly_agent-0.34.5.dist-info/LICENSE,sha256=8QKGyy45eN76Zk52h8gu1DKX2B_gbWgZ3nzDLofEbaE,548
|
591
|
+
stoobly_agent-0.34.5.dist-info/METADATA,sha256=wfwZZRlFLj8tuouNOMtLfTLXKg6spsqvKx_SD3CY-Lg,3304
|
592
|
+
stoobly_agent-0.34.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
593
|
+
stoobly_agent-0.34.5.dist-info/entry_points.txt,sha256=aq5wix5oC8MDQtmyPGU0xaFrsjJg7WH28NmXh2sc3Z8,56
|
594
|
+
stoobly_agent-0.34.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|