##// END OF EJS Templates
phabricator: add custom vcr matcher to match request bodies...
phabricator: add custom vcr matcher to match request bodies Currently when the phabricator extension's conduit output changes the tests don't notice since the default vcr matcher only matches on 'method' and 'uri', not the body. Add a custom matcher that checks the same params are in the body (ignoring ordering). vcr's in-built body matcher can't be used since it fails under py3 with a "UnicodeEncodeError" on the "€ in commit message" tests. The DREV ids have decreased since the recordings were generated against a different phabricator instance to avoid spamming mercurial-devel. Differential Revision: https://phab.mercurial-scm.org/D6347

File last commit:

r42454:af13e208 default
r42454:af13e208 default
Show More
phabsend-create-alpha.json
617 lines | 24.3 KiB | application/json | JsonLexer
/ tests / phabricator / phabsend-create-alpha.json
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 {
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "version": 1,
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "interactions": [
{
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "request": {
"headers": {
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "user-agent": [
"mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
],
"content-length": [
"93"
],
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "content-type": [
"application/x-www-form-urlencoded"
],
"accept": [
"application/mercurial-0.1"
],
"host": [
"phab.mercurial-scm.org"
]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": "api.token=cli-hahayouwish&constraints%5Bcallsigns%5D%5B0%5D=HG",
"uri": "https://phab.mercurial-scm.org//api/diffusion.repository.search",
"method": "POST"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "response": {
"status": {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "code": 200,
"message": "OK"
},
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "headers": {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "x-xss-protection": [
"1; mode=block"
],
"cache-control": [
"no-store"
],
"content-type": [
"application/json"
],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "date": [
"Sun, 05 May 2019 13:31:00 GMT"
],
"connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=31536000; includeSubdomains; preload"
],
"vary": [
"Accept-Encoding"
],
"x-frame-options": [
"Deny"
],
"content-length": [
"549"
],
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "x-content-type-options": [
"nosniff"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "expires": [
"Sat, 01 Jan 2000 00:00:00 GMT"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 ]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": {
"string": "{\"result\":{\"data\":[{\"id\":10,\"type\":\"REPO\",\"phid\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"fields\":{\"name\":\"Mercurial\",\"vcs\":\"hg\",\"callsign\":\"HG\",\"shortName\":\"Mercurial\",\"status\":\"active\",\"isImporting\":false,\"almanacServicePHID\":null,\"spacePHID\":null,\"dateCreated\":1507817156,\"dateModified\":1529613276,\"policy\":{\"view\":\"public\",\"edit\":\"admin\",\"diffusion.push\":\"users\"}},\"attachments\":{}}],\"maps\":{},\"query\":{\"queryKey\":null},\"cursor\":{\"limit\":100,\"after\":null,\"before\":null,\"order\":null}},\"error_code\":null,\"error_info\":null}"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 }
}
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "request": {
"headers": {
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "user-agent": [
"mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
],
"content-length": [
"235"
],
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "content-type": [
"application/x-www-form-urlencoded"
],
"accept": [
"application/mercurial-0.1"
],
"host": [
"phab.mercurial-scm.org"
]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": "api.token=cli-hahayouwish&diff=diff+--git+a%2Falpha+b%2Falpha%0Anew+file+mode+100644%0A---+%2Fdev%2Fnull%0A%2B%2B%2B+b%2Falpha%0A%40%40+-0%2C0+%2B1%2C1+%40%40%0A%2Balpha%0A&repositoryPHID=PHID-REPO-bvunnehri4u2isyr7bc3",
"uri": "https://phab.mercurial-scm.org//api/differential.createrawdiff",
"method": "POST"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "response": {
"status": {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "code": 200,
"message": "OK"
},
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "headers": {
"x-xss-protection": [
"1; mode=block"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
"cache-control": [
"no-store"
],
"content-type": [
"application/json"
],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "date": [
"Sun, 05 May 2019 13:31:01 GMT"
],
"connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=31536000; includeSubdomains; preload"
],
"vary": [
"Accept-Encoding"
],
"x-frame-options": [
"Deny"
],
"content-length": [
"172"
],
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "x-content-type-options": [
"nosniff"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "expires": [
"Sat, 01 Jan 2000 00:00:00 GMT"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 ]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": {
"string": "{\"result\":{\"id\":1899,\"phid\":\"PHID-DIFF-gpg57jico75ouhl2bux2\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/1899\\/\"},\"error_code\":null,\"error_info\":null}"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 }
}
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "request": {
"headers": {
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "user-agent": [
"mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
],
"content-length": [
"296"
],
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "content-type": [
"application/x-www-form-urlencoded"
],
"accept": [
"application/mercurial-0.1"
],
"host": [
"phab.mercurial-scm.org"
]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": "diff_id=1899&data=%7B%22branch%22%3A+%22default%22%2C+%22date%22%3A+%220+0%22%2C+%22node%22%3A+%22d386117f30e6b1282897bdbde75ac21e095163d4%22%2C+%22parent%22%3A+%220000000000000000000000000000000000000000%22%2C+%22user%22%3A+%22test%22%7D&name=hg%3Ameta&api.token=cli-hahayouwish",
"uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty",
"method": "POST"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "response": {
"status": {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "code": 200,
"message": "OK"
},
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "headers": {
"x-xss-protection": [
"1; mode=block"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
"cache-control": [
"no-store"
],
"content-type": [
"application/json"
],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "date": [
"Sun, 05 May 2019 13:31:02 GMT"
],
"connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=31536000; includeSubdomains; preload"
],
"vary": [
"Accept-Encoding"
],
"x-frame-options": [
"Deny"
],
"content-length": [
"51"
],
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "x-content-type-options": [
"nosniff"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "expires": [
"Sat, 01 Jan 2000 00:00:00 GMT"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 ]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": {
"string": "{\"result\":null,\"error_code\":null,\"error_info\":null}"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 }
}
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "request": {
"headers": {
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "user-agent": [
"mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
],
"content-length": [
"257"
],
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "content-type": [
"application/x-www-form-urlencoded"
],
"accept": [
"application/mercurial-0.1"
],
"host": [
"phab.mercurial-scm.org"
]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": "diff_id=1899&data=%7B%22d386117f30e6b1282897bdbde75ac21e095163d4%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22branch%22%3A+%22default%22%2C+%22commit%22%3A+%22d386117f30e6b1282897bdbde75ac21e095163d4%22%2C+%22parents%22%3A+%5B%220000000000000000000000000000000000000000%22%5D%2C+%22time%22%3A+0%7D%7D&name=local%3Acommits&api.token=cli-hahayouwish",
"uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty",
"method": "POST"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "response": {
"status": {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "code": 200,
"message": "OK"
},
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "headers": {
"x-xss-protection": [
"1; mode=block"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
"cache-control": [
"no-store"
],
"content-type": [
"application/json"
],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "date": [
"Sun, 05 May 2019 13:31:02 GMT"
],
"connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=31536000; includeSubdomains; preload"
],
"vary": [
"Accept-Encoding"
],
"x-frame-options": [
"Deny"
],
"content-length": [
"51"
],
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "x-content-type-options": [
"nosniff"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "expires": [
"Sat, 01 Jan 2000 00:00:00 GMT"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 ]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": {
"string": "{\"result\":null,\"error_code\":null,\"error_info\":null}"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 }
}
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "request": {
"headers": {
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "user-agent": [
"mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
],
"content-length": [
"93"
],
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "content-type": [
"application/x-www-form-urlencoded"
],
"accept": [
"application/mercurial-0.1"
],
"host": [
"phab.mercurial-scm.org"
]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": "api.token=cli-hahayouwish&corpus=create+alpha+for+phabricator+test+%E2%82%AC",
"uri": "https://phab.mercurial-scm.org//api/differential.parsecommitmessage",
"method": "POST"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "response": {
"status": {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "code": 200,
"message": "OK"
},
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "headers": {
"x-xss-protection": [
"1; mode=block"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
"cache-control": [
"no-store"
],
"content-type": [
"application/json"
],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "date": [
"Sun, 05 May 2019 13:31:03 GMT"
],
"connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=31536000; includeSubdomains; preload"
],
"vary": [
"Accept-Encoding"
],
"x-frame-options": [
"Deny"
],
"content-length": [
"298"
],
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "x-content-type-options": [
"nosniff"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "expires": [
"Sat, 01 Jan 2000 00:00:00 GMT"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 ]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": {
"string": "{\"result\":{\"errors\":[],\"fields\":{\"title\":\"create alpha for phabricator test \\u20ac\"},\"revisionIDFieldInfo\":{\"value\":null,\"validDomain\":\"https:\\/\\/phab.mercurial-scm.org\"},\"transactions\":[{\"type\":\"title\",\"value\":\"create alpha for phabricator test \\u20ac\"}]},\"error_code\":null,\"error_info\":null}"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 }
}
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "request": {
"headers": {
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "user-agent": [
"mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
],
"content-length": [
"252"
],
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "content-type": [
"application/x-www-form-urlencoded"
],
"accept": [
"application/mercurial-0.1"
],
"host": [
"phab.mercurial-scm.org"
]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": "api.token=cli-hahayouwish&transactions%5B0%5D%5Btype%5D=update&transactions%5B0%5D%5Bvalue%5D=PHID-DIFF-gpg57jico75ouhl2bux2&transactions%5B1%5D%5Btype%5D=title&transactions%5B1%5D%5Bvalue%5D=create+alpha+for+phabricator+test+%E2%82%AC",
"uri": "https://phab.mercurial-scm.org//api/differential.revision.edit",
"method": "POST"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "response": {
"status": {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "code": 200,
"message": "OK"
},
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "headers": {
"x-xss-protection": [
"1; mode=block"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
"cache-control": [
"no-store"
],
"content-type": [
"application/json"
],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "date": [
"Sun, 05 May 2019 13:31:04 GMT"
],
"connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=31536000; includeSubdomains; preload"
],
"vary": [
"Accept-Encoding"
],
"x-frame-options": [
"Deny"
],
"content-length": [
"294"
],
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "x-content-type-options": [
"nosniff"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "expires": [
"Sat, 01 Jan 2000 00:00:00 GMT"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 ]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": {
"string": "{\"result\":{\"object\":{\"id\":1190,\"phid\":\"PHID-DREV-kikesmfxhzpfaxbzgj3l\"},\"transactions\":[{\"phid\":\"PHID-XACT-DREV-od4nnssrqj57m6x\"},{\"phid\":\"PHID-XACT-DREV-2prb5lagzng6uqt\"},{\"phid\":\"PHID-XACT-DREV-qu7o6fgwssovbwb\"},{\"phid\":\"PHID-XACT-DREV-uynfy6n3u6new5f\"}]},\"error_code\":null,\"error_info\":null}"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 }
}
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "request": {
"headers": {
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "user-agent": [
"mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
],
"content-length": [
"58"
],
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "content-type": [
"application/x-www-form-urlencoded"
],
"accept": [
"application/mercurial-0.1"
],
"host": [
"phab.mercurial-scm.org"
]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": "ids%5B0%5D=1190&api.token=cli-hahayouwish",
"uri": "https://phab.mercurial-scm.org//api/differential.query",
"method": "POST"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "response": {
"status": {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "code": 200,
"message": "OK"
},
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "headers": {
"x-xss-protection": [
"1; mode=block"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
"cache-control": [
"no-store"
],
"content-type": [
"application/json"
],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "date": [
"Sun, 05 May 2019 13:31:05 GMT"
],
"connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=31536000; includeSubdomains; preload"
],
"vary": [
"Accept-Encoding"
],
"x-frame-options": [
"Deny"
],
"content-length": [
"778"
],
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "x-content-type-options": [
"nosniff"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "expires": [
"Sat, 01 Jan 2000 00:00:00 GMT"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 ]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": {
"string": "{\"result\":[{\"id\":\"1190\",\"phid\":\"PHID-DREV-kikesmfxhzpfaxbzgj3l\",\"title\":\"create alpha for phabricator test \\u20ac\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/D1190\",\"dateCreated\":\"1557063064\",\"dateModified\":\"1557063064\",\"authorPHID\":\"PHID-USER-qmzis76vb2yh3ogldu6r\",\"status\":\"0\",\"statusName\":\"Draft\",\"properties\":{\"draft.broadcast\":false,\"lines.added\":1,\"lines.removed\":0},\"branch\":null,\"summary\":\"\",\"testPlan\":\"\",\"lineCount\":\"1\",\"activeDiffPHID\":\"PHID-DIFF-gpg57jico75ouhl2bux2\",\"diffs\":[\"1899\"],\"commits\":[],\"reviewers\":[],\"ccs\":[],\"hashes\":[],\"auxiliary\":{\"bugzilla.bug-id\":null,\"phabricator:projects\":[\"PHID-PROJ-f2a3wl5wxtqdtfgdjqzk\"],\"phabricator:depends-on\":[]},\"repositoryPHID\":\"PHID-REPO-bvunnehri4u2isyr7bc3\",\"sourcePath\":null}],\"error_code\":null,\"error_info\":null}"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 }
}
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "request": {
"headers": {
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "user-agent": [
"mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
],
"content-length": [
"296"
],
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "content-type": [
"application/x-www-form-urlencoded"
],
"accept": [
"application/mercurial-0.1"
],
"host": [
"phab.mercurial-scm.org"
]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": "diff_id=1899&data=%7B%22branch%22%3A+%22default%22%2C+%22date%22%3A+%220+0%22%2C+%22node%22%3A+%22a86ed7d85e866f01161e9f55cee5d116272f508f%22%2C+%22parent%22%3A+%220000000000000000000000000000000000000000%22%2C+%22user%22%3A+%22test%22%7D&name=hg%3Ameta&api.token=cli-hahayouwish",
"uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty",
"method": "POST"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "response": {
"status": {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "code": 200,
"message": "OK"
},
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "headers": {
"x-xss-protection": [
"1; mode=block"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
"cache-control": [
"no-store"
],
"content-type": [
"application/json"
],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "date": [
"Sun, 05 May 2019 13:31:06 GMT"
],
"connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=31536000; includeSubdomains; preload"
],
"vary": [
"Accept-Encoding"
],
"x-frame-options": [
"Deny"
],
"content-length": [
"51"
],
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "x-content-type-options": [
"nosniff"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "expires": [
"Sat, 01 Jan 2000 00:00:00 GMT"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 ]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": {
"string": "{\"result\":null,\"error_code\":null,\"error_info\":null}"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 }
}
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "request": {
"headers": {
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "user-agent": [
"mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
],
"content-length": [
"257"
],
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "content-type": [
"application/x-www-form-urlencoded"
],
"accept": [
"application/mercurial-0.1"
],
"host": [
"phab.mercurial-scm.org"
]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": "diff_id=1899&data=%7B%22a86ed7d85e866f01161e9f55cee5d116272f508f%22%3A+%7B%22author%22%3A+%22test%22%2C+%22authorEmail%22%3A+%22test%22%2C+%22branch%22%3A+%22default%22%2C+%22commit%22%3A+%22a86ed7d85e866f01161e9f55cee5d116272f508f%22%2C+%22parents%22%3A+%5B%220000000000000000000000000000000000000000%22%5D%2C+%22time%22%3A+0%7D%7D&name=local%3Acommits&api.token=cli-hahayouwish",
"uri": "https://phab.mercurial-scm.org//api/differential.setdiffproperty",
"method": "POST"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 },
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "response": {
"status": {
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 "code": 200,
"message": "OK"
},
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "headers": {
"x-xss-protection": [
"1; mode=block"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
"cache-control": [
"no-store"
],
"content-type": [
"application/json"
],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "date": [
"Sun, 05 May 2019 13:31:06 GMT"
],
"connection": [
"keep-alive"
],
"strict-transport-security": [
"max-age=31536000; includeSubdomains; preload"
],
"vary": [
"Accept-Encoding"
],
"x-frame-options": [
"Deny"
],
"content-length": [
"51"
],
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 "x-content-type-options": [
"nosniff"
Ian Moody
phabricator: convert conduit response JSON unicode to bytes inside callconduit...
r42063 ],
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 "expires": [
"Sat, 01 Jan 2000 00:00:00 GMT"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 ]
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 },
"body": {
"string": "{\"result\":null,\"error_code\":null,\"error_info\":null}"
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 }
}
}
Ian Moody
phabricator: add custom vcr matcher to match request bodies...
r42454 ]
Augie Fackler
tests: add some basic tests of phabricator interactions...
r39687 }