This commit is contained in:
Omar Zevallos 2019-01-17 17:27:00 -05:00
Родитель c874a91c84
Коммит 07fcd505a3
1 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -51,6 +51,17 @@ class TestDeployment:
td.resource_group, "publicip-" + test_vars["controller_name"]
).ip_address
def test_basic_fileops(self, mnt_nodes, scp_cli, ssh_con): # noqa: F811
script_name = "check_node_basic_fileops.sh"
scp_cli.put("{0}/test/{1}".format(
os.environ["BUILD_SOURCESDIRECTORY"], script_name),
r"~/.")
commands = """
chmod +x {0}
./{0}
""".format(script_name).split("\n")
helpers.run_ssh_commands(ssh_con, commands)
def test_node_health(self, averecmd_params): # noqa: F811
for node in helpers.run_averecmd(**averecmd_params, method='node.list'):
result = helpers.run_averecmd(**averecmd_params,
@ -67,17 +78,6 @@ class TestDeployment:
commands.append("ping -c 3 {}".format(vs_ip))
helpers.run_ssh_commands(ssh_con, commands)
def test_basic_fileops(self, mnt_nodes, scp_cli, ssh_con): # noqa: F811
script_name = "check_node_basic_fileops.sh"
scp_cli.put("{0}/test/{1}".format(
os.environ["BUILD_SOURCESDIRECTORY"], script_name),
r"~/.")
commands = """
chmod +x {0}
./{0}
""".format(script_name).split("\n")
helpers.run_ssh_commands(ssh_con, commands)
if __name__ == "__main__":
pytest.main()