Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/814545/?format=api
{ "id": 814545, "url": "http://patchwork.ozlabs.org/api/1.2/patches/814545/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/5d8ea4ebb51023d3943fb4e5a1678f8cfba70527.1505594291.git.yann.morin.1998@free.fr/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/1.2/projects/27/?format=api", "name": "Buildroot development", "link_name": "buildroot", "list_id": "buildroot.buildroot.org", "list_email": "buildroot@buildroot.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<5d8ea4ebb51023d3943fb4e5a1678f8cfba70527.1505594291.git.yann.morin.1998@free.fr>", "list_archive_url": null, "date": "2017-09-16T20:38:21", "name": "[2/2] testing: add python-cryptography tests", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "7edc3be8b4b1cd5eee687e579d1e61ca2ba8d40d", "submitter": { "id": 13903, "url": "http://patchwork.ozlabs.org/api/1.2/people/13903/?format=api", "name": "Yann E. MORIN", "email": "yann.morin.1998@free.fr" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/5d8ea4ebb51023d3943fb4e5a1678f8cfba70527.1505594291.git.yann.morin.1998@free.fr/mbox/", "series": [ { "id": 3469, "url": "http://patchwork.ozlabs.org/api/1.2/series/3469/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=3469", "date": "2017-09-16T20:38:20", "name": "[1/2] support/run-tests: move packages tests to packages directories", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/3469/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/814545/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/814545/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<buildroot-bounces@busybox.net>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "buildroot@lists.busybox.net" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "buildroot@osuosl.org" ], "Authentication-Results": [ "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"StgDLhtl\"; dkim-atps=neutral" ], "Received": [ "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xvkcq2C0Sz9t2S\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 17 Sep 2017 06:38:35 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id BAC3788D1E;\n\tSat, 16 Sep 2017 20:38:32 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id pUg9dpsoGQIr; Sat, 16 Sep 2017 20:38:31 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 3525788D28;\n\tSat, 16 Sep 2017 20:38:31 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id DBED81C1F5B\n\tfor <buildroot@lists.busybox.net>;\n\tSat, 16 Sep 2017 20:38:28 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id D6F0588D28\n\tfor <buildroot@lists.busybox.net>;\n\tSat, 16 Sep 2017 20:38:28 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id EPjb8sViQroN for <buildroot@lists.busybox.net>;\n\tSat, 16 Sep 2017 20:38:28 +0000 (UTC)", "from mail-wm0-f65.google.com (mail-wm0-f65.google.com\n\t[74.125.82.65])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 0697088D5C\n\tfor <buildroot@buildroot.org>; Sat, 16 Sep 2017 20:38:28 +0000 (UTC)", "by mail-wm0-f65.google.com with SMTP id i131so5540533wma.1\n\tfor <buildroot@buildroot.org>; Sat, 16 Sep 2017 13:38:27 -0700 (PDT)", "from localhost.localdomain\n\t(2a01cb088610730010ddb904e4e3a574.ipv6.abo.wanadoo.fr.\n\t[2a01:cb08:8610:7300:10dd:b904:e4e3:a574])\n\tby smtp.gmail.com with ESMTPSA id\n\t66sm3733187wmn.37.2017.09.16.13.38.25\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSat, 16 Sep 2017 13:38:25 -0700 (PDT)" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=uTiQLoTsbebvPZEzTASGRj/miGRnYbhDvOy/iCAWulg=;\n\tb=StgDLhtlT3h5aPGo/q5T0ZsZuFmqGIXflD3TQkRULR89n6AeSlWxzCFx/+eKhObz7+\n\tHOyEm+yth/QhJVkdr0l/psQUOIcoolBWgxp7KvRsN16NkL1qFOcY3m6GQsmGaVYHlkD9\n\tywmhllatkr9IMyx2U77eNWqsvw3f5eLtfvrq/chLmtYEwGLJVGQHj1vmGGghIDNREBNu\n\t7D1UE+or1yVbtIg+oICQk7JkXxTZ4UIZYqAg+I7KiCxRwu1OEQwyCHZcmocrlwj8GJML\n\tz35SfuwFiZe0tXZAHqNXjalW6IRnqwgZUs9uzyobO0u2bUe8++zk6gDaZULFFl9AzJRn\n\tIa4g==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=uTiQLoTsbebvPZEzTASGRj/miGRnYbhDvOy/iCAWulg=;\n\tb=emnUYJkyKXZzf+BY2RdDxevsWwFjtRmct4XbDlJcgfK2efxx2PaboV7Df9HTJ8M5mE\n\tJvhB6amZnNadGyVX8mN0g5VQUtrX8ihLE2FqNogHUzOrYHe+B43Z9VclIyx8Omxfr9c8\n\tFEiLuNvO1KevHr7H1DoL8KvB6Tc98Bid9ciLGKBXLe9mdCV2BkZ+ms6YP/iAKwHwqyLB\n\tPfvcr51cYeEYewQ8Vg/CW5vmEfHOWos5Fi6580Qjhe24n7YoJWVYDhqPAbRO5/G3IIYY\n\talevbeRi7jfPF33zY+ae6Tx/+hpcAPXflfKQF16xsi4JNlel8UINgcuqrLLWeg3H4cai\n\t5lCw==", "X-Gm-Message-State": "AHPjjUhhOQDOOUY3veviUIuPutE8Qad5cxZFAhgyQFCO/wUYcZv05Rkg\n\t82v7BxGuD2XM818fsF73uA2IZw==", "X-Google-Smtp-Source": "AOwi7QCy88CdeLY5QZQfkis1/ziYuqnfk8w4+u3GZe5GGFMKY81JRsCBQbW+a26ioDX3tsLjob27Sw==", "X-Received": "by 10.28.46.16 with SMTP id u16mr5330180wmu.125.1505594306270;\n\tSat, 16 Sep 2017 13:38:26 -0700 (PDT)", "From": "\"Yann E. MORIN\" <yann.morin.1998@free.fr>", "To": "buildroot@buildroot.org", "Date": "Sat, 16 Sep 2017 22:38:21 +0200", "Message-Id": "<5d8ea4ebb51023d3943fb4e5a1678f8cfba70527.1505594291.git.yann.morin.1998@free.fr>", "X-Mailer": "git-send-email 2.11.0", "In-Reply-To": "<cover.1505594291.git.yann.morin.1998@free.fr>", "References": "<cover.1505594291.git.yann.morin.1998@free.fr>", "Cc": "\"Yann E . MORIN\" <yann.morin.1998@free.fr>", "Subject": "[Buildroot] [PATCH 2/2] testing: add python-cryptography tests", "X-BeenThere": "buildroot@busybox.net", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Discussion and development of buildroot <buildroot.busybox.net>", "List-Unsubscribe": "<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>", "List-Archive": "<http://lists.busybox.net/pipermail/buildroot/>", "List-Post": "<mailto:buildroot@busybox.net>", "List-Help": "<mailto:buildroot-request@busybox.net?subject=help>", "List-Subscribe": "<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "buildroot-bounces@busybox.net", "Sender": "\"buildroot\" <buildroot-bounces@busybox.net>" }, "content": "From: Yegor Yefremov <yegorslists@googlemail.com>\n\nSigned-off-by: Yegor Yefremov <yegorslists@googlemail.com>\nReviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>\n[yann.morin.1998@free.fr:\n - move to package directory,\n - indent the config fragment\n]\nSigned-off-by: Yann E. MORIN <yann.morin.1998@free.fr>\n\n---\nNote:\nThis is exactly the same as https://patchwork.ozlabs.org/patch/811011/\nbut with the test moved to the python-cryptography package and the\nconfig fragment indented.\n---\n .gitlab-ci.yml | 2 ++\n package/python-cryptography/python-cryptography.py | 31 ++++++++++++++++++++++\n 2 files changed, 33 insertions(+)\n create mode 100644 package/python-cryptography/python-cryptography.py", "diff": "diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml\nindex b44c935f2a..091b016191 100644\n--- a/.gitlab-ci.yml\n+++ b/.gitlab-ci.yml\n@@ -250,6 +250,8 @@ tests.package.test_ipython.TestIPythonPy2: *runtime_test\n tests.package.test_ipython.TestIPythonPy3: *runtime_test\n tests.package.test_python.TestPython2: *runtime_test\n tests.package.test_python.TestPython3: *runtime_test\n+tests.package.test_python_cryptography.TestPythonPy2Cryptography: *runtime_test\n+tests.package.test_python_cryptography.TestPythonPy3Cryptography: *runtime_test\n tests.toolchain.test_external.TestExternalToolchainBuildrootMusl: *runtime_test\n tests.toolchain.test_external.TestExternalToolchainBuildrootuClibc: *runtime_test\n tests.toolchain.test_external.TestExternalToolchainCCache: *runtime_test\ndiff --git a/package/python-cryptography/python-cryptography.py b/package/python-cryptography/python-cryptography.py\nnew file mode 100644\nindex 0000000000..907baaafa6\n--- /dev/null\n+++ b/package/python-cryptography/python-cryptography.py\n@@ -0,0 +1,31 @@\n+import os\n+\n+from tests.package.test_python import TestPythonBase\n+\n+class TestPythonCryptography(TestPythonBase):\n+ def fernet_test(self, timeout=-1):\n+ cmd = self.interpreter + \" -c 'from cryptography.fernet import Fernet;\"\n+ cmd += \"key = Fernet.generate_key();\"\n+ cmd += \"f = Fernet(key)'\"\n+ _, exit_code = self.emulator.run(cmd, timeout)\n+ self.assertEqual(exit_code, 0)\n+\n+class TestPythonPy2Cryptography(TestPythonCryptography):\n+ config = TestPythonBase.config + \\\n+ \"\"\"\n+ BR2_PACKAGE_PYTHON=y\n+ BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y\n+ \"\"\"\n+ def test_run(self):\n+ self.login()\n+ self.fernet_test(40)\n+\n+class TestPythonPy3Cryptography(TestPythonCryptography):\n+ config = TestPythonBase.config + \\\n+ \"\"\"\n+ BR2_PACKAGE_PYTHON3=y\n+ BR2_PACKAGE_PYTHON_CRYPTOGRAPHY=y\n+ \"\"\"\n+ def test_run(self):\n+ self.login()\n+ self.fernet_test(40)\n", "prefixes": [ "2/2" ] }