view tests/phabricator/phabsend-create-alpha.json @ 42814:2c4f656c8e9f

interfaceutil: move to interfaces/ Now that we have a dedicated folder for interfaces, let's move interfaceutil there. Differential Revision: https://phab.mercurial-scm.org/D6742
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sun, 18 Aug 2019 02:28:42 +0300
parents af13e2088f77
children
line wrap: on
line source

{
    "version": 1,
    "interactions": [
        {
            "request": {
                "headers": {
                    "user-agent": [
                        "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
                    ],
                    "content-length": [
                        "93"
                    ],
                    "content-type": [
                        "application/x-www-form-urlencoded"
                    ],
                    "accept": [
                        "application/mercurial-0.1"
                    ],
                    "host": [
                        "phab.mercurial-scm.org"
                    ]
                },
                "body": "api.token=cli-hahayouwish&constraints%5Bcallsigns%5D%5B0%5D=HG",
                "uri": "https://phab.mercurial-scm.org//api/diffusion.repository.search",
                "method": "POST"
            },
            "response": {
                "status": {
                    "code": 200,
                    "message": "OK"
                },
                "headers": {
                    "x-xss-protection": [
                        "1; mode=block"
                    ],
                    "cache-control": [
                        "no-store"
                    ],
                    "content-type": [
                        "application/json"
                    ],
                    "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"
                    ],
                    "x-content-type-options": [
                        "nosniff"
                    ],
                    "expires": [
                        "Sat, 01 Jan 2000 00:00:00 GMT"
                    ]
                },
                "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}"
                }
            }
        },
        {
            "request": {
                "headers": {
                    "user-agent": [
                        "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
                    ],
                    "content-length": [
                        "235"
                    ],
                    "content-type": [
                        "application/x-www-form-urlencoded"
                    ],
                    "accept": [
                        "application/mercurial-0.1"
                    ],
                    "host": [
                        "phab.mercurial-scm.org"
                    ]
                },
                "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"
            },
            "response": {
                "status": {
                    "code": 200,
                    "message": "OK"
                },
                "headers": {
                    "x-xss-protection": [
                        "1; mode=block"
                    ],
                    "cache-control": [
                        "no-store"
                    ],
                    "content-type": [
                        "application/json"
                    ],
                    "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"
                    ],
                    "x-content-type-options": [
                        "nosniff"
                    ],
                    "expires": [
                        "Sat, 01 Jan 2000 00:00:00 GMT"
                    ]
                },
                "body": {
                    "string": "{\"result\":{\"id\":1899,\"phid\":\"PHID-DIFF-gpg57jico75ouhl2bux2\",\"uri\":\"https:\\/\\/phab.mercurial-scm.org\\/differential\\/diff\\/1899\\/\"},\"error_code\":null,\"error_info\":null}"
                }
            }
        },
        {
            "request": {
                "headers": {
                    "user-agent": [
                        "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
                    ],
                    "content-length": [
                        "296"
                    ],
                    "content-type": [
                        "application/x-www-form-urlencoded"
                    ],
                    "accept": [
                        "application/mercurial-0.1"
                    ],
                    "host": [
                        "phab.mercurial-scm.org"
                    ]
                },
                "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"
            },
            "response": {
                "status": {
                    "code": 200,
                    "message": "OK"
                },
                "headers": {
                    "x-xss-protection": [
                        "1; mode=block"
                    ],
                    "cache-control": [
                        "no-store"
                    ],
                    "content-type": [
                        "application/json"
                    ],
                    "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"
                    ],
                    "x-content-type-options": [
                        "nosniff"
                    ],
                    "expires": [
                        "Sat, 01 Jan 2000 00:00:00 GMT"
                    ]
                },
                "body": {
                    "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}"
                }
            }
        },
        {
            "request": {
                "headers": {
                    "user-agent": [
                        "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
                    ],
                    "content-length": [
                        "257"
                    ],
                    "content-type": [
                        "application/x-www-form-urlencoded"
                    ],
                    "accept": [
                        "application/mercurial-0.1"
                    ],
                    "host": [
                        "phab.mercurial-scm.org"
                    ]
                },
                "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"
            },
            "response": {
                "status": {
                    "code": 200,
                    "message": "OK"
                },
                "headers": {
                    "x-xss-protection": [
                        "1; mode=block"
                    ],
                    "cache-control": [
                        "no-store"
                    ],
                    "content-type": [
                        "application/json"
                    ],
                    "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"
                    ],
                    "x-content-type-options": [
                        "nosniff"
                    ],
                    "expires": [
                        "Sat, 01 Jan 2000 00:00:00 GMT"
                    ]
                },
                "body": {
                    "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}"
                }
            }
        },
        {
            "request": {
                "headers": {
                    "user-agent": [
                        "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
                    ],
                    "content-length": [
                        "93"
                    ],
                    "content-type": [
                        "application/x-www-form-urlencoded"
                    ],
                    "accept": [
                        "application/mercurial-0.1"
                    ],
                    "host": [
                        "phab.mercurial-scm.org"
                    ]
                },
                "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"
            },
            "response": {
                "status": {
                    "code": 200,
                    "message": "OK"
                },
                "headers": {
                    "x-xss-protection": [
                        "1; mode=block"
                    ],
                    "cache-control": [
                        "no-store"
                    ],
                    "content-type": [
                        "application/json"
                    ],
                    "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"
                    ],
                    "x-content-type-options": [
                        "nosniff"
                    ],
                    "expires": [
                        "Sat, 01 Jan 2000 00:00:00 GMT"
                    ]
                },
                "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}"
                }
            }
        },
        {
            "request": {
                "headers": {
                    "user-agent": [
                        "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
                    ],
                    "content-length": [
                        "252"
                    ],
                    "content-type": [
                        "application/x-www-form-urlencoded"
                    ],
                    "accept": [
                        "application/mercurial-0.1"
                    ],
                    "host": [
                        "phab.mercurial-scm.org"
                    ]
                },
                "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"
            },
            "response": {
                "status": {
                    "code": 200,
                    "message": "OK"
                },
                "headers": {
                    "x-xss-protection": [
                        "1; mode=block"
                    ],
                    "cache-control": [
                        "no-store"
                    ],
                    "content-type": [
                        "application/json"
                    ],
                    "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"
                    ],
                    "x-content-type-options": [
                        "nosniff"
                    ],
                    "expires": [
                        "Sat, 01 Jan 2000 00:00:00 GMT"
                    ]
                },
                "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}"
                }
            }
        },
        {
            "request": {
                "headers": {
                    "user-agent": [
                        "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
                    ],
                    "content-length": [
                        "58"
                    ],
                    "content-type": [
                        "application/x-www-form-urlencoded"
                    ],
                    "accept": [
                        "application/mercurial-0.1"
                    ],
                    "host": [
                        "phab.mercurial-scm.org"
                    ]
                },
                "body": "ids%5B0%5D=1190&api.token=cli-hahayouwish",
                "uri": "https://phab.mercurial-scm.org//api/differential.query",
                "method": "POST"
            },
            "response": {
                "status": {
                    "code": 200,
                    "message": "OK"
                },
                "headers": {
                    "x-xss-protection": [
                        "1; mode=block"
                    ],
                    "cache-control": [
                        "no-store"
                    ],
                    "content-type": [
                        "application/json"
                    ],
                    "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"
                    ],
                    "x-content-type-options": [
                        "nosniff"
                    ],
                    "expires": [
                        "Sat, 01 Jan 2000 00:00:00 GMT"
                    ]
                },
                "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}"
                }
            }
        },
        {
            "request": {
                "headers": {
                    "user-agent": [
                        "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
                    ],
                    "content-length": [
                        "296"
                    ],
                    "content-type": [
                        "application/x-www-form-urlencoded"
                    ],
                    "accept": [
                        "application/mercurial-0.1"
                    ],
                    "host": [
                        "phab.mercurial-scm.org"
                    ]
                },
                "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"
            },
            "response": {
                "status": {
                    "code": 200,
                    "message": "OK"
                },
                "headers": {
                    "x-xss-protection": [
                        "1; mode=block"
                    ],
                    "cache-control": [
                        "no-store"
                    ],
                    "content-type": [
                        "application/json"
                    ],
                    "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"
                    ],
                    "x-content-type-options": [
                        "nosniff"
                    ],
                    "expires": [
                        "Sat, 01 Jan 2000 00:00:00 GMT"
                    ]
                },
                "body": {
                    "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}"
                }
            }
        },
        {
            "request": {
                "headers": {
                    "user-agent": [
                        "mercurial/proto-1.0 (Mercurial 5.0+93-d811f17090a3+20190505)"
                    ],
                    "content-length": [
                        "257"
                    ],
                    "content-type": [
                        "application/x-www-form-urlencoded"
                    ],
                    "accept": [
                        "application/mercurial-0.1"
                    ],
                    "host": [
                        "phab.mercurial-scm.org"
                    ]
                },
                "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"
            },
            "response": {
                "status": {
                    "code": 200,
                    "message": "OK"
                },
                "headers": {
                    "x-xss-protection": [
                        "1; mode=block"
                    ],
                    "cache-control": [
                        "no-store"
                    ],
                    "content-type": [
                        "application/json"
                    ],
                    "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"
                    ],
                    "x-content-type-options": [
                        "nosniff"
                    ],
                    "expires": [
                        "Sat, 01 Jan 2000 00:00:00 GMT"
                    ]
                },
                "body": {
                    "string": "{\"result\":null,\"error_code\":null,\"error_info\":null}"
                }
            }
        }
    ]
}