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 ms0.migadu.com with LMTPS id FjXSNK5neWG4IwAAgWs5BA (envelope-from ) for ; Wed, 27 Oct 2021 16:52:30 +0200 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 2FjvL65neWEiewAA1q6Kng (envelope-from ) for ; Wed, 27 Oct 2021 14:52:30 +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 10E3B379A8 for ; Wed, 27 Oct 2021 16:52:30 +0200 (CEST) Received: from localhost ([::1]:56218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfkI1-0002qR-5z for larch@yhetil.org; Wed, 27 Oct 2021 10:52:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfjXC-0008Qs-8L for guix-patches@gnu.org; Wed, 27 Oct 2021 10:04:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfjXB-0005H7-U7 for guix-patches@gnu.org; Wed, 27 Oct 2021 10:04:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfjXB-0002Zt-Pe for guix-patches@gnu.org; Wed, 27 Oct 2021 10:04:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51440] [PATCH 10/10] tests: Replace uses of deprecated 'static-networking-service'. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Oct 2021 14:04:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51440 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51440@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 51440-submit@debbugs.gnu.org id=B51440.16353434149787 (code B ref 51440); Wed, 27 Oct 2021 14:04:05 +0000 Received: (at 51440) by debbugs.gnu.org; 27 Oct 2021 14:03:34 +0000 Received: from localhost ([127.0.0.1]:50086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfjWg-0002Xn-AN for submit@debbugs.gnu.org; Wed, 27 Oct 2021 10:03:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfjWN-0002W4-1f for 51440@debbugs.gnu.org; Wed, 27 Oct 2021 10:03:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfjWH-00058o-R2; Wed, 27 Oct 2021 10:03:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=f0T5dgslaHqaANUOThtzyqZWhOicRkOBGFHzUtH5IrY=; b=qXujNXdaHUkz8+K+ivbi ZQJsJiQMQ7LIGNym9tuf9Ue3IjDLS+QSOzRr9wJ3PwKmOIocWSxnkYS2+Vna4tMDKEPZKB9/1OL8X mvgWDdOS7lvttdK/otf50osW0VhdF/CqVv/FaAOOrp1brZcW2tCwOaY8VTg3AxDG6y/svwpHbD+bP 2Hj7nWIGpdcGh6rrvUqQQecKoIUpNJlpEwCb2+TMjA+lJgr4LPnQ9jUvYf9ZomWV/2v9bMG3ud60Q gkgtSgJxfqYjaoyoKy9tAxHh5WPMeJ83LpnzvdA2botn50ZHZkbN0zm6I6OnkLo+bwpSrecmV40NE OGl+bnwkbE88OA==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=55004 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfjWH-0002Tf-76; Wed, 27 Oct 2021 10:03:09 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 27 Oct 2021 16:02:45 +0200 Message-Id: <20211027140245.18970-10-ludo@gnu.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211027140245.18970-1-ludo@gnu.org> References: <20211027140245.18970-1-ludo@gnu.org> 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635346350; 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=f0T5dgslaHqaANUOThtzyqZWhOicRkOBGFHzUtH5IrY=; b=hbp6LKOZRBsEz1Rez50sV6GvgRMFdK+L9hAZt69jMRwEfse3sCQn+ULao7TxBUKJtvgduS h1F5jFIrzCRmE2fBKsFZJUTdFpmtBTkZ88OAntZeBtKxnVnIJJYa4dKZAIdX37pk5+GQyD srfgrowI6fU9QWKbEyb13vj8itLs5T+S8SvkkVsCjX1XOMEM7qhGIx2tUcDTNZW/bAXKeR yTxROPDwEFWtRB1ONCMJA5YxJ8ddYIwGrvnA483ejBhjCv54P8QfypUNTOlufdJPKb8ON3 TA69NX6iI097qoziA19nt/DZIYKJVg0V6HeFBjnvcObbOkrp85iKpdx3OTRFVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635346350; a=rsa-sha256; cv=none; b=Z+ihYY+Df2dEepf+P4Y49omb4h9m+ut8j+fOOPqUjdF+Sf8DYOMvd8Opv0YWadEky+D9TT tveYVmCzDpXDXy7YVtOEWMpqJ/ZfOAZdNTsI9QmUfxXss+D1xaHHiKnFpzh80yuTGszs7I 7Bvpj+9KZpb23f/qfCTHvj9Z9aKmhpZrsGiiCZbOKyBKLUzrDQ+wRlmMmjMPRqSQtxd+ZT 1OkVkXFEbXiR7LgvhxBzgvXWOJZpBDCicRpNLTgqkigzgkRcEZOmzebpxdGkiGuo3rI813 G12vFMgnD5NVeAzDaGKtRrWEWrnSaWUF/lCJubZX1mBdMmI7XR6zB0XgQ+uArg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=qXujNXda; 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: 3.57 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=qXujNXda; 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: 10E3B379A8 X-Spam-Score: 3.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: Z/+/lKV2ZfMC * gnu/tests/ganeti.scm (%ganeti-os): Replace call to 'static-networking-service' by instantiating STATIC-NETWORKING-SERVICE-TYPE. * gnu/tests/networking.scm (%test-static-networking) (%openvswitch-os, %dhcpd-os): Likewise. --- gnu/tests/ganeti.scm | 7 ++----- gnu/tests/networking.scm | 29 ++++++++++++++++++----------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/gnu/tests/ganeti.scm b/gnu/tests/ganeti.scm index 5ac2fd48dd..c29b885a5e 100644 --- a/gnu/tests/ganeti.scm +++ b/gnu/tests/ganeti.scm @@ -59,11 +59,8 @@ (define %ganeti-os (packages (append (list ganeti-instance-debootstrap ganeti-instance-guix) %base-packages)) (services - (append (list (static-networking-service "eth0" "10.0.2.15" - #:netmask "255.255.255.0" - #:gateway "10.0.2.2" - #:name-servers '("10.0.2.3")) - + (append (list (service static-networking-service-type + (list %qemu-static-networking)) (service openssh-service-type (openssh-configuration (permit-root-login 'prohibit-password))) diff --git a/gnu/tests/networking.scm b/gnu/tests/networking.scm index c66af279f2..246e0a15fa 100644 --- a/gnu/tests/networking.scm +++ b/gnu/tests/networking.scm @@ -122,10 +122,8 @@ (define %test-static-networking (value (let ((os (marionette-operating-system (simple-operating-system - (static-networking-service "eth0" "10.0.2.15" - #:netmask "255.255.255.0" - #:gateway "10.0.2.2" - #:name-servers '("10.0.2.2"))) + (service static-networking-service-type + (list %qemu-static-networking))) #:imported-modules '((gnu services herd) (guix combinators))))) (run-static-networking-test (virtual-machine os)))))) @@ -275,9 +273,13 @@ (define openvswitch-configuration-service (define %openvswitch-os (operating-system (inherit (simple-operating-system - (static-networking-service "ovs0" "10.1.1.1" - #:netmask "255.255.255.252" - #:requirement '(openvswitch-configuration)) + (simple-service 'openswitch-networking + static-networking-service-type + (list (static-networking + (addresses (list (network-address + (value "10.1.1.1/24") + (device "ovs0")))) + (requirement '(openvswitch-configuration))))) (service openvswitch-service-type) openvswitch-configuration-service)) ;; Ensure the interface name does not change depending on the driver. @@ -392,10 +394,15 @@ (define dhcpd-v4-configuration (define %dhcpd-os (simple-operating-system - (static-networking-service "ens3" "192.168.1.4" - #:netmask "255.255.255.0" - #:gateway "192.168.1.1" - #:name-servers '("192.168.1.2" "192.168.1.3")) + (service static-networking-service-type + (list (static-networking + (addresses (list (network-address + (value "192.168.1.4/24") + (device "ens3")))) + (routes (list (network-route + (destination "default") + (gateway "192.168.1.1")))) + (name-servers '("192.168.1.2" "192.168.1.3"))))) (service dhcpd-service-type dhcpd-v4-configuration))) (define (run-dhcpd-test) -- 2.33.0