Ejemplo n.º 1
0
def test_assert_ServUce():
    # try:
    #     run(["--from-dir", TEST_CLUSTER_FOLDER, "-f", TEST_DAEMONET, "-o", "yaml", \
    #      "-t", "150", "-e",  "Service:redis-master-evict,ServUc1e:redis-master"])
    # except AssertionError as e:
    #     print(str(e))
    #     assert str(e) == "Error: no such type 'Servic1e'"
    result = CliRunner().invoke(run, ["--from-dir", TEST_CLUSTER_FOLDER, "-f", TEST_DAEMONET, "-o", "yaml", \
        "-t", "650", "-e",  "Service:redis-master-evict,ServUce:redis-master"])
    assert result.__str__(
    ) == "<Result AssertionError(\"Error: no such type \'ServUce\'\")>"
Ejemplo n.º 2
0
def test_assert_mUster():
    result = CliRunner().invoke(run, ["--from-dir", TEST_CLUSTER_FOLDER, "-f", TEST_DAEMONET, "-o", "yaml", \
        "-t", "650", "-e",  "Service:redis-master-evict,Service:redis-mUster"])
    assert result.__str__(
    ) == "<Result AssertionError(\"Error: no such Service: \'redis-mUster\'\")>"