def executeCommandInContainer(context, command, container): fullContainerName = fullNameFromContainerNamePart( container, context.compose_containers) command = "docker exec {} {}".format(fullContainerName, command) executeCommand(context, command)
def executeCommandInContainer(context, command, container): fullContainerName = fullNameFromContainerNamePart(container, context.compose_containers) command = "docker exec {} {}".format(fullContainerName, command) executeCommand(context, command)
def getPeerLogs(context, peerName): fullContainerName = bdd_test_util.fullNameFromContainerNamePart(peerName, context.compose_containers) stdout, stderr, retcode = bdd_test_util.cli_call(["docker", "logs", fullContainerName], expect_success=True) return stdout, stderr