Message ID | 20180719135126.19636-20-jkbs@redhat.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41WbJS0BBxz9s4r for <incoming@patchwork.ozlabs.org>; Fri, 20 Jul 2018 00:00:40 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 9F97CFC8; Thu, 19 Jul 2018 13:52:06 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 8531CF9E for <dev@openvswitch.org>; Thu, 19 Jul 2018 13:52:03 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 18884792 for <dev@openvswitch.org>; Thu, 19 Jul 2018 13:52:03 +0000 (UTC) Received: by mail-wr1-f47.google.com with SMTP id v14-v6so8168073wro.5 for <dev@openvswitch.org>; Thu, 19 Jul 2018 06:52:02 -0700 (PDT) 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=hxLMqEXjrMrkAvlrvdscGX3uKjckBwRuTrgax/WbYqA=; b=tiz6eGu6/m7I2e+QOBryHnOgF/skEeLSYfL302ZKZYfcGIBa8JJwJE8kYIbXbJFeWn QGHPyI1iPAyliCqdRIJr/Q4VrFmJyOyAPQF99IrxMcjRlPWPGRCA9q3STxnRLt1bhWn1 rH+JlW9Ggr7eY0X+S80L7B7GzPLTq++DSPGLakfRkp75TDMLhVYlwQr/eiT54Ekka1S3 YC+6CI4PWLrcPrTjRpKpvL0xPa4sUsUls8ln61m4SNKYCKthjdF+oh4/Ps867OWI7vKr ajCTMu3THqvj3n5dxdxrt7hLTUqAvMiDfkkgFt1oQRsXBDZZF7bWq6q1t10u8ZRtZGut QliA== X-Gm-Message-State: AOUpUlEc8nw+kdCtnDYQ5bP9LSXTt3YYjuYhAD7ORYU8FcerlYd2aOud zFFeYsk9DgLXJbnBKTJcLJiGYTMZ6to= X-Google-Smtp-Source: AAOMgpenH2cmGqSwT2TeHMdw/I5iRfo/mqpdZ+V/ZCjSVxNAlg4aJp14ghsuTM4qSkUR3j+EX0QdHQ== X-Received: by 2002:adf:8276:: with SMTP id 109-v6mr7741250wrb.127.1532008321611; Thu, 19 Jul 2018 06:52:01 -0700 (PDT) Received: from redhat.com (218.red-2-136-166.dynamicip.rima-tde.net. [2.136.166.218]) by smtp.gmail.com with ESMTPSA id f20-v6sm7942159wmd.3.2018.07.19.06.52.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jul 2018 06:52:01 -0700 (PDT) From: Jakub Sitnicki <jkbs@redhat.com> To: dev@openvswitch.org Date: Thu, 19 Jul 2018 15:51:24 +0200 Message-Id: <20180719135126.19636-20-jkbs@redhat.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180719135126.19636-1-jkbs@redhat.com> References: <20180719135126.19636-1-jkbs@redhat.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH v5 19/21] tests: Add test for ovn-nbctl dry run mode. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org |
Series |
Daemon mode for ovn-nbctl
|
expand
|
diff --git a/tests/ovn-nbctl.at b/tests/ovn-nbctl.at index 73a61a4be..585967568 100644 --- a/tests/ovn-nbctl.at +++ b/tests/ovn-nbctl.at @@ -1382,3 +1382,24 @@ inactivity_probe : 30000 OVN_NBCTL_TEST_STOP AT_CLEANUP + +dnl --------------------------------------------------------------------- + +AT_SETUP([ovn-nbctl - dry run mode]) +OVN_NBCTL_TEST_START + +dnl Check that dry run has no permanent effect. +AT_CHECK([ovn-nbctl --dry-run ls-add ls0 -- ls-list | uuidfilt], [0], [dnl +<0> (ls0) +]) +AT_CHECK([ovn-nbctl ls-list | uuidfilt], [0], [dnl +]) + +dnl Check that dry-run mode is not sticky. +AT_CHECK([ovn-nbctl ls-add ls0]) +AT_CHECK([ovn-nbctl ls-list | uuidfilt], [0], [dnl +<0> (ls0) +]) + +OVN_NBCTL_TEST_STOP +AT_CLEANUP
Signed-off-by: Jakub Sitnicki <jkbs@redhat.com> --- tests/ovn-nbctl.at | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)