Rename test scripts

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-05-21 10:57:51 +02:00
parent f2e6df7448
commit fd3abc6aec
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57
2 changed files with 21 additions and 0 deletions

View File

@ -121,6 +121,27 @@ def test_envfile(script_runner, script, config, suite, masters, minions):
assert os.path.isfile(envfile) is False
@pytest.mark.parametrize('config', ['complete'], indirect=True)
def test_test_undeclared(script_runner, script, config):
result = script_runner.run(script, '--config', config, '--suite', 'one_minion', '--test')
assert not result.success
assert result.stderr.endswith('Tests requested but not declared in suite configuration\n')
@pytest.mark.parametrize('config', ['complete'], indirect=True)
def test_test_undefined(script_runner, script, config):
result = script_runner.run(script, '--config', config, '--suite', 'one_minion_bogus_test', '--test')
assert not result.success
assert result.stderr.endswith('Specified test is not defined\n')
@pytest.mark.parametrize('config', ['complete'], indirect=True)
def test_test_incomplete(script_runner, script, config):
result = script_runner.run(script, '--config', config, '--suite', 'one_minion_bogus_test_2', '--test')
assert not result.success
assert result.stderr.endswith('Incomplete test configuration\n')
@pytest.mark.parametrize('config', ['complete'], indirect=True)
@pytest.mark.parametrize('suite', [
'one_minion',