@@ -45,7 +45,22 @@ async def setup_after_prep(self, module_test):
4545 )
4646 module_test .httpx_mock .add_response (
4747 url = "https://www.postman.com/_api/ws/proxy" ,
48- match_content = b'{"service": "search", "method": "POST", "path": "/search-all", "body": {"queryIndices": ["collaboration.workspace"], "queryText": "blacklanternsecurity", "size": 25, "from": 0, "clientTraceId": "", "requestOrigin": "srp", "mergeEntities": "true", "nonNestedRequests": "true", "domain": "public"}}' ,
48+ match_json = {
49+ "service" : "search" ,
50+ "method" : "POST" ,
51+ "path" : "/search-all" ,
52+ "body" : {
53+ "queryIndices" : ["collaboration.workspace" ],
54+ "queryText" : "blacklanternsecurity" ,
55+ "size" : 25 ,
56+ "from" : 0 ,
57+ "clientTraceId" : "" ,
58+ "requestOrigin" : "srp" ,
59+ "mergeEntities" : "true" ,
60+ "nonNestedRequests" : "true" ,
61+ "domain" : "public" ,
62+ },
63+ },
4964 json = {
5065 "data" : [
5166 {
@@ -177,7 +192,11 @@ async def setup_after_prep(self, module_test):
177192 )
178193 module_test .httpx_mock .add_response (
179194 url = "https://www.postman.com/_api/ws/proxy" ,
180- match_content = b'{"service": "workspaces", "method": "GET", "path": "/workspaces?handle=blacklanternsecurity&slug=bbot-public"}' ,
195+ match_json = {
196+ "service" : "workspaces" ,
197+ "method" : "GET" ,
198+ "path" : "/workspaces?handle=blacklanternsecurity&slug=bbot-public" ,
199+ },
181200 json = {
182201 "meta" : {"model" : "workspace" , "action" : "find" , "nextCursor" : "" },
183202 "data" : [
@@ -207,7 +226,11 @@ async def setup_after_prep(self, module_test):
207226 )
208227 module_test .httpx_mock .add_response (
209228 url = "https://www.postman.com/_api/ws/proxy" ,
210- match_content = b'{"service": "workspaces", "method": "GET", "path": "/workspaces?handle=testteam&slug=testing-bbot-api"}' ,
229+ match_json = {
230+ "service" : "workspaces" ,
231+ "method" : "GET" ,
232+ "path" : "/workspaces?handle=testteam&slug=testing-bbot-api" ,
233+ },
211234 json = {
212235 "meta" : {"model" : "workspace" , "action" : "find" , "nextCursor" : "" },
213236 "data" : [
0 commit comments