From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C239842C4E; Wed, 7 Jun 2023 17:21:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1980C42D8A; Wed, 7 Jun 2023 17:20:44 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 0B73842D8A for ; Wed, 7 Jun 2023 17:20:42 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 357Dvj81028182; Wed, 7 Jun 2023 08:20:40 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=gpTNqadLwaQDUBute+utB0lopgWYbTl+2Okvlix74Iw=; b=CCfCQw8+t2yfb9oGyUejcRfrVURPTj3qiWH+Hp5/wPxO3Iz2URnJE4xROoo6uabTs31j 3gatrQ0F+o+TiNIOYn8YrzlA4khzyuhBxzLtQ/nFilEE5xTbh4HgZ1I3dEAuEfJV/4PT GqL/Hs1M/hogfo60rsjjsXegJI2WIGaZGy8rk6fRAmy0n6Xw4qYn6vRo1tbHt3a2cwyy XhEokRchm7kVTnUJ524Hv8ENdAe6DkB+gX6F+FTI/1Xgl5aBZ5q3oRM/vIbwQKA+hgzO Ybh9oR9qHBJ8cVJj7avX34dGp0bfdO8mwp4KLpxSbfWJjOvyx03bBJcvKOxCHN8bZfAE 9g== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3r2a7bv6cp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 07 Jun 2023 08:20:39 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 7 Jun 2023 08:20:38 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 7 Jun 2023 08:20:38 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id E217E3F7084; Wed, 7 Jun 2023 08:20:34 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , , Akhil Goyal Subject: [PATCH v2 13/13] test/security: remove no MACsec support case Date: Wed, 7 Jun 2023 20:49:40 +0530 Message-ID: <20230607151940.223417-14-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230607151940.223417-1-gakhil@marvell.com> References: <20230523194918.1940212-1-gakhil@marvell.com> <20230607151940.223417-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: FRGPbsi2RaO6LL-AAi-dlIgYs_XuUf2e X-Proofpoint-GUID: FRGPbsi2RaO6LL-AAi-dlIgYs_XuUf2e X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-07_07,2023-06-07_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Removed the test_capability_get_no_support_for_macsec case as MACsec is now supported and capability can have valid MACsec support. Signed-off-by: Akhil Goyal --- app/test/test_security.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/app/test/test_security.c b/app/test/test_security.c index e4ddcefe40..4783cd0663 100644 --- a/app/test/test_security.c +++ b/app/test/test_security.c @@ -1828,41 +1828,6 @@ test_capability_get_no_matching_protocol(void) return TEST_SUCCESS; } -/** - * Test execution of rte_security_capability_get when macsec protocol - * is searched and capabilities table contain proper entry. - * However macsec records search is not supported in rte_security. - */ -static int -test_capability_get_no_support_for_macsec(void) -{ - struct security_unittest_params *ut_params = &unittest_params; - struct rte_security_capability_idx idx = { - .action = RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL, - .protocol = RTE_SECURITY_PROTOCOL_MACSEC, - }; - struct rte_security_capability capabilities[] = { - { - .action = RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL, - .protocol = RTE_SECURITY_PROTOCOL_MACSEC, - }, - { - .action = RTE_SECURITY_ACTION_TYPE_NONE, - }, - }; - - mock_capabilities_get_exp.device = NULL; - mock_capabilities_get_exp.ret = capabilities; - - const struct rte_security_capability *ret; - ret = rte_security_capability_get(&ut_params->ctx, &idx); - TEST_ASSERT_MOCK_FUNCTION_CALL_RET(rte_security_capability_get, - ret, NULL, "%p"); - TEST_ASSERT_MOCK_CALLS(mock_capabilities_get_exp, 1); - - return TEST_SUCCESS; -} - /** * Test execution of rte_security_capability_get when capabilities table * does not contain entry with matching ipsec proto field @@ -2319,8 +2284,6 @@ static struct unit_test_suite security_testsuite = { test_capability_get_no_matching_action), TEST_CASE_ST(ut_setup_with_session, ut_teardown, test_capability_get_no_matching_protocol), - TEST_CASE_ST(ut_setup_with_session, ut_teardown, - test_capability_get_no_support_for_macsec), TEST_CASE_ST(ut_setup_with_session, ut_teardown, test_capability_get_ipsec_mismatch_proto), TEST_CASE_ST(ut_setup_with_session, ut_teardown, -- 2.25.1