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 0D79542C5A; Thu, 8 Jun 2023 08:57:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E397F41611; Thu, 8 Jun 2023 08:56:07 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id B58CC42D61 for ; Thu, 8 Jun 2023 08:56:05 +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 357LwQ8F023828; Wed, 7 Jun 2023 23:56:02 -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=a2w3CzoNr3oEiIj40rnl4MxOHGksGQR1nyaUjcU4xtG5uPDtWGeV0rM7SCAvgbibBC45 21FBxiimHWB0oa9wOAwEmpGM2NvDL9Y2mO9zoLOwSi24Md07SGre+X3y716zdKo6FZeU zfqIjPOMDlpwrWvg05kzuzM2zEo0iigF/PbGUXJZNWaDB8dwuHAUEGE45KW+7lPIgMop 1WjUB0IyaOtxvgJSLv25Vs9HroBZpJNa+OsAD0S1lPuWrDl2ZXOUVStVy4sEHhVoeHfZ D/HR7PTW9gzXCHuo8HqosZDbDMuIrllnz6LggPiCyuf3orhfOOzryDx/H1PIKHXv7hiV kQ== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3r329c1jve-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 07 Jun 2023 23:55:56 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 7 Jun 2023 23:55:53 -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 23:55:53 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id 64CC83F7057; Wed, 7 Jun 2023 23:55:50 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , , Akhil Goyal Subject: [PATCH v3 13/13] test/security: remove no MACsec support case Date: Thu, 8 Jun 2023 12:24:58 +0530 Message-ID: <20230608065458.333670-14-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230608065458.333670-1-gakhil@marvell.com> References: <20230607151940.223417-1-gakhil@marvell.com> <20230608065458.333670-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: c_3T_IhHseX9sE9OGHDgPTmDllFW4zHO X-Proofpoint-ORIG-GUID: c_3T_IhHseX9sE9OGHDgPTmDllFW4zHO 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-08_04,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