From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B5CDCA04DB; Thu, 15 Oct 2020 07:15:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ACAE51D6BA; Thu, 15 Oct 2020 07:15:11 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 385B61C127 for ; Thu, 15 Oct 2020 07:15:10 +0200 (CEST) IronPort-SDR: k4VD6EHmvKV9AhttNFnBoU4690gULKYBhwGW+ZMM1Cph9Ztm8NmRts2koosTg8LLJRLqhWSx14 UXmKEJ3E0d7Q== X-IronPort-AV: E=McAfee;i="6000,8403,9774"; a="166383108" X-IronPort-AV: E=Sophos;i="5.77,377,1596524400"; d="scan'208";a="166383108" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2020 22:15:08 -0700 IronPort-SDR: FR/hy1Pnp4WUkm3KU6Yq59+9WIBxrlthujekknL9z7PxJvwq7z6tyYWbUPHLtNPMiig1AgYtOC yPK6THTmSHGg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,377,1596524400"; d="scan'208";a="330690467" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga002.jf.intel.com with ESMTP; 14 Oct 2020 22:15:08 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 14 Oct 2020 22:15:07 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 14 Oct 2020 22:15:07 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 14 Oct 2020 22:15:07 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Wed, 14 Oct 2020 22:15:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EC6TqdPKCxKdeNurLxcWlM0Z99hEBERhXaR7jY+YzTjSe2q+lM8CR1BNS3ajRnW2u2NTgnd+ACCkq71/uSpS1t/cBrK1QSfIJF6VC7zUZstuk2fa77Fea4i6tjPPDpOGXOu9drnww4ZDQyYZIVCow7ggncGAha4OotupKZjBpTeoAfKLrrq+CXPJ98PPToipRJKlvtrZEc0gVgSCC4vEBh1BM+qFy1AMkZ2vswzUN1YLpoNDsrC4Z4i1TTpRxOFg6Et457eQ4D/6vmD/FpHzRkWaqFTsDR10wAtXWqcL/oPzaiu3epcCNb1VhxtOJNoJvCADaKoJo2VZh/DwZRKMQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3at4nhHsh2VLai4CcG7SW0hDMkqkCF+qpr+KxKwm+U8=; b=GVky7soHk9Au1uGt8Xn9zpcI9JSzBOQEpfkYV2nk5GkEKNYAupqOoGCsfc+lPnOyMVmq7g6HBagZYd3LJj5uFa3kljDNiA143oAHd/iYgMBX9EPY8m+1c+h7/8Du3jhhg+f3AtrExzM3G/gJoeJRAFLS2/B1Y0sikf7deiVmBzbPWar/1rz8/karrB4pqKE9ivmpg0s/uWXPXK5+jGDuoAWwQ2krgQdRvKsbwqWRm8rSfny3mrEbqwpVuWVMGry1ZkTRwQy28wEHd9JVm2RYZ7Zm7c2s3BnJEmH+/nUnMLlx5tYfh+uo1nK7Ir3HHEPeSowwlcGtdPTnUtw/O/WbiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3at4nhHsh2VLai4CcG7SW0hDMkqkCF+qpr+KxKwm+U8=; b=vlCNhJXQnlLnkdF/M2FkqHke1PQpBYtxn9IQ/sU/123+zrogCepgNsRNEytJ67Zm0IDNNl5szZdpwkYvTD58VglPZiKMF2oDm/FU6+PA5548F6KAwiDfAHht0RTAVSdo7KQW5TKv7jKdzTu+dGPxm4Nn7nqJ4vCl6/xtCjWEw6Y= Received: from BN6PR11MB1841.namprd11.prod.outlook.com (2603:10b6:404:102::19) by BN6PR11MB1297.namprd11.prod.outlook.com (2603:10b6:404:4a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21; Thu, 15 Oct 2020 05:14:59 +0000 Received: from BN6PR11MB1841.namprd11.prod.outlook.com ([fe80::e17e:391f:331f:2ed]) by BN6PR11MB1841.namprd11.prod.outlook.com ([fe80::e17e:391f:331f:2ed%7]) with mapi id 15.20.3455.030; Thu, 15 Oct 2020 05:14:59 +0000 From: "Peng, Yuan" To: "Sun, QinX" , "dts@dpdk.org" CC: "Sun, QinX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_cvl_fdir.py modify the log validation for wrong action according to the change of dpdk, dpdk commit id:cb97e595d9d3b316690c8d5ac688240d2ba1e551 Thread-Index: AQHWohAUphfu3adOH0SrPFtOS5PRNamYIA9A Date: Thu, 15 Oct 2020 05:14:59 +0000 Message-ID: References: <20201015094845.420591-1-qinx.sun@intel.com> In-Reply-To: <20201015094845.420591-1-qinx.sun@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.38] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a2eed063-9a86-490d-24bb-08d870c94384 x-ms-traffictypediagnostic: BN6PR11MB1297: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:76; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: czDZnA7cGQ+wABye2W17uya6yrORat+EtL4ic7QGlRxcG2wly8RLY6vYa0yUqZ8l7YcfKcZRAMidQMOfVaTzh8zj6tSwbwzGlykgai79MH1LByMaihbgSiuGsYYl6PwBQ+ZI0444+uE/QLxSH7WT31trbjxgpAqmUqNEPX5a15SoVSdSFQRlDdsSY2KBRvpCr3VBZsYsRrHOEcywTpHCMCufmjbR1ISHu4tzIs5lHDpMLPvR8IyTg0cS+pz+sq+Oekm0FlNmkvsRuQJuaQCBBglzI6gI9PKiNgT0Aj38cKJXi60lCQIGbu5Xwok3XlKGENoaV2MPVNCV56M9eVxRSg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR11MB1841.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39860400002)(346002)(376002)(366004)(396003)(186003)(6506007)(26005)(66446008)(83380400001)(53546011)(66476007)(66946007)(76116006)(86362001)(64756008)(66556008)(52536014)(55016002)(7696005)(110136005)(8936002)(5660300002)(71200400001)(316002)(478600001)(33656002)(9686003)(2906002)(4326008)(107886003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: 8aNsgBlgbu12FNSLyHOCJ8SPhuvEyWqaAB7bhU6yH0ZYL355TBtHfeXlt8DwNHHJd/fuqwEt5OA/5SFufwYIGIrLQAW/D9ghsUmLaVUvIru6Ra8VLgdO6lR6+iJu5GJvWS/i5pLnSQrWQtFNaahdcz31VR8jFRxnoLP2dYVEGRcRrNfIBlXCo26Ytq7uEEp5pRY9kfEMOykdZvyKMPLkL88T1Z4MkKLMGNF0xOSdUYwQdbT//Zzp88jJItSv0+07z95rjtw1ad+HlcDPAZcwsBLwIPxFARZY7QlltHg/qelw5erFDwcOQ9MzncWXI8Ki/qSZrTpqlWK+iaOPpxcjRpxs/dVHEYsyAIeZj/2Obw8ESLoChrtIiFLJYQErwSqW8CWJXR9ue3vrJgZh+9bUqWbBuakUKcJtEREFF4bHj6rXf2JR/OHkryfasewAUfo8Xa1pA2lbKojfgymJZ9oDZRaqx77Wuvc76WuCIRKFJJjNJnA5mCgAddfx3m+CSshHJTBfCJbUPmRQ3wFPISfbbTGGJRImdlM53Xw+tNM54o9YeSjTqkKlRJ3OLES/TzTMb229CMj+q9WMNbRlM4Wr6a7sTxHfl2ugsYmSZ5znK40aFX9c4IK0CdZ8Q5JY+94MyFk8K62EuLDKCRalRHL7aA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR11MB1841.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2eed063-9a86-490d-24bb-08d870c94384 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2020 05:14:59.5346 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vrwgRqDl7XsiUBFgfYuvfDDnFbWRzF7bjPvwpNTYkRDBJpMxL9y30gP6i/WfmEwyApzMQjo14ffH5kngjnzb5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1297 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V1] tests/TestSuite_cvl_fdir.py modify the log validation for wrong action according to the change of dpdk, dpdk commit id:cb97e595d9d3b316690c8d5ac688240d2ba1e551 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Acked-by Peng, Yuan -----Original Message----- From: dts On Behalf Of sunqin Sent: Thursday, October 15, 2020 5:49 PM To: dts@dpdk.org Cc: Sun, QinX Subject: [dts] [PATCH V1] tests/TestSuite_cvl_fdir.py modify the log valida= tion for wrong action according to the change of dpdk, dpdk commit id:cb97e= 595d9d3b316690c8d5ac688240d2ba1e551 According to dpdk commit cb97e595d9d3b316690c8d5ac688240d2ba1e551 to modify= log validation for wrong action Signed-off-by: sunqin --- test_plans/cvl_fdir_test_plan.rst | 8 ++++---- tests/TestSuite_cvl_fdir.py | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test_plans/cvl_fdir_test_plan.rst b/test_plans/cvl_fdir_test_p= lan.rst index 0e1521f..740cb37 100644 --- a/test_plans/cvl_fdir_test_plan.rst +++ b/test_plans/cvl_fdir_test_plan.rst @@ -610,7 +610,7 @@ Note: there may be error message change. =20 get the message:: =20 - Invalid input action: Invalid argument + 'error' in message =20 Discontinuous queues:: =20 @@ -2939,7 +2939,7 @@ Subcase 1: invalid parameters of queue index =20 Failed to create flow, report message:: =20 - Invalid queue for FDIR.: Invalid argument + 'error' in message =20 2. check there is no rule listed. =20 @@ -3053,7 +3053,7 @@ Subcase 6: conflicted rules =20 or:: =20 - Invalid input action number: Invalid argument + 'error' in message =20 3. check there is only one rule listed. =20 @@ -3066,7 +3066,7 @@ Subcase 7: conflicted actions =20 Failed to create flow, report message:: =20 - Invalid input action: Invalid argument + 'error' in message =20 2. check there is no rule listed. =20 diff --git a/tests/TestSuite_cvl_fdir.py b/tests/TestSuite_cvl_fdir.py inde= x e5a9c71..fd005b3 100644 --- a/tests/TestSuite_cvl_fdir.py +++ b/tests/TestSuite_cvl_fdir.py @@ -2428,7 +2428,7 @@ class TestCVLFdir(TestCase): check_stats=3DFalse, check_msg=3D'Bad arguments') self.validate_fdir_rule( 'flow validate 0 ingress pattern eth / ipv4 src is 192.168.0.2= 0 dst is 192.168.0.21 proto is 255 ttl is 2 tos is 4 / end actions rss queu= es 2 3 end / rss / end', - check_stats=3DFalse, check_msg=3D'Invalid input action number:= Invalid argument') + check_stats=3DFalse, check_msg=3D'error') self.validate_fdir_rule( 'flow validate 0 ingress pattern eth / ipv4 src is 192.168.0.2= 0 dst is 192.168.0.21 proto is 255 ttl is 2 tos is 4 / end actions passthru= / mark id 4294967296 / end', check_stats=3DFalse, check_msg=3D'Bad arguments') @@ -2580,7 += 2580,7 @@ class TestCVLFdir(TestCase): def test_invalid_parameters_of_queue_index(self): rule =3D "flow create 0 ingress pattern eth dst is 00:11:22:33:44:= 55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 proto is 255 ttl is 2 tos= is 4 / end actions queue index 64 / end" out =3D self.dut.send_command(rule, timeout=3D1) - self.verify("Invalid input action: Invalid argument" in out, "fail= ed with output: %s" % out) + self.verify("error" in out, "failed with output: %s" % out) self.check_fdir_rule(port_id=3D0, stats=3DFalse) =20 def test_invalid_parameters_of_rss_queues(self): @@ -2588,11 +2588,11 @@ class TestCVLFdir(TestCase): "flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / = ipv4 src is 192.168.0.20 dst is 192.168.0.21 proto is 255 ttl is 2 tos is 4= / end actions rss queues 1 2 3 end / end", "flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / = ipv4 src is 192.168.0.20 dst is 192.168.0.21 proto is 255 ttl is 2 tos is 4= / end actions rss queues 0 end / end", "flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / = ipv4 src is 192.168.0.20 dst is 192.168.0.21 proto is 255 ttl is 2 tos is 4= / end actions rss queues end / end"] - self.create_fdir_rule(rule=3Drule1, check_stats=3DFalse, msg=3D'In= valid input action: Invalid argument') + self.create_fdir_rule(rule=3Drule1, check_stats=3DFalse,=20 + msg=3D'error') rule2 =3D 'flow create 0 ingress pattern eth dst is 00:11:22:33:44= :55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 proto is 255 ttl is 2 to= s is 4 / end actions rss queues 1 2 3 5 end / end' - self.create_fdir_rule(rule2, check_stats=3DFalse, msg=3D'Invalid i= nput action: Invalid argument') + self.create_fdir_rule(rule2, check_stats=3DFalse, msg=3D'error') rule3 =3D 'flow create 0 ingress pattern eth dst is 00:11:22:33:44= :55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 proto is 255 ttl is 2 to= s is 4 / end actions rss queues 63 64 end / end' - self.create_fdir_rule(rule3, check_stats=3DFalse, msg=3D'Invalid i= nput action: Invalid argument') + self.create_fdir_rule(rule3, check_stats=3DFalse, msg=3D'error') try: # restart testpmd self.dut.send_expect("quit", "# ") @@ -2655,13 +2655,13 @@ cla= ss TestCVLFdir(TestCase): 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / = ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2021 / end actions mark / en= d', 'flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / = ipv6 dst is CDCD:910A:2222:5498:8475:1111:3900:2020 src is 2001::2 / udp sr= c is 22 dst is 23 / end actions queue index 1 / mark / end'] self.create_fdir_rule(rule2[0:4], check_stats=3DFalse, msg=3D"Rule= already exists!: File exists", validate=3DFalse) - self.create_fdir_rule(rule2[4:7], check_stats=3DFalse, msg=3D"Inva= lid input action number: Invalid argument", validate=3DFalse) + self.create_fdir_rule(rule2[4:7], check_stats=3DFalse,=20 + msg=3D"error", validate=3DFalse) self.create_fdir_rule(rule2[7:], check_stats=3DFalse, msg=3D"Inval= id input set: Invalid argument", validate=3DFalse) self.check_fdir_rule(stats=3DTrue, rule_list=3Drule_li) =20 def test_conflicted_actions(self): rule1 =3D "flow create 0 ingress pattern eth dst is 00:11:22:33:44= :55 / ipv4 src is 192.168.0.20 dst is 192.168.0.21 ttl is 2 tos is 4 / end = actions queue index 1 / rss queues 2 3 end / end" - self.create_fdir_rule(rule1, check_stats=3DFalse, msg=3D"Invalid i= nput action number: Invalid argument") + self.create_fdir_rule(rule1, check_stats=3DFalse, msg=3D"error") self.check_fdir_rule(stats=3DFalse) =20 def test_void_action(self): -- 2.17.1