From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wKLBEiq9SmBfDAAA0tVLHw (envelope-from ) for ; Fri, 12 Mar 2021 01:00:26 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GLyGDiq9SmCNGgAAB5/wlQ (envelope-from ) for ; Fri, 12 Mar 2021 01:00:26 +0000 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 aspmx2.migadu.com (Postfix) with ESMTPS id 0413819645 for ; Fri, 12 Mar 2021 02:00:26 +0100 (CET) Received: from localhost ([::1]:53154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKWAD-0004yi-5r for larch@yhetil.org; Thu, 11 Mar 2021 20:00:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKW9r-0004y5-8k for guix-patches@gnu.org; Thu, 11 Mar 2021 20:00:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43954) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKW9r-0006bf-0G for guix-patches@gnu.org; Thu, 11 Mar 2021 20:00:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKW9q-0005n4-UJ for guix-patches@gnu.org; Thu, 11 Mar 2021 20:00:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#47081] [PATCH v2 4/6] tests: databases: Remove mongodb test. Resent-From: =?UTF-8?Q?L=C3=A9o?= Le Bouter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Mar 2021 01:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47081 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47081@debbugs.gnu.org Cc: =?UTF-8?Q?L=C3=A9o?= Le Bouter Received: via spool by 47081-submit@debbugs.gnu.org id=B47081.161551077122119 (code B ref 47081); Fri, 12 Mar 2021 01:00:02 +0000 Received: (at 47081) by debbugs.gnu.org; 12 Mar 2021 00:59:31 +0000 Received: from localhost ([127.0.0.1]:55492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW9L-0005kg-Ax for submit@debbugs.gnu.org; Thu, 11 Mar 2021 19:59:31 -0500 Received: from mail.zaclys.net ([178.33.93.72]:35841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW9F-0005jf-D0 for 47081@debbugs.gnu.org; Thu, 11 Mar 2021 19:59:26 -0500 Received: from localhost.localdomain (82-64-145-38.subs.proxad.net [82.64.145.38]) (authenticated bits=0) by mail.zaclys.net (8.14.7/8.14.7) with ESMTP id 12C0xJY4011357 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 12 Mar 2021 01:59:19 +0100 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 12C0xJY4011357 Authentication-Results: mail.zaclys.net; spf=fail smtp.mailfrom=lle-bout@zaclys.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zaclys.net; s=default; t=1615510759; bh=x+m6mWtFtfq/DPzJMDVvSPJEN2gTEQWRiX+phtmrIQM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ldD2Vj6TENdBaj4MzQRAWnW0by1GefwdLj4y1ITevkjEowjikob1YNMZImfvTqWvU Oo8zpzZNxzzGBN+24jxE6LnPKfh8VnqGnJgH5R9t4zwLI6kpX20RAGe/v3iAEHFmmc G0iqZNVXWAPVYOFtoOcRZfoVzNCWOzpli2JyqWxI= Date: Fri, 12 Mar 2021 01:59:13 +0100 Message-Id: <20210312005915.14100-4-lle-bout@zaclys.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210312005915.14100-1-lle-bout@zaclys.net> References: <20210312005915.14100-1-lle-bout@zaclys.net> 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" Reply-to: =?UTF-8?Q?L=C3=A9o?= Le Bouter X-ACL-Warn: , =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches From: =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615510826; h=from:from:sender:sender:reply-to: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=4BYnCmaXhAySSumG87T2oDVK4b0RP9aq+smSr9728z8=; b=VG/PpcZwDvqniU6lIPLD03HX1Sr8aDXmV+Cs8oXOoazF8XibFqdZmKcJGMHwmmanX03plO jTCw2C/EnU2GkMmMrD23qM4AcLqe4YJbdJBrN680f0npoxepDUU8yVW6mdDpH/gy1+2UrO ptiI4JDf6nvNs8nFbowK8sxSFuc3X/ASCvwcDynD/fYVp0Uqk6uAsIYAMUnFmeg2rnE/AN yunUrE6EhtuWKNC1xVXlz/99uZGFJOwGgXEx5qOpXfn6GmZktQouo7Y2R1gd5St5C10c5w Jr0Z70BLvXvjmn/7OkWph75gZpbXrD7DchOma5oAmV3av8II+jKDZCtuvxubHQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615510826; a=rsa-sha256; cv=none; b=JE/18yyigTkAoZv+/+O5u1sTdri8KMV6betJjsN5cNo0jwc5KTNC+8hJYhgJnWUifOZMpj se5/8iMdgYjhj9Tf1RdJWy17HsN4X8aTqqIsgzB8cdPyFhZg4CYJkOuJo+YFiQg6Kk2+7S FhwgeChS8/HValmZY7uV4WSq80ZWl+fSQ4krWH1euWfI9RQdanqUGBd0BewAgHoKEHX3Ip BFRw5nBcHR27SQ/RkT5mYkGIQ1UwplooQudeZXzkss53qz9WvnWLPyHqDEgi3zGXvOiZ7G f+lEeh6/DZIVfORuwBxt9b0cjIT1luj98Zo7dLzJdBCNHRBgEt6m+CjcpWa5Ug== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("body hash did not verify") header.d=zaclys.net header.s=default header.b=ldD2Vj6T; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.11 Authentication-Results: aspmx2.migadu.com; dkim=fail ("body hash did not verify") header.d=zaclys.net header.s=default header.b=ldD2Vj6T; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 0413819645 X-Spam-Score: 1.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: 83vSsgmDhOjh * gnu/tests/databases.scm (%test-mongodb, %mongodb-os, run-mongodb-test): Remove. --- gnu/tests/databases.scm | 83 ----------------------------------------- 1 file changed, 83 deletions(-) diff --git a/gnu/tests/databases.scm b/gnu/tests/databases.scm index e831d69f5a..4bfe4ee282 100644 --- a/gnu/tests/databases.scm +++ b/gnu/tests/databases.scm @@ -30,7 +30,6 @@ #:use-module (guix gexp) #:use-module (guix store) #:export (%test-memcached - %test-mongodb %test-postgresql %test-mysql)) @@ -127,88 +126,6 @@ (description "Connect to a running MEMCACHED server.") (value (run-memcached-test)))) -(define %mongodb-os - (operating-system - (inherit - (simple-operating-system - (service dhcp-client-service-type) - (service mongodb-service-type))) - (packages (cons* mongodb - %base-packages)))) - -(define* (run-mongodb-test #:optional (port 27017)) - "Run tests in %MONGODB-OS, forwarding PORT." - (define os - (marionette-operating-system - %mongodb-os - #:imported-modules '((gnu services herd) - (guix combinators)))) - - (define vm - (virtual-machine - (operating-system os) - (memory-size 1024) - (disk-image-size (* 1024 (expt 2 20))) - (port-forwardings `((27017 . ,port))))) - - (define test - (with-imported-modules '((gnu build marionette)) - #~(begin - (use-modules (srfi srfi-11) (srfi srfi-64) - (gnu build marionette) - (ice-9 popen) - (ice-9 rdelim)) - - (define marionette - (make-marionette (list #$vm))) - - (mkdir #$output) - (chdir #$output) - - (test-begin "mongodb") - - (test-assert "service running" - (marionette-eval - '(begin - (use-modules (gnu services herd)) - (match (start-service 'mongodb) - (#f #f) - (('service response-parts ...) - (match (assq-ref response-parts 'running) - ((pid) (number? pid)))))) - marionette)) - - (test-eq "test insert" - 0 - (system* (string-append #$mongodb "/bin/mongo") - "test" - "--eval" - "db.testCollection.insert({data: 'test-data'})")) - - (test-equal "test find" - "test-data" - (let* ((port (open-pipe* - OPEN_READ - (string-append #$mongodb "/bin/mongo") - "test" - "--quiet" - "--eval" - "db.testCollection.findOne().data")) - (output (read-line port)) - (status (close-pipe port))) - output)) - - (test-end) - (exit (= (test-runner-fail-count (test-runner-current)) 0))))) - - (gexp->derivation "mongodb-test" test)) - -(define %test-mongodb - (system-test - (name "mongodb") - (description "Connect to a running MONGODB server.") - (value (run-mongodb-test)))) - ;;; ;;; The PostgreSQL service. -- 2.30.2