def dd_environment(): with docker_run(os.path.join(DOCKER_DIR, 'docker-compose.yml')): yield { 'ip_address': 'localhost', 'port': 161, 'community_string': 'public' }
def dd_environment(): instance = NEO4J_MINIMAL_CONFIG with docker_run( os.path.join(DOCKER_DIR, 'docker-compose.yaml'), log_patterns='Remote interface available at', conditions=[WaitFor(init_user)], ): yield instance
def dd_environment(): instance = { "stats_endpoint": "http://{}:5066/stats".format(HOST), "registry_file_path": registry_file_path("empty"), } with docker_run(os.path.join(DOCKER_DIR, "docker-compose.yaml"), endpoints="http://{}:5066".format(HOST)): yield instance
def test_compose_file(self): compose_file = os.path.join(DOCKER_DIR, 'test_default.yaml') try: with docker_run(compose_file): assert compose_file_active(compose_file) is True assert compose_file_active(compose_file) is False finally: run_command(['docker-compose', '-f', compose_file, 'down'], capture=True)
def dd_environment(): compose_file = os.path.join(HERE, 'docker', 'docker-compose.yml') log_patterns = 'Fullsync complete from' with docker_run( compose_file=compose_file, conditions=[CheckEndpoints(URL, wait=5), CheckDockerLogs(compose_file, log_patterns, matches='all', wait=5)], ): yield
def dd_environment(): with docker_run( COMPOSE_FILE, conditions=[ CheckDockerLogs(COMPOSE_FILE, ['service ready: soon there will be cake!']), WaitFor(init_db), ], ): yield INSTANCE
def dd_environment(): instance = NEO4J_MINIMAL_CONFIG envs = {'NEO4J_VERSION': os.environ['NEO4J_VERSION']} with docker_run( os.path.join(DOCKER_DIR, 'docker-compose.yaml'), env_vars=envs, log_patterns=['Remote interface available at'], conditions=[WaitFor(init_user)], ): yield instance
def dd_environment(): with docker_run( COMPOSE_FILE, conditions=[ CheckEndpoints(['http://{}:{}'.format(HOST, PORT)]), CheckDockerLogs(COMPOSE_FILE, ['service ready: soon there will be cake!']), WaitFor(init_db), ], ): yield INSTANCE
def dd_environment(): compose_file = os.path.join(HERE, 'docker', 'docker-compose.yml') log_patterns = [ 'Full-sync with site "riak-west-1" completed', 'Full-sync with site "riak-east-1" completed' ] with docker_run( compose_file=compose_file, conditions=[ CheckEndpoints(URL, wait=5), CheckDockerLogs(compose_file, log_patterns, matches='all') ], ): yield
def dd_environment(): with docker_run(os.path.join(DOCKER_DIR, "docker-compose.yaml"), endpoints=URL): yield INSTANCE
def dd_environment(): with docker_run(os.path.join(DOCKER_DIR, 'docker-compose.yml'), log_patterns='Synchronization with slave'): yield
def dd_environment(): with docker_run(os.path.join(DOCKER_DIR, 'docker-compose.yml'), log_patterns='bar1'): yield
def dd_environment(): compose_file = os.path.join(HERE, 'compose', 'docker-compose.yml') with docker_run(compose_file, log_patterns=['Server startup']): yield load_jmx_config(), {'use_jmx': True}