From nobody Fri Apr 19 12:19:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1530901970149613.4801020694165; Fri, 6 Jul 2018 11:32:50 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A241EC049D4B; Fri, 6 Jul 2018 18:32:49 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9313F9F78; Fri, 6 Jul 2018 18:32:49 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 855521800B68; Fri, 6 Jul 2018 18:32:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w66IWmlN014122 for ; Fri, 6 Jul 2018 14:32:48 -0400 Received: by smtp.corp.redhat.com (Postfix) id BDA6B5D76F; Fri, 6 Jul 2018 18:32:48 +0000 (UTC) Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B2C795D761 for ; Fri, 6 Jul 2018 18:32:45 +0000 (UTC) Received: from mail-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1931C4E90D for ; Fri, 6 Jul 2018 18:32:35 +0000 (UTC) Received: by mail-pf0-f182.google.com with SMTP id u16-v6so9079787pfh.3 for ; Fri, 06 Jul 2018 11:32:35 -0700 (PDT) Received: from localhost.localdomain ([112.196.135.85]) by smtp.gmail.com with ESMTPSA id o4-v6sm19941545pfa.128.2018.07.06.11.32.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 11:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kOXd9DWlCBm5o/u/XbO4C5KZVIoy9k5KT7s5BPOVcOg=; b=ZPKQH0SXkxrbk9ysgMOOyJ5NG4iWur2HPKUHCUyckDT0Mrd29HOqGF+frYFQ3DMF4J IQ1ufIqI/nnkGrihaVap1Pb3a1Kg623iB6g88tVyhGwB2VoyrFAU1TDqX/0tyUh++wVN hZ3QFp9eEEpBToMpjljNq8rqRZmNw2qpZWPe1eUfymUiS2Ci1Um9/GvwR4UfH6hg0Dgi UYfqhgpCDHz31Ilny8sCCRl2AiD3D16XhMRpNGd9MyToNs1oUoeZOLoK17iHPfR2j3RC NTQbwGu+9J/Whu3bYaJ6lU1Q0k6a9bXNj9i5Lw7pIkXxM7Rl9WdlJtCdAwyQsnuwF2Iv sx9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kOXd9DWlCBm5o/u/XbO4C5KZVIoy9k5KT7s5BPOVcOg=; b=TR4YyYvFgaH9uO3dG+2DxLKTraj9yfMkZylQvjk9mIi3w9Nx5bASkHHJ5S3yqthhkb ngdExdnSdRLwvgqPVvMnUtCRzI1cd/bIvgg2kRY/dlakNCQGv0qfOuguuowjo4aToxaq DB9YH1/7Xw8loPRT8E5lUViLP9Q3YUMXeIfbh5I0KxUzNSfESLlorGAobk9zhSS7BgTr HrmRG9KAhV4fCOI/46TXRS6ojL5UQUr6JvdbjnC16USNkwYoLXnoJmaoETiZL0JhoR3v XF33oKk7UF1NL1t2RbD2kEY0L3g71ncyYPqo8b80LX5zTkvcjfd7kPrF7mFPTKd1I5ZO 4S/w== X-Gm-Message-State: APt69E3k2iRV5x2LpdkEX3pB8HGldnD3P4uZOkhX64kVZewWrxmNh+IQ 5rYi0+t5nVPCU3xzBZ6UjjHl2A== X-Google-Smtp-Source: AAOMgpdeU3CysnmI585QjM3jVmhpeCVwhYRtX2C3UrjQB1fxkSSs1vQjV8qjZSCjAHAy5bdsH6LXXA== X-Received: by 2002:a62:a50e:: with SMTP id v14-v6mr11669030pfm.121.1530901954124; Fri, 06 Jul 2018 11:32:34 -0700 (PDT) From: Shubham Jain To: patchew-devel@redhat.com Date: Sat, 7 Jul 2018 00:02:04 +0530 Message-Id: <20180706183207.31842-2-shubhamjain7495@gmail.com> In-Reply-To: <20180706183207.31842-1-shubhamjain7495@gmail.com> References: <20180706183207.31842-1-shubhamjain7495@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 06 Jul 2018 18:32:35 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 06 Jul 2018 18:32:35 +0000 (UTC) for IP:'209.85.192.182' DOMAIN:'mail-pf0-f182.google.com' HELO:'mail-pf0-f182.google.com' FROM:'shubhamjain7495@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.551 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, SPF_PASS, T_DKIM_INVALID) 209.85.192.182 mail-pf0-f182.google.com 209.85.192.182 mail-pf0-f182.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.38 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: patchew-devel@redhat.com Cc: Shubham Jain Subject: [Patchew-devel] [PATCH v4 1/4] Changes in Patchew cli to use rest-api X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 06 Jul 2018 18:32:49 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" - Disabled CSRF authentication until OAuth authentication, since DRF leads = to csrf error while handling sessionauthentication. - Added general rest_api function to make request to apis and get response. --- api/rest.py | 6 ++++++ patchew-cli | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/api/rest.py b/api/rest.py index 9ec0ae8..45dab6e 100644 --- a/api/rest.py +++ b/api/rest.py @@ -25,6 +25,12 @@ from rest_framework.response import Response import rest_framework from mbox import addr_db_to_rest, MboxMessage from rest_framework.parsers import JSONParser, BaseParser +from rest_framework.authentication import SessionAuthentication + +class CsrfExemptSessionAuthentication(SessionAuthentication): + + def enforce_csrf(self, request): + return # To not perform the csrf check previously happening =20 SEARCH_PARAM =3D 'q' =20 diff --git a/patchew-cli b/patchew-cli index 174d1e6..2069885 100755 --- a/patchew-cli +++ b/patchew-cli @@ -92,6 +92,40 @@ class SubCommand(object): r =3D None return r =20 + def rest_api_do(self, url_cmd, request_method=3D'get', content_type=3D= None, data=3DNone): + logging.debug("API call '%s':" % url_cmd) + logging.debug("data:\n%s" % data) + cookie =3D http.cookiejar.MozillaCookieJar(COOKIE_FILENAME) + try: + cookie.load() + except IOError: + pass + except http.cookiejar.LoadError: + print("Error while loading cookie", COOKIE_FILENAME) + pass + handler =3D urllib.request.HTTPCookieProcessor(cookie) + opener =3D urllib.request.build_opener(handler) + if url_cmd.startswith("http"): + url =3D url_cmd + else: + url =3D self.base_url + '/api/v1/' + url_cmd + '/' + if data is None: + post_data =3D "" + else: + post_data =3D data + req =3D urllib.request.Request(url, data=3Dbytes(post_data, encodi= ng=3D"utf-8"), method=3Drequest_method.upper()) + if content_type is not None: + req.add_header('Content-Type', content_type) + resp =3D opener.open(req) + cookie.save(ignore_discard=3DTrue, ignore_expires=3DTrue) + respdata =3D resp.read() + logging.debug("Server response:\n%s" % (respdata or "")) + if respdata: + r =3D json.loads(respdata.decode("utf-8")) + else: + r =3D None + return r + =20 def do(self, args, argv): """Do command""" print("Not implemented") --=20 2.15.1 (Apple Git-101) _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel From nobody Fri Apr 19 12:19:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1530901974708661.9531863516895; Fri, 6 Jul 2018 11:32:54 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2211930832EE; Fri, 6 Jul 2018 18:32:54 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 127C317195; Fri, 6 Jul 2018 18:32:54 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 028484BB78; Fri, 6 Jul 2018 18:32:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w66IWqDA014135 for ; Fri, 6 Jul 2018 14:32:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id A8C732A2DF; Fri, 6 Jul 2018 18:32:52 +0000 (UTC) Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A13682A2F5 for ; Fri, 6 Jul 2018 18:32:50 +0000 (UTC) Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 47EC13DE3D for ; Fri, 6 Jul 2018 18:32:39 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id k1-v6so3241768plt.2 for ; Fri, 06 Jul 2018 11:32:39 -0700 (PDT) Received: from localhost.localdomain ([112.196.135.85]) by smtp.gmail.com with ESMTPSA id o4-v6sm19941545pfa.128.2018.07.06.11.32.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 11:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+Y5RotMow94VrsDIce50V6zK5o1ZkAIUzSrzf1WhY9M=; b=XOeeVMD2FSaAy3o7t0uI8Ms/5snhtrJVzkCHI5PB/zJBLFjg1DNuIxdWtPY8l0e+R2 We7GPqix9LBf63QXYZFMb0XzKFNC3v32g7ixClfsql91twNnADxQFOs+Fc7PsOyIYhmU ZMDr5xlRwT8uJnx8QP4IEs8mBXTlcAqpaf2VA3kRaUn8Feq+YsOoqlIkR24jD+2xuCf2 YlH5GL8+zkqbsweCjxPU7tb0GOhnFVD4WicAbbVTrtOK0n8GlfZoJ6G7leP8sgiIMLMN w0ra/y4r8kLlpkG3SsgA+aatqZzca80YkRpc0h52zZsE+iUQ+P19rq+iAIFMotTLE9Ae K+pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+Y5RotMow94VrsDIce50V6zK5o1ZkAIUzSrzf1WhY9M=; b=k7ZmPH9Sz5rCHfzGHj+/3QOnwIgf1Zt/cevfqANHTGfP79DGeMlHj6a5rOyabPyilC d2M4ldzP+84bhlKRGXcgXMIjsGAyNp1uEGuP+qGDKI8SzmT03vWAuiiXyRZnEMnfJUfM tmXPUnIFtWfrsxgXs3OWSgIoaIhVzvP703s238u4VqCbJ7qKKRxY1VKZqRaCQWDxZP3E fYajUFhuv/jA8tqoW3nWjyElIlFC3r5K5esmzcUzhaZdoaTGSP3e+BQC2xvgw79kKCjV icwisgJZu9Tg+lNgwNVfYEKicXe7QIRggvDduWPEAlK+Pm+l7NsWycFi7nlkBe6FrcwD H1hg== X-Gm-Message-State: APt69E1fHUmRreKbYlpHwNQLbafEXO39jy8KqxI4GwoCRieHoa0Aniij Sh2SMaA5Mq5D9XYWYWqFqrDvVA== X-Google-Smtp-Source: AAOMgpextrGX0JIxMjwtb/Jrvr2QFV1dn6GMUHuPkIwbVJyAD6o9SpFJvHsy0NdH32ea8MC6c2feOg== X-Received: by 2002:a17:902:8d91:: with SMTP id v17-v6mr11483473plo.9.1530901958253; Fri, 06 Jul 2018 11:32:38 -0700 (PDT) From: Shubham Jain To: patchew-devel@redhat.com Date: Sat, 7 Jul 2018 00:02:05 +0530 Message-Id: <20180706183207.31842-3-shubhamjain7495@gmail.com> In-Reply-To: <20180706183207.31842-1-shubhamjain7495@gmail.com> References: <20180706183207.31842-1-shubhamjain7495@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 06 Jul 2018 18:32:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 06 Jul 2018 18:32:39 +0000 (UTC) for IP:'209.85.160.67' DOMAIN:'mail-pl0-f67.google.com' HELO:'mail-pl0-f67.google.com' FROM:'shubhamjain7495@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.531 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, T_DKIM_INVALID) 209.85.160.67 mail-pl0-f67.google.com 209.85.160.67 mail-pl0-f67.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: patchew-devel@redhat.com Cc: Shubham Jain Subject: [Patchew-devel] [PATCH v4 2/4] Make Patchew cli's Project use rest api X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 06 Jul 2018 18:32:54 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" -Make ProjectCommand use rest_api_do instead of api_do --- api/rest.py | 1 + patchew-cli | 37 +++++++++++++++++++++---------------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/api/rest.py b/api/rest.py index 45dab6e..39bdda0 100644 --- a/api/rest.py +++ b/api/rest.py @@ -146,6 +146,7 @@ class ProjectsViewSet(viewsets.ModelViewSet): queryset =3D Project.objects.all().order_by('id') serializer_class =3D ProjectSerializer permission_classes =3D (PatchewPermission,) + authentication_classes =3D (CsrfExemptSessionAuthentication, ) =20 @action(methods=3D['post'], detail=3DTrue, permission_classes=3D[Impor= tPermission]) def update_project_head(self, request, pk=3DNone): diff --git a/patchew-cli b/patchew-cli index 2069885..9d9fde0 100755 --- a/patchew-cli +++ b/patchew-cli @@ -125,7 +125,7 @@ class SubCommand(object): else: r =3D None return r - =20 + def do(self, args, argv): """Do command""" print("Not implemented") @@ -255,11 +255,11 @@ class ProjectCommand(SubCommand): parser.add_argument("--verbose", "-v", action=3D"store_true", help=3D"Show details about projects") args =3D parser.parse_args(argv) - r =3D self.api_do("get-projects") + r =3D self.rest_api_do(url_cmd=3D"projects", request_method=3D'get= ') if args.raw: print(json.dumps(r, indent=3D2, separators=3D",:")) return 0 - for p in r: + for p in r['results']: print(p["name"]) if args.verbose: for k, v in p.items(): @@ -273,8 +273,8 @@ class ProjectCommand(SubCommand): parser.add_argument("name", nargs=3D"+", help=3D"The name of project to show info") args =3D parser.parse_args(argv) - r =3D self.api_do("get-projects") - for p in r: + r =3D self.rest_api_do(url_cmd=3D"projects", request_method=3D'get= ') + for p in r['results']: if not p["name"] in args.name: continue if len(args.name) > 1: @@ -297,12 +297,15 @@ class ProjectCommand(SubCommand): parser.add_argument("--desc", "-d", default=3D"", help=3D"Project short discription") args =3D parser.parse_args(argv) - self.api_do("add-project", - name=3Dargs.name, - mailing_list=3Dargs.mailing_list, - url=3Dargs.url, - git=3Dargs.git, - description=3Dargs.desc) + data =3D {'name':args.name, + 'mailing_list':args.mailing_list, + 'url':args.url, + 'git':args.git, + 'description':args.desc} + self.rest_api_do(url_cmd=3D"projects", + request_method=3D'post', + content_type=3D'application/json', + data=3Djson.dumps(data)) =20 def update_one_project(self, wd, project): logging.info("Updating project '%s'", project["name"]) @@ -354,16 +357,18 @@ class ProjectCommand(SubCommand): except Exception as e: logging.warn("Failed to push the new head to patchew mirro= r: %s", str(e)) - self.api_do("update-project-head", project=3Dproject["name"], - old_head=3Dold_head, - new_head=3Dnew_head, - message_ids=3Dmsgids) + url =3D project['resource_uri'] + "/update_project_head/" + self.rest_api_do(url, request_method=3D'post', + old_head=3Dold_head, + new_head=3Dnew_head, + message_ids=3Dmsgids) =20 def update_project(self, argv): parser =3D argparse.ArgumentParser() parser.add_argument("--name", "-n", help=3D"Name of the project") args =3D parser.parse_args(argv) - projects =3D self.api_do("get-projects", name=3Dargs.name) + projects =3D self.rest_api_do("projects") + projects =3D [p for p in projects['results'] if p['name'] =3D=3D a= rgs.name] wd =3D tempfile.mkdtemp() logging.debug("TMPDIR: %s", wd) try: --=20 2.15.1 (Apple Git-101) _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel From nobody Fri Apr 19 12:19:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 153090202608617.427316896323305; Fri, 6 Jul 2018 11:33:46 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8D3955BEB8; Fri, 6 Jul 2018 18:33:45 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7BCE653B2E; Fri, 6 Jul 2018 18:33:45 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 6B0831800B68; Fri, 6 Jul 2018 18:33:45 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w66IXiCR014158 for ; Fri, 6 Jul 2018 14:33:44 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7A45B5B681; Fri, 6 Jul 2018 18:33:44 +0000 (UTC) Received: from mx1.redhat.com (ext-mx20.extmail.prod.ext.phx2.redhat.com [10.5.110.49]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7297C5B680 for ; Fri, 6 Jul 2018 18:33:39 +0000 (UTC) Received: from mail-pl0-f53.google.com (mail-pl0-f53.google.com [209.85.160.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 49AF93086245 for ; Fri, 6 Jul 2018 18:33:28 +0000 (UTC) Received: by mail-pl0-f53.google.com with SMTP id k1-v6so3242539plt.2 for ; Fri, 06 Jul 2018 11:33:28 -0700 (PDT) Received: from localhost.localdomain ([112.196.135.85]) by smtp.gmail.com with ESMTPSA id o4-v6sm19941545pfa.128.2018.07.06.11.33.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 11:33:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=b+yP/EltRfTX01DjCZGR12/V4Jr0Ij1fik+UuBcI15Y=; b=dm7L/aigIGJC3Y/YTBz/to+KwLqBr9cdszG81Q8DhtVthMvQzy9wgGjxmPXzLaHQBV uvvymtIgsusyHrux9z5/qx1G6S6V3Z4dzjuYdQSI1JU8hAaMYwYpabAWGOUXnuCQa5+0 PILK1QIqdLY6NRmqFa8u6dkOseUDgceSH6wiKcubxKNbbytBpuWgGe2zBLO9IiqsgXTR TuUTDEwwf79Q7w8k4fM0DVt2pg2nQx41KwP9brYI74n192x6chV0M+lsi1mQaFvD+jqB c3rEH27eVW6/2wb4QfmqsAt8yMci/wEfrX1b/Nkr9otX+wWowqzKvO5VZfajPDmC3RYb cSvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=b+yP/EltRfTX01DjCZGR12/V4Jr0Ij1fik+UuBcI15Y=; b=RyHa1A5SVkAtqFeUyXILEiZ0ctrEG2SGfYJLo+Iqb1WiqyS/BpIGOrBu9eHU4x0bps Hs0P5doqxwyla5RrqVZvTuiBVoRAoirmPQVGuU+1knUGeyMow/U4FSn453R1aUPWo9ee 6sqqWCxcPi/ki8Ys1JfuKXV6b6PwJ52uKJTLML4qqEymkqrpLHR/ROjesoBkDWdHH2BK 4lfSiyAGdqUO8/MpfnZ7Mmty7HtJMLR00nijLPfpM6M30rjMxTJ1/Fzi9wdMY6byzJ+r dGog/A4ikFSffl1/0jDC4uu5jHyddY61HmK/PsIG9zb+Y9dgDJLxN8XsGGbONQqZTzwK er7Q== X-Gm-Message-State: APt69E37I2cZCJBT5ZqAY5zjhgj2EJEIO6ESKntKkPAnwBT1EPHjF9SG 6R+E3+XeB+jVg/ULAgb7A8wt6Q== X-Google-Smtp-Source: AAOMgpfHACKtvCZDhewa5ia6N4gQGyyojwUywffYYOGFIrY6HH4p9hc0PCsgqLBNWFvvS4h/fzL0aA== X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr11315912plx.318.1530902007228; Fri, 06 Jul 2018 11:33:27 -0700 (PDT) From: Shubham Jain To: patchew-devel@redhat.com Date: Sat, 7 Jul 2018 00:02:06 +0530 Message-Id: <20180706183207.31842-4-shubhamjain7495@gmail.com> In-Reply-To: <20180706183207.31842-1-shubhamjain7495@gmail.com> References: <20180706183207.31842-1-shubhamjain7495@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Fri, 06 Jul 2018 18:33:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Fri, 06 Jul 2018 18:33:28 +0000 (UTC) for IP:'209.85.160.53' DOMAIN:'mail-pl0-f53.google.com' HELO:'mail-pl0-f53.google.com' FROM:'shubhamjain7495@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.551 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, SPF_PASS, T_DKIM_INVALID) 209.85.160.53 mail-pl0-f53.google.com 209.85.160.53 mail-pl0-f53.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.49 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: patchew-devel@redhat.com Cc: Shubham Jain Subject: [Patchew-devel] [PATCH v4 3/4] Make Delete Command use REST X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 06 Jul 2018 18:33:45 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Make patchew-cli's delete use REST api and added the missing test for delete --- api/rest.py | 2 ++ patchew-cli | 15 ++++++++++++++- tests/patchewtest.py | 3 +++ tests/test_message.py | 13 +++++++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) diff --git a/api/rest.py b/api/rest.py index 39bdda0..c7818c4 100644 --- a/api/rest.py +++ b/api/rest.py @@ -320,6 +320,8 @@ class SeriesViewSet(BaseMessageViewSet): =20 class ProjectSeriesViewSet(ProjectMessagesViewSetMixin, SeriesViewSet, mixins.DestroyModelMixin): + authentication_classes =3D (CsrfExemptSessionAuthentication, ) + =20 def collect_patches(self, series): if series.is_patch: patches =3D [series] diff --git a/patchew-cli b/patchew-cli index 9d9fde0..509bb62 100755 --- a/patchew-cli +++ b/patchew-cli @@ -181,7 +181,20 @@ class DeleteCommand(SubCommand): if not argv and not args.all: print("Must specify --all to delete all patches") return 1 - self.api_do("delete", terms=3Dargv) + series_list =3D [] + if args.all: + resp =3D self.rest_api_do("projects") + for project in len(resp['result']): + url =3D project['series'] + series_resp =3D self.rest_api_do(url) + series_list =3D series_list + series_resp['results'] + else: + for term in argv: + series_resp =3D self.rest_api_do("series/?q%s"%term) + series_list =3D series_list + series_resp['results'] + for series in series_list: + url =3D series['resource_uri'] + self.rest_api_do(url, request_method=3D'delete') return 0 =20 class ImportCommand(SubCommand): diff --git a/tests/patchewtest.py b/tests/patchewtest.py index 5bed3b9..847b3f9 100644 --- a/tests/patchewtest.py +++ b/tests/patchewtest.py @@ -100,6 +100,9 @@ class PatchewTestCase(django.test.LiveServerTestCase): def cli_import(self, mbox, rc=3D0): self.check_cli(["import", self.get_data_path(mbox)], rc) =20 + def cli_delete(self, terms, rc=3D0): + self.check_cli(["delete", terms], rc) + def get_data_path(self, fname): r =3D tempfile.NamedTemporaryFile(dir=3DRUN_DIR, prefix=3D"test-da= ta-", delete=3DFalse) d =3D os.path.join(BASE_DIR, "tests", "data", fname) diff --git a/tests/test_message.py b/tests/test_message.py index 9448aee..ae308a5 100755 --- a/tests/test_message.py +++ b/tests/test_message.py @@ -10,6 +10,7 @@ =20 import time import datetime +import json from tests.patchewtest import PatchewTestCase, main =20 class ProjectTest(PatchewTestCase): @@ -54,5 +55,17 @@ class ProjectTest(PatchewTestCase): asctime =3D message.get_asctime() self.assertEqual(asctime, "Sat Oct 22 9:06:04 2016") =20 + def test_delete(self): + self.cli_login() + self.add_project("QEMU", "qemu-devel@nongnu.org") + self.cli_import("0002-unusual-cased-tags.mbox.gz") + a, b =3D self.check_cli(["search", "-r", "-o", "subject,properties= "]) + ao =3D json.loads(a)[0] + self.assertEqual(["Fam Zheng", "famz@redhat.com"], + ao["properties"]["reviewers"][0]) + self.cli_delete("from:Fam") + a, b =3D self.check_cli(["search", "-r", "-o", "subject,properties= "]) + self.assertEqual("", a) + if __name__ =3D=3D '__main__': main() --=20 2.15.1 (Apple Git-101) _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel From nobody Fri Apr 19 12:19:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1530902030303442.4637414079996; Fri, 6 Jul 2018 11:33:50 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C166AC057F9F; Fri, 6 Jul 2018 18:33:49 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A4A081062244; Fri, 6 Jul 2018 18:33:49 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 81C674A460; Fri, 6 Jul 2018 18:33:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w66IXmAL014168 for ; Fri, 6 Jul 2018 14:33:48 -0400 Received: by smtp.corp.redhat.com (Postfix) id 69C8C2B4DC; Fri, 6 Jul 2018 18:33:48 +0000 (UTC) Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 61A642B4D6 for ; Fri, 6 Jul 2018 18:33:48 +0000 (UTC) Received: from mail-pl0-f46.google.com (mail-pl0-f46.google.com [209.85.160.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3D9A783F3D for ; Fri, 6 Jul 2018 18:33:37 +0000 (UTC) Received: by mail-pl0-f46.google.com with SMTP id 6-v6so3237874plb.0 for ; Fri, 06 Jul 2018 11:33:37 -0700 (PDT) Received: from localhost.localdomain ([112.196.135.85]) by smtp.gmail.com with ESMTPSA id o4-v6sm19941545pfa.128.2018.07.06.11.33.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 11:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=o6BzZ76883LdCXmmzrzt054u79q4IR8x4zSI0FA2Xgw=; b=cX0XSU55tks3SFOlXchpgCb8zBnbly6m1/RCQh5f8rGkOSp03HILpJzXfeV1QnYXKF 4jMxngq3aM2Tkc6eWwANA6wym3FKsVpN1Sa0tS+I3Ard5CPX7lAT2pltVb6VSdQFHpWc yYW0c66d5z4eyLj+4IzwCRsBU4q3tAasLP1eHK2yE8/YOJXT0aWjNHTmo85+iG+RLxOI L8LMuxY4qSfW65N3AaJGo6A6EY0Fj+e5FQD/MNXf13hVAlbf/3vUn/uCOH94NHluO5VJ VeVn5jgEfdFv2dHmMVcKO3c4pQQ58A+fz2HCQfxs4QQzAzm2hF8MVHHFlo+6rx433p8f 9ngw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=o6BzZ76883LdCXmmzrzt054u79q4IR8x4zSI0FA2Xgw=; b=Iy1q7bXnEZjtQ6wQuFx652lr07ZJ/SztKquQetd+wCa7FGVVr2gGccC21+3jBVELzq U2u8MXhj1y+4lJPuHBil21/sDPJSoFoCvyJXBhrcod/92aILr03H6EUMzFAV5D4IJvYV scUDhUJc/ELzMOSjaEosKB6btT5OG7spZ6UHqfn9kIExWv84hOgoqK2BrjHSBd34AC6F RtT8RD5HUWN3M+Hjn7DbUHAB+MqKe621josmMypieJzIQz1b4ka3qW5Dc9lSURLEaxvY fu5N+mxYHKNqNoSw9L1oSPYkgmb6YRCkPZ0+NBznky0FSsH9+7pADe84ORztgtrgiyKa Mzmg== X-Gm-Message-State: APt69E20CNT3I7DTLirtvkOOAD06fqE4hxLCEE6UcjguSTa3STqX3uLz btQSyqb2NpzeAGvzpkm9wIkISA== X-Google-Smtp-Source: AAOMgpc9lE/mrcbaLqXlJK7gJLYgjOVMrdfn1i9RsMYdgVnDgb+55+gN1vzRRFm7eUiyZprH9Dsgzw== X-Received: by 2002:a17:902:a702:: with SMTP id w2-v6mr11403285plq.41.1530902016109; Fri, 06 Jul 2018 11:33:36 -0700 (PDT) From: Shubham Jain To: patchew-devel@redhat.com Date: Sat, 7 Jul 2018 00:02:07 +0530 Message-Id: <20180706183207.31842-5-shubhamjain7495@gmail.com> In-Reply-To: <20180706183207.31842-1-shubhamjain7495@gmail.com> References: <20180706183207.31842-1-shubhamjain7495@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 06 Jul 2018 18:33:37 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 06 Jul 2018 18:33:37 +0000 (UTC) for IP:'209.85.160.46' DOMAIN:'mail-pl0-f46.google.com' HELO:'mail-pl0-f46.google.com' FROM:'shubhamjain7495@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.531 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, T_DKIM_INVALID) 209.85.160.46 mail-pl0-f46.google.com 209.85.160.46 mail-pl0-f46.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: patchew-devel@redhat.com Cc: Shubham Jain Subject: [Patchew-devel] [PATCH v4 4/4] Make Import Command use Rest X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 06 Jul 2018 18:33:49 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Make patchew-cli's Import REST apis. For an authenticated but unauthorised = user the exit status would be 1 ie when no projects are imported. Now importing same message to a project again would not give 404 error. Also changed a test case in test_tags accordingly. --- api/models.py | 3 +++ api/rest.py | 5 +++-- patchew-cli | 18 +++++++++++++----- tests/test_tags.py | 4 +--- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/api/models.py b/api/models.py index e712149..813a56f 100644 --- a/api/models.py +++ b/api/models.py @@ -359,6 +359,9 @@ class MessageManager(models.Manager): def create(self, project, **validated_data): mbox =3D validated_data.pop('mbox') m =3D MboxMessage(mbox) + msg =3D Message.objects.filter(message_id=3Dm.get_message_id(), pr= oject=3Dproject).first() + if msg is not None: + return msg msg =3D Message(**validated_data) if 'in_reply_to' not in validated_data: msg.in_reply_to =3D m.get_in_reply_to() or "" diff --git a/api/rest.py b/api/rest.py index c7818c4..876be75 100644 --- a/api/rest.py +++ b/api/rest.py @@ -321,7 +321,7 @@ class SeriesViewSet(BaseMessageViewSet): class ProjectSeriesViewSet(ProjectMessagesViewSetMixin, SeriesViewSet, mixins.DestroyModelMixin): authentication_classes =3D (CsrfExemptSessionAuthentication, ) - =20 + def collect_patches(self, series): if series.is_patch: patches =3D [series] @@ -423,7 +423,8 @@ class MessagesViewSet(BaseMessageViewSet): serializer_class =3D MessageSerializer permission_classes =3D (permissions.IsAuthenticatedOrReadOnly,) parser_classes =3D (JSONParser, MessagePlainTextParser, ) - =20 + authentication_classes =3D (CsrfExemptSessionAuthentication, ) + def create(self, request, *args, **kwargs): m =3D MboxMessage(request.data['mbox']) projects =3D [p for p in Project.objects.all() if p.recognizes(m)] diff --git a/patchew-cli b/patchew-cli index 509bb62..d553ea1 100755 --- a/patchew-cli +++ b/patchew-cli @@ -220,11 +220,16 @@ class ImportCommand(SubCommand): print("[OLD] " + mo["Subject"]) return print("[NEW] " + mo["Subject"]) - r =3D self.api_do("import", mboxes=3D[mo.as_string()]) - for p in r: - if p not in projects: - projects.add(p) - print(p) + for mbox in [mo.as_string()]: + r =3D self.rest_api_do(url_cmd=3D"messages", + request_method=3D'post', + content_type=3D'message/rfc822', + data=3Dmbox) + projects_list =3D [x['resource_uri'].split("messages")[0] = for x in r['results']] + for p in projects_list: + if p not in projects: + projects.add(p) + print(p) if ff: open(ff, "wb").close() =20 @@ -250,6 +255,9 @@ class ImportCommand(SubCommand): for f in args.file: try: import_one(f) + if len(projects)=3D=3D0: + print("The message was not imported to any project. Pe= rhaps you're not logged in as an importer or maintainer") + r =3D1 except: print("Error in importing:", f) traceback.print_exc() diff --git a/tests/test_tags.py b/tests/test_tags.py index 6c162de..c91e9c1 100755 --- a/tests/test_tags.py +++ b/tests/test_tags.py @@ -22,9 +22,7 @@ class ImportTest(PatchewTestCase): self.p.save() =20 def test_import_one(self): - resp =3D self.apply_and_retrieve('0017-qemu-web-is-not-qemu.mbox.g= z', - self.p.id, '1504250391-6353-1-git-s= end-email-thuth@redhat.com') - self.assertEquals(resp.status_code, 404) + self.cli_import("0017-qemu-web-is-not-qemu.mbox.gz", rc=3D1) =20 def test_rest_single(self): resp =3D self.apply_and_retrieve('0003-single-patch-reviewed.mbox.= gz', --=20 2.15.1 (Apple Git-101) _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel