Example #1
0
def step_impl(context, composeYamlFile):
    context.compose_yaml = composeYamlFile
    fileArgsToDockerCompose = bdd_compose_util.getDockerComposeFileArgsFromYamlFile(context.compose_yaml)
    context.compose_output, context.compose_error, context.compose_returncode = \
        bdd_test_util.cli_call(["docker-compose"] + fileArgsToDockerCompose + ["up","--force-recreate", "-d"], expect_success=True)
    assert context.compose_returncode == 0, "docker-compose failed to bring up {0}".format(composeYamlFile)

    bdd_compose_util.parseComposeOutput(context)

    timeoutSeconds = 15
    assert bdd_compose_util.allContainersAreReadyWithinTimeout(context, timeoutSeconds), \
        "Containers did not come up within {} seconds, aborting".format(timeoutSeconds)
Example #2
0
def step_impl(context, composeYamlFile):
    context.compose_yaml = composeYamlFile
    fileArgsToDockerCompose = bdd_compose_util.getDockerComposeFileArgsFromYamlFile(context.compose_yaml)
    context.compose_output, context.compose_error, context.compose_returncode = \
        bdd_test_util.cli_call(["docker-compose"] + fileArgsToDockerCompose + ["up","--force-recreate", "-d"], expect_success=True)
    assert context.compose_returncode == 0, "docker-compose failed to bring up {0}".format(composeYamlFile)

    bdd_compose_util.parseComposeOutput(context)

    timeoutSeconds = 15
    assert bdd_compose_util.allContainersAreReadyWithinTimeout(context, timeoutSeconds), \
        "Containers did not come up within {} seconds, aborting".format(timeoutSeconds)
Example #3
0
def step_impl(context, seconds):
    compose_op(context, "start")

    timeout = int(seconds)
    assert bdd_compose_util.allContainersAreReadyWithinTimeout(context, timeout), \
        "Peers did not come up within {} seconds, aborting.".format(timeout)
Example #4
0
def step_impl(context, seconds):
    compose_op(context, "start")

    timeout = int(seconds)
    assert bdd_compose_util.allContainersAreReadyWithinTimeout(context, timeout), \
        "Peers did not come up within {} seconds, aborting.".format(timeout)