From patchwork Mon Mar 8 14:45:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Sutter X-Patchwork-Id: 1449134 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netfilter-devel-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4DvLlH46mxz9sVv for ; Tue, 9 Mar 2021 01:46:51 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229497AbhCHOqQ (ORCPT ); Mon, 8 Mar 2021 09:46:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbhCHOp4 (ORCPT ); Mon, 8 Mar 2021 09:45:56 -0500 Received: from orbyte.nwl.cc (orbyte.nwl.cc [IPv6:2001:41d0:e:133a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A376C06174A for ; Mon, 8 Mar 2021 06:45:56 -0800 (PST) Received: from localhost ([::1]:53592 helo=tatos) by orbyte.nwl.cc with esmtp (Exim 4.94) (envelope-from ) id 1lJH8s-0003qr-KN; Mon, 08 Mar 2021 15:45:54 +0100 From: Phil Sutter To: Pablo Neira Ayuso Cc: netfilter-devel@vger.kernel.org Subject: [nft PATCH] tests/py: Fix for missing JSON equivalent in any/ct.t.json Date: Mon, 8 Mar 2021 15:45:46 +0100 Message-Id: <20210308144546.15311-1-phil@nwl.cc> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org JSON equivalent for recently added test of the '!' shortcut was missing. Fixes: e6c32b2fa0b82 ("src: add negation match on singleton bitmask value") Signed-off-by: Phil Sutter --- tests/py/any/ct.t.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/py/any/ct.t.json b/tests/py/any/ct.t.json index d429ae73ea5cc..6684963b6609c 100644 --- a/tests/py/any/ct.t.json +++ b/tests/py/any/ct.t.json @@ -387,6 +387,21 @@ } ] +# ct status ! dnat +[ + { + "match": { + "left": { + "ct": { + "key": "status" + } + }, + "op": "!", + "right": "dnat" + } + } +] + # ct mark 0 [ {