stoobly-agent 0.32.3__py3-none-any.whl → 0.32.4__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/cli/snapshot_cli.py +22 -18
- {stoobly_agent-0.32.3.dist-info → stoobly_agent-0.32.4.dist-info}/METADATA +1 -1
- {stoobly_agent-0.32.3.dist-info → stoobly_agent-0.32.4.dist-info}/RECORD +7 -7
- {stoobly_agent-0.32.3.dist-info → stoobly_agent-0.32.4.dist-info}/LICENSE +0 -0
- {stoobly_agent-0.32.3.dist-info → stoobly_agent-0.32.4.dist-info}/WHEEL +0 -0
- {stoobly_agent-0.32.3.dist-info → stoobly_agent-0.32.4.dist-info}/entry_points.txt +0 -0
stoobly_agent/__init__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
COMMAND = 'stoobly-agent'
|
2
|
-
VERSION = '0.32.
|
2
|
+
VERSION = '0.32.4'
|
@@ -4,6 +4,7 @@ import pdb
|
|
4
4
|
import os
|
5
5
|
import re
|
6
6
|
import requests
|
7
|
+
import sys
|
7
8
|
|
8
9
|
from urllib.parse import urlparse
|
9
10
|
from typing import List
|
@@ -86,28 +87,31 @@ def update(**kwargs):
|
|
86
87
|
|
87
88
|
log = Log()
|
88
89
|
|
89
|
-
|
90
|
-
for
|
91
|
-
if
|
92
|
-
|
90
|
+
event = None
|
91
|
+
for _event in log.events:
|
92
|
+
if _event.uuid == kwargs['uuid']:
|
93
|
+
event = _event
|
94
|
+
break
|
93
95
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
__verify_request(snapshot)
|
98
|
-
elif event.is_scenario():
|
99
|
-
snapshot: ScenarioSnapshot = event.snapshot()
|
100
|
-
snapshot.iter_request_snapshots(__verify_request)
|
96
|
+
if not event:
|
97
|
+
print(f"Error: {kwargs['uuid']} not found", file=sys.stderr)
|
98
|
+
sys.exit(1)
|
101
99
|
|
102
|
-
|
103
|
-
|
104
|
-
|
100
|
+
if kwargs['verify']:
|
101
|
+
if event.is_request():
|
102
|
+
snapshot: RequestSnapshot = event.snapshot()
|
103
|
+
__verify_request(snapshot)
|
104
|
+
elif event.is_scenario():
|
105
|
+
snapshot: ScenarioSnapshot = event.snapshot()
|
106
|
+
snapshot.iter_request_snapshots(__verify_request)
|
105
107
|
|
106
|
-
|
107
|
-
|
108
|
+
new_event = event.duplicate()
|
109
|
+
log.append(str(new_event))
|
108
110
|
|
109
|
-
|
110
|
-
|
111
|
+
formatted_events = __format_events([new_event], **kwargs)
|
112
|
+
|
113
|
+
if len(formatted_events):
|
114
|
+
print_snapshots(formatted_events, **print_options)
|
111
115
|
|
112
116
|
def __format_events(events: List[LogEvent], **kwargs):
|
113
117
|
count = 0
|
@@ -1,4 +1,4 @@
|
|
1
|
-
stoobly_agent/__init__.py,sha256=
|
1
|
+
stoobly_agent/__init__.py,sha256=33wHLkAvmTRb-ZynljQqdOUQbaJrBRNF2ohEfEnqTdY,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
|
@@ -58,7 +58,7 @@ stoobly_agent/app/cli/project_cli.py,sha256=EXjeLjbnq9PhfCjvyfZ0UnJ2tejeCS0SIAo3
|
|
58
58
|
stoobly_agent/app/cli/report_cli.py,sha256=ZxJw0Xkx7KFZJn9e45BSKRKon8AD0Msrwy1fbPfbv0c,2543
|
59
59
|
stoobly_agent/app/cli/request_cli.py,sha256=0oDjK4A5Cbbpi-l44AhxDCYEMZJjLi9SJ-xpv7lhttE,12380
|
60
60
|
stoobly_agent/app/cli/scenario_cli.py,sha256=ME_LzP_LS2EG5HOz4HwDVEN1mOvwEORUuXikAwNdsLc,13690
|
61
|
-
stoobly_agent/app/cli/snapshot_cli.py,sha256
|
61
|
+
stoobly_agent/app/cli/snapshot_cli.py,sha256=SEbCHt0NxCSDR86p6doNpS_SbOIVhJ-H_JD8yDOOps0,7578
|
62
62
|
stoobly_agent/app/cli/trace_cli.py,sha256=17U7Zp--RldaaaSKNDnL_uqgJ1ZsoDs5UzWICJ7ziwI,3843
|
63
63
|
stoobly_agent/app/cli/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
64
64
|
stoobly_agent/app/cli/types/endpoint.py,sha256=vKih5Nwi-knh00EjoHnzxHMcnJA--5D8ti8D-tRUGgw,310
|
@@ -557,8 +557,8 @@ stoobly_agent/test/mock_data/petstore.yaml,sha256=CCdliJky04Az4FIOkFA883uunwFDHL
|
|
557
557
|
stoobly_agent/test/mock_data/request_show_response.py,sha256=K_a0fP0QT58T8sX9PaM6hqtX1A1depZsqg_GsNPf--k,707
|
558
558
|
stoobly_agent/test/mock_data/uspto.yaml,sha256=6U5se7C3o-86J4m9xpOk9Npias399f5CbfWzR87WKwE,7835
|
559
559
|
stoobly_agent/test/test_helper.py,sha256=m_oAI7tmRYCNZdKfNqISWhMv3e44tjeYViQ3nTUfnos,1007
|
560
|
-
stoobly_agent-0.32.
|
561
|
-
stoobly_agent-0.32.
|
562
|
-
stoobly_agent-0.32.
|
563
|
-
stoobly_agent-0.32.
|
564
|
-
stoobly_agent-0.32.
|
560
|
+
stoobly_agent-0.32.4.dist-info/LICENSE,sha256=8QKGyy45eN76Zk52h8gu1DKX2B_gbWgZ3nzDLofEbaE,548
|
561
|
+
stoobly_agent-0.32.4.dist-info/METADATA,sha256=3cVKKnflZE3s36Y-OHq_rpXfPTtEEO_MdBxVCMaY_7E,3270
|
562
|
+
stoobly_agent-0.32.4.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
563
|
+
stoobly_agent-0.32.4.dist-info/entry_points.txt,sha256=aq5wix5oC8MDQtmyPGU0xaFrsjJg7WH28NmXh2sc3Z8,56
|
564
|
+
stoobly_agent-0.32.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|