Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Removes /.dockerenv from integration tests (#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
dposada authored Aug 27, 2021
1 parent 16c1393 commit 51692c9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions integration/tests/cook/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1871,20 +1871,6 @@ def test_400_on_group_query_without_uuid(self):
resp = util.query_groups(self.cook_url)
self.assertEqual(400, resp.status_code)

@unittest.skipUnless(util.docker_tests_enabled(), "Requires a test docker image")
def test_basic_docker_job(self):
image = util.docker_image()
self.logger.debug(f'Using docker image {image}')
job_uuid, resp = util.submit_job(
self.cook_url,
command='cat /.dockerenv',
container={'type': 'DOCKER',
'docker': {'image': image}},
max_retries=5)
self.assertEqual(resp.status_code, 201)
job = util.wait_for_job(self.cook_url, job_uuid, 'completed')
self.assertIn('success', [i['status'] for i in job['instances']])

def test_submit_job_with_disk(self):
settings_dict = util.settings(self.cook_url)
# disk_config_list is a list of regexp's with pool regex, valid disk types, default disk type, and max requestable size of disk
Expand Down Expand Up @@ -2080,7 +2066,6 @@ def test_default_container_for_pool(self):
# Special logic in util.submit_jobs.full_spec maps container=None and removes it from the submitted job spec.
job_uuid, resp = util.submit_job(
self.cook_url,
command='cat /.dockerenv',
container=None,
max_retries=5)
self.assertEqual(resp.status_code, 201)
Expand Down

0 comments on commit 51692c9

Please sign in to comment.