From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IEfTH78IW2dwgQAA62LTzQ:P1 (envelope-from ) for ; Thu, 12 Dec 2024 16:01:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IEfTH78IW2dwgQAA62LTzQ (envelope-from ) for ; Thu, 12 Dec 2024 17:01:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=LhKS3UQR; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=gbYAOy7l; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734019263; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0NRF0wq1TUSJTCaXcadUmInUaUDl9Db5F1Yau5qrAPc=; b=lXNamOZ3iXc352w3ybXYkNFcnTsx/S7fkA3vf9b7qM5AQ0gpQsUMZRY4EYCkaRwQE7SP5D d9GgvikaUXFiQjdqU0R6m+bsSmjC+wT8li6kVT6R+gioUT+hyh1zmQb1YsO63GfQ1iiO+4 CMM9DFN4tjnX1ClVIJjvcxu1gcFNtzFehpelmH9y60cSUljQ6OCIn/FpzBd6RLMw7zRnHm Cz+EqxKXaBie7AulP4XfCtdlE41CAW/+GXj9HuHe5KWSDrzTHrh9v5pjUEYSvMz6BO3tuY 7LJmjVsnlz1Ui4dGp49gVPhNXCwB/aUaqmfhrLrKZ+tzjH2/NqBUWBDKKNds1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=LhKS3UQR; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=gbYAOy7l; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734019263; a=rsa-sha256; cv=none; b=l0fGT2B4WtPbMeEawdPovxtYng0uSGa7Yjrbk1BtT8YqgPdDnUjpa0XgvGhGb4UA7BRBwM l3sR9zkgw+F5bjJx3ofkchz6RZvs/GxE/7GQskmrf8TAghXZ7tW49R6KnSj2qu5Rvm0qXR KRlPn1batexmPgWRVDlfnVkZ6pYZib1iq1mJbhIsEKLGaqkdnJ6hQje6CgvPo/HH6j4GKy QobfryW5Bl82w2lV5/MgTFtsP3qgmQHnCoCTpwGC53qUjTPjHaoFPq+9Nr0njX3E0yOiqK pCYBLJTRjKruvbmlotaXiG7KNUKs582MUmXTv0SJ0ItGbhFM4wQ/3HYboiPTwA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6981E8C556 for ; Thu, 12 Dec 2024 17:01:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLlby-000227-Gu; Thu, 12 Dec 2024 11:00:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLlbs-00020A-Es for guix-patches@gnu.org; Thu, 12 Dec 2024 11:00:16 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLlbo-0000qT-TB for guix-patches@gnu.org; Thu, 12 Dec 2024 11:00:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=0NRF0wq1TUSJTCaXcadUmInUaUDl9Db5F1Yau5qrAPc=; b=LhKS3UQRCVboQuQZf0k1AgcZb6YVg/rdJF6+3d6kEk8Db22jJgIyCyBo2QG2VXDpjBfVISAK9aUtLn+bjyF2wQnmQ4TXTpQbV5txzF51g62nxSAz8+7VMuruPj/equM/pNhVLLsGBuE1oQ+ZsxQHJrWz8lIf7k5Qa/DhPwGpDk2cXU0yd5jCnybJUvB6iX8E9oXH9ZTXqb+/cdHVENDefsd7Y8U78IkTqiMZADe8oahui7nOa9GfScAbqlxvWYkll7PoajRZORpXXb7WDLAaw/QR/ZVNbhx4LLe4youQh8i6HIENTj1xr0rcCchLBTBwLLkX39kIBa//YzaXhcX0FQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLlbo-000150-JH for guix-patches@gnu.org; Thu, 12 Dec 2024 11:00:12 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74769] [PATCH Cuirass v2 6/7] tests: Explicit Gitlab endpoint related variables. Resent-From: Romain GARBAGE Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Dec 2024 16:00:12 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74769 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74769@debbugs.gnu.org Cc: ludovic.courtes@inria.fr, Romain GARBAGE Received: via spool by 74769-submit@debbugs.gnu.org id=B74769.17340191643613 (code B ref 74769); Thu, 12 Dec 2024 16:00:12 +0000 Received: (at 74769) by debbugs.gnu.org; 12 Dec 2024 15:59:24 +0000 Received: from localhost ([127.0.0.1]:39990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLlb1-0000wA-Ij for submit@debbugs.gnu.org; Thu, 12 Dec 2024 10:59:23 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:36991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLlat-0000uw-WB for 74769@debbugs.gnu.org; Thu, 12 Dec 2024 10:59:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0NRF0wq1TUSJTCaXcadUmInUaUDl9Db5F1Yau5qrAPc=; b=gbYAOy7ltiUixgGaanKrvLTOpumoWUir4g7PXXOfTIUJ6mNwEZP++0gj cq887sxu+R+N8OxmgtS9C/IzOJQlY6XGazP2/pIozKyLHLWut8MGIpBPF i3e497BHwIVY9K3h0BFJadZWnbbBWj4AIEX/edQHVVVZd5zoEu2XAI29q o=; X-IronPort-AV: E=Sophos;i="6.12,229,1728943200"; d="scan'208";a="104178648" Received: from unknown (HELO guix-A102.bordeaux.inria.fr) ([193.50.110.191]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2024 16:58:59 +0100 From: Romain GARBAGE Date: Thu, 12 Dec 2024 16:57:54 +0100 Message-ID: <20241212155845.27344-6-romain.garbage@inria.fr> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241212155845.27344-1-romain.garbage@inria.fr> References: <20241212155845.27344-1-romain.garbage@inria.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 0.51 X-Spam-Score: 0.51 X-Migadu-Queue-Id: 6981E8C556 X-TUID: ySfMYhEfuZEs * tests/http.scm: Rename mr-* variables to gitlab-merge-request-*. --- tests/http.scm | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/http.scm b/tests/http.scm index 541f30d..aa58e78 100644 --- a/tests/http.scm +++ b/tests/http.scm @@ -90,7 +90,7 @@ (channel . "packages") (directory . "dir2"))))))) -(define mr-json-open +(define gitlab-merge-request-json-open "{ \"event_type\": \"merge_request\", \"project\": { @@ -108,7 +108,7 @@ } }") -(define mr-json-close +(define gitlab-merge-request-json-close "{ \"event_type\": \"merge_request\", \"project\": { @@ -126,8 +126,8 @@ } }") -(define mr-spec - (let ((event (json->gitlab-event mr-json-open))) +(define gitlab-merge-request-spec + (let ((event (json->gitlab-event gitlab-merge-request-json-open))) (gitlab-merge-request->specification (gitlab-event-value event) (gitlab-event-project event)))) @@ -438,24 +438,24 @@ (specification-channels spec))))))) (test-equal "/admin/gitlab/event creates a spec from a new merge request" - (specification-name mr-spec) + (specification-name gitlab-merge-request-spec) (begin - (http-post-json (test-cuirass-uri "/admin/gitlab/event") mr-json-open) - (specification-name (db-get-specification (specification-name mr-spec))))) + (http-post-json (test-cuirass-uri "/admin/gitlab/event") gitlab-merge-request-json-open) + (specification-name (db-get-specification (specification-name gitlab-merge-request-spec))))) (test-equal "/admin/gitlab/event error when a merge request has already been created" 400 - (response-code (http-post-json (test-cuirass-uri "/admin/gitlab/event") mr-json-open))) + (response-code (http-post-json (test-cuirass-uri "/admin/gitlab/event") gitlab-merge-request-json-open))) (test-assert "/admin/gitlab/event removes a spec from a closed merge request" (begin - (http-post-json (test-cuirass-uri "/admin/gitlab/event") mr-json-close) - (not (db-get-specification (specification-name mr-spec))))) + (http-post-json (test-cuirass-uri "/admin/gitlab/event") gitlab-merge-request-json-close) + (not (db-get-specification (specification-name gitlab-merge-request-spec))))) (test-equal "/admin/gitlab/event error when a merge request has already been closed" 404 (response-code (http-post-json (test-cuirass-uri "/admin/gitlab/event") - mr-json-close))) + gitlab-merge-request-json-close))) (test-assert "db-close" (begin -- 2.46.0