mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
361 B
18 lines
361 B
# ~*~ coding: utf-8 ~*~
|
|
#
|
|
from ops.utils import run_AdHoc
|
|
|
|
|
|
def test_admin_user_connective_manual(asset):
|
|
if not isinstance(asset, list):
|
|
asset = [asset]
|
|
task_tuple = (
|
|
('ping', ''),
|
|
)
|
|
summary, _ = run_AdHoc(task_tuple, asset, record=False)
|
|
if len(summary['failed']) != 0:
|
|
return False
|
|
else:
|
|
return True
|
|
|