Message ID | 20180719123632.19617-20-jkbs@redhat.com |
---|---|
State | Superseded |
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 41WYf02Mv6z9s21 for <incoming@patchwork.ozlabs.org>; Thu, 19 Jul 2018 22:45:44 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 5785BD32; Thu, 19 Jul 2018 12:37:13 +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 885AFD1F for <dev@openvswitch.org>; Thu, 19 Jul 2018 12:37:10 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 39807E5 for <dev@openvswitch.org>; Thu, 19 Jul 2018 12:37:07 +0000 (UTC) Received: by mail-wr1-f45.google.com with SMTP id c13-v6so7930528wrt.1 for <dev@openvswitch.org>; Thu, 19 Jul 2018 05:37:07 -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=IzG1Tl4xZHrRVX9UWJZ3Yr5k8DDRyhZEStTeKzA6JgcBxOBmCQIkjKl6WRMTp4pwq4 /TWkXT3HytRnlcacmHG8cuQZdBEbFL6gapg0mY2+cAa1y2apQQ/FrZTFoy6dP+Ms0cMb lBTlptTj/meu4JSq5tE0BvMC1498O5FikdzLctwaHnGZnTptRQfPKSUqC/sBqxAEIeOB yU34lwBCtIqmq2OJ+SbnAHiMYqHPAyzv3UFFEFpB4UxAId5T/ppzxEnWAYaUfFHhLd3/ Ya7nT53VnJccn3fbVJRuuraIgRysbsdeQ9isJh8+GEoqvAJi5q5ri0SOKVhQ4wL6OgKE vEKA== X-Gm-Message-State: AOUpUlEfCKo3pOssArwWcZC97klXTgKZ5O8B02Lz0YecsgFMZMo90u5W BTol0NEyHkHGxD8Y7T2os0KibxH2+y0= X-Google-Smtp-Source: AAOMgpd5fILzT4NGKlYIq/gkSEMhDYdg9lbNw+aJKSTvxfrVWj5+D6QNMe6KiOThBhOmvxhQSWVwWw== X-Received: by 2002:adf:9485:: with SMTP id 5-v6mr7707041wrr.82.1532003825705; Thu, 19 Jul 2018 05:37:05 -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 a11-v6sm9081063wrr.81.2018.07.19.05.37.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jul 2018 05:37:05 -0700 (PDT) From: Jakub Sitnicki <jkbs@redhat.com> To: dev@openvswitch.org Date: Thu, 19 Jul 2018 14:36:30 +0200 Message-Id: <20180719123632.19617-20-jkbs@redhat.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180719123632.19617-1-jkbs@redhat.com> References: <20180719123632.19617-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 v4 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(+)