From patchwork Thu Oct 11 15:48:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Sutter X-Patchwork-Id: 982575 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=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netfilter-devel-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=nwl.cc Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42WFlS73yFzB4N6 for ; Fri, 12 Oct 2018 02:49:40 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731503AbeJKXRZ (ORCPT ); Thu, 11 Oct 2018 19:17:25 -0400 Received: from orbyte.nwl.cc ([151.80.46.58]:40722 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727371AbeJKXRZ (ORCPT ); Thu, 11 Oct 2018 19:17:25 -0400 Received: from localhost ([::1]:48256 helo=tatos) by orbyte.nwl.cc with esmtp (Exim 4.91) (envelope-from ) id 1gAdDW-0007YY-8c; Thu, 11 Oct 2018 17:49:38 +0200 From: Phil Sutter To: Pablo Neira Ayuso Cc: netfilter-devel@vger.kernel.org Subject: [nft PATCH 1/8] tests/py: Add missing JSON bits for inet/meta.t Date: Thu, 11 Oct 2018 17:48:54 +0200 Message-Id: <20181011154901.20082-2-phil@nwl.cc> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181011154901.20082-1-phil@nwl.cc> References: <20181011154901.20082-1-phil@nwl.cc> MIME-Version: 1.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Those were forgotten when renaming meta secpath to meta ipsec. Fixes: 8f55ed41d0070 ("src: rename meta secpath to meta ipsec") Signed-off-by: Phil Sutter --- tests/py/inet/meta.t.json | 8 +++++--- tests/py/inet/meta.t.json.output | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/tests/py/inet/meta.t.json b/tests/py/inet/meta.t.json index 77f46ab6ab9e5..5501f0bec6eda 100644 --- a/tests/py/inet/meta.t.json +++ b/tests/py/inet/meta.t.json @@ -185,14 +185,16 @@ } ] -# meta secpath exists +# meta ipsec exists [ { "match": { "left": { - "meta": { "key": "secpath" } + "meta": { + "key": "ipsec" + } }, - "op": "==", + "op": "==", "right": true } } diff --git a/tests/py/inet/meta.t.json.output b/tests/py/inet/meta.t.json.output index d0bb0a610e4e0..3e7dd2145e67f 100644 --- a/tests/py/inet/meta.t.json.output +++ b/tests/py/inet/meta.t.json.output @@ -36,3 +36,18 @@ } ] +# meta secpath missing +[ + { + "match": { + "left": { + "meta": { + "key": "ipsec" + } + }, + "op": "==", + "right": false + } + } +] +