open-cas-linux/test/functional/tests/cli/test_cli_help.py
Robert Baldyga fe5dd80c0c tests: Don't call base_prepare() in tests
The base_prepare() function is now called automatically during test
setup so there is no longer need to call it from each test manually.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-05 18:54:02 +01:00

23 lines
664 B
Python

#
# Copyright(c) 2019 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
import logging
import pytest
from api.cas import casadm
LOGGER = logging.getLogger(__name__)
@pytest.mark.parametrize("shortcut", [True, False])
def test_cli_help(shortcut):
LOGGER.info("Test run")
output = casadm.help(shortcut)
LOGGER.info(output.stdout) # TODO:this is tmp, every ssh command shall be logged via executor
assert output.stdout[0:33] == "Cache Acceleration Software Linux"
# TODO: create yml config for every help command and match the output with it
# TODO: for now the assert above is purely for testing flow in the casadm api