From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oFv+Gau8SmDQPQAA0tVLHw (envelope-from ) for ; Fri, 12 Mar 2021 00:58:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gDrQFau8SmDDIQAA1q6Kng (envelope-from ) for ; Fri, 12 Mar 2021 00:58:19 +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 aspmx1.migadu.com (Postfix) with ESMTPS id 270E426E45 for ; Fri, 12 Mar 2021 01:58:19 +0100 (CET) Received: from localhost ([::1]:51938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKW8A-0004Ia-9x for larch@yhetil.org; Thu, 11 Mar 2021 19:58:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKW7v-0004Fk-CN for guix-patches@gnu.org; Thu, 11 Mar 2021 19:58:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43931) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKW7v-0005cW-5P for guix-patches@gnu.org; Thu, 11 Mar 2021 19:58:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKW7v-0005hN-54 for guix-patches@gnu.org; Thu, 11 Mar 2021 19:58:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#47081] [PATCH 3/5] 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 00:58:03 +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.161551064821835 (code B ref 47081); Fri, 12 Mar 2021 00:58:03 +0000 Received: (at 47081) by debbugs.gnu.org; 12 Mar 2021 00:57:28 +0000 Received: from localhost ([127.0.0.1]:55471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW7L-0005g0-Qh for submit@debbugs.gnu.org; Thu, 11 Mar 2021 19:57:28 -0500 Received: from mail.zaclys.net ([178.33.93.72]:35133) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW7J-0005fH-UQ for 47081@debbugs.gnu.org; Thu, 11 Mar 2021 19:57: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 12C0vJrt011211 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 12 Mar 2021 01:57:20 +0100 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 12C0vJrt011211 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=1615510640; bh=x+m6mWtFtfq/DPzJMDVvSPJEN2gTEQWRiX+phtmrIQM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WtOnJug6frcSzdV6QvtcViURGD4w1yYx3iXe7DFxF7MNSgRH6OXi9cqchUrlX2yCM h1zn3b4RBocgK/rvQPeYLWwPphlsUyyWG6HIUJ3NSbiT5S0oAe6wQbPy1SBVSyWOE+ I4/nzjmkJ7CfHZkfzYONJkdK/LMjzL1R+j/wyVzg= Date: Fri, 12 Mar 2021 01:57:13 +0100 Message-Id: <20210312005715.13881-3-lle-bout@zaclys.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210312005715.13881-1-lle-bout@zaclys.net> References: <20210312005715.13881-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=1615510699; 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=YpUVW5FAyfTE3exK4Hcua6Ve6FerYfoJjMz2cOAyskDHaYmZ2trWzrqIhOLMoPBlA6UvW4 rWKHyBv3+GWk0Dce1527kZgYVBnuTcRmLfmJMA1DeKGjfzLzX2LeJUrIgdk1bbENmPKzKD aBtjoqYG/i4vhnzS1a4zypItX/VjN1M18st1iv8E+Ng93VhWixAtRsz3slIKVuMl+a+PRx edM0cWU34BaUjVkkuP7oHWbRVKu/dVxa4qdO6IXnHoXfCcPw4ssVIctNUliORJnJ9VzRkb Hekpt/o8WI7ZdDtfc5tNops7cPupkT1DvqHpjVaRWn7RRuSmvcYWKFgBlROhxQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615510699; a=rsa-sha256; cv=none; b=kXPf3oS+MiqqHm7Y+49bomV6C0yAfWTuBnRSTp3M8mgMpLUWOLhHLYz1NKCrHynjHN5fQX z7+Zh73oQgHb3OjbcOitWKD+u7dNuKUFjwtVF73P2cmo6FY+WVRpCiOl8ZIXjfhzUHVNls 0OJIp7EtuUp5mCtP+ag6J+oZs4NnCyzX2VaFd3WKXYwve/pt5LE7petnUlXQFSpBg8ffUU sgxECtKSTlQfl9CpdJxX7goK+mm75/xMioP+QvjtguSevLIwHzaSyyDMS7YCkm9chOZ2/s F9yX2+fBJpOGdM/xyjFwIGgip025wn6KYUR8ad2+kudVyL/tT6zBFysshHRVMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=zaclys.net header.s=default header.b=WtOnJug6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.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: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=zaclys.net header.s=default header.b=WtOnJug6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.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: 270E426E45 X-Spam-Score: 1.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: qFZO0tNyC3fD * 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