Skip to content

Commit

Permalink
Convert some check tests to support e2e (#2349)
Browse files Browse the repository at this point in the history
* Convert some check tests to support e2e

* these are unused actually
  • Loading branch information
ofek authored Oct 5, 2018
1 parent 8a3a63f commit 3bc3f1e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
6 changes: 2 additions & 4 deletions cockroachdb/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@


@pytest.fixture(scope='session', autouse=True)
def spin_up_cockroachdb(instance):
def dd_environment(instance):
with docker_run(
os.path.join(DOCKER_DIR, 'docker-compose.yaml'),
endpoints=instance['prometheus_url'],
):
yield
yield instance


@pytest.fixture(scope='session')
def instance():
return {
'prometheus_url': 'http://{}:{}/_status/vars'.format(HOST, PORT),
'disk_space_warning': '15',
'disk_space_critical': '5',
}
7 changes: 4 additions & 3 deletions envoy/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@


@pytest.fixture(scope='session', autouse=True)
def spin_up_envoy():
def dd_environment():
flavor = os.getenv('FLAVOR', 'default')
instance = INSTANCES['main']

with docker_run(
os.path.join(DOCKER_DIR, flavor, 'docker-compose.yaml'),
build=True,
endpoints=INSTANCES['main']['stats_url']
endpoints=instance['stats_url']
):
yield
yield instance
8 changes: 5 additions & 3 deletions vault/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@


@pytest.fixture(scope='session', autouse=True)
def spin_up_vault():
def dd_environment():
instance = INSTANCES['main']

with docker_run(
os.path.join(DOCKER_DIR, 'docker-compose.yaml'),
endpoints='{}/sys/health'.format(INSTANCES['main']['api_url'])
endpoints='{}/sys/health'.format(instance['api_url'])
):
yield
yield instance

0 comments on commit 3bc3f1e

Please sign in to comment.