-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test plan] Macsec docker restart (#9527)
* Initial commit for MACsec_Docker_Restart * Update MACsec-test-plan.md
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pytest | ||
import logging | ||
|
||
from tests.common.utilities import wait_until | ||
from .macsec_helper import check_appl_db | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
pytestmark = [ | ||
pytest.mark.macsec_required, | ||
pytest.mark.topology('t2') | ||
] | ||
|
||
|
||
def test_restart_macsec_docker(duthosts, ctrl_links, policy, cipher_suite, send_sci, | ||
enum_rand_one_per_hwsku_frontend_hostname): | ||
duthost = duthosts[enum_rand_one_per_hwsku_frontend_hostname] | ||
|
||
logger.info(duthost.shell(cmd="docker ps", module_ignore_errors=True)['stdout']) | ||
duthost.restart_service("macsec") | ||
logger.info(duthost.shell(cmd="docker ps", module_ignore_errors=True)['stdout']) | ||
assert wait_until(300, 6, 12, check_appl_db, duthost, ctrl_links, policy, cipher_suite, send_sci) |