Add the teardown to memif and nginx tests,
for memif it needs to be before "container" teardown.
Change-Id: I142b76d3e47554d3a8050e04b9598592b43f22c1
Signed-off-by: Vratko Polak <[email protected]>
"""DMA util library."""
from re import search
-from resources.libraries.python.topology import NodeType, Topology
+
+from resources.libraries.python.PapiExecutor import PapiSocketExecutor
from resources.libraries.python.ssh import exec_cmd, exec_cmd_no_error
+from resources.libraries.python.topology import NodeType, Topology
class DMAUtil:
node, cmd, sudo=True, message="Failed")
return enabled_wqs
+
+ @staticmethod
+ def vpp_show_dma(node):
+ """Call show dma CLI command on all sockets.
+
+ :param node: Topology node.
+ :type node: dict
+ """
+ PapiSocketExecutor.run_cli_cmd_on_all_sockets(node, u"show dma")
-# Copyright (c) 2023 Cisco and/or its affiliates.
+# Copyright (c) 2024 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
| | | ... | Show DET44 verbose | ${nodes['${dut}']}
| | END
+| Additional Test Tear Down Action For dma
+| | [Documentation]
+| | ... | Log information relevant to DMA tests.
+| |
+| | FOR | ${dut} | IN | @{duts}
+| | | VPP Show DMA | ${nodes['${dut}']}
+| | END
+
| Additional Test Tear Down Action For geneve4
| | [Documentation]
| | ... | Additional teardown for tests which uses GENEVE IPv4 tunnel.
| Suite Setup | Setup suite topology interfaces | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test | performance
-| Test Teardown | Tear down test | performance | container
+| Test Teardown | Tear down test | performance | dma | container
|
| Test Template | Local Template
|
| Suite Setup | Setup suite topology interfaces | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test | performance
-| Test Teardown | Tear down test | performance | container
+| Test Teardown | Tear down test | performance | dma | container
|
| Test Template | Local Template
|
| Suite Setup | Setup suite topology interfaces | performance
| Suite Teardown | Tear down suite | performance
| Test Setup | Setup test | performance
-| Test Teardown | Tear down test | performance | container
+| Test Teardown | Tear down test | performance | dma | container
|
| Test Template | Local Template
|
| Suite Setup | Setup suite topology interfaces | ab | nginx
| Suite Teardown | Tear down suite | ab
| Test Setup | Setup test
-| Test Teardown | Tear down test | nginx
+| Test Teardown | Tear down test | nginx | dma
|
| Test Template | Local Template
|
| Suite Setup | Setup suite topology interfaces | ab | nginx
| Suite Teardown | Tear down suite | ab
| Test Setup | Setup test
-| Test Teardown | Tear down test | nginx
+| Test Teardown | Tear down test | nginx | dma
|
| Test Template | Local Template
|