get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/96153/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 96153,
    "url": "http://patchwork.dpdk.org/api/patches/96153/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dts/patch/20210721130353.1003215-1-harneet.singh@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patchwork.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210721130353.1003215-1-harneet.singh@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210721130353.1003215-1-harneet.singh@intel.com",
    "date": "2021-07-21T13:03:53",
    "name": "tests/power_bidirection_channel: refactor power test",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "f4078a06cbbcbb72df45018570e50c491214fa14",
    "submitter": {
        "id": 2286,
        "url": "http://patchwork.dpdk.org/api/people/2286/?format=api",
        "name": "Harneet Singh",
        "email": "harneet.singh@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dts/patch/20210721130353.1003215-1-harneet.singh@intel.com/mbox/",
    "series": [
        {
            "id": 17935,
            "url": "http://patchwork.dpdk.org/api/series/17935/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=17935",
            "date": "2021-07-21T13:03:53",
            "name": "tests/power_bidirection_channel: refactor power test",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/17935/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/96153/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/96153/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A2740A0C50;\n\tWed, 21 Jul 2021 15:03:59 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6F4254014D;\n\tWed, 21 Jul 2021 15:03:59 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 4F00140143\n for <dts@dpdk.org>; Wed, 21 Jul 2021 15:03:57 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Jul 2021 06:03:56 -0700",
            "from silpixa00400900.ir.intel.com ([10.243.22.130])\n by orsmga001.jf.intel.com with ESMTP; 21 Jul 2021 06:03:55 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10051\"; a=\"191011095\"",
            "E=Sophos;i=\"5.84,258,1620716400\"; d=\"scan'208\";a=\"191011095\"",
            "E=Sophos;i=\"5.84,258,1620716400\"; d=\"scan'208\";a=\"496592440\""
        ],
        "X-ExtLoop1": "1",
        "From": "Harneet Singh <harneet.singh@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Harneet Singh <harneet.singh@intel.com>",
        "Date": "Wed, 21 Jul 2021 13:03:53 +0000",
        "Message-Id": "<20210721130353.1003215-1-harneet.singh@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dts] [PATCH] tests/power_bidirection_channel: refactor power test",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "This test is getting blocked when run on automated nightly testing runs,\nneed to check if this patch fixes that.\n\nSigned-off-by: Harneet Singh <harneet.singh@intel.com>\n---\n tests/TestSuite_power_bidirection_channel.py | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/tests/TestSuite_power_bidirection_channel.py b/tests/TestSuite_power_bidirection_channel.py\nindex 1aa02976..16af4f28 100644\n--- a/tests/TestSuite_power_bidirection_channel.py\n+++ b/tests/TestSuite_power_bidirection_channel.py\n@@ -535,6 +535,12 @@ class TestPowerBidirectionChannel(TestCase):\n         \"\"\"\n         Run at the start of each test suite.\n         \"\"\"\n+        self.vm_name = 'vm0'\n+        cmd_fmt = 'virsh {0} {1} > /dev/null 2>&1'.format\n+        cmds = [\n+                [cmd_fmt('shutdown', self.vm_name), '# '],\n+                [cmd_fmt('undefine', self.vm_name), '# '], ]\n+        self.d_a_con(cmds)\n         self.dut_ports = self.dut.get_ports(self.nic)\n         self.verify(len(self.dut_ports) >= 1, \"Not enough ports\")\n         self.check_cpupower_tool()\n",
    "prefixes": []
}