Merge pull request #2632 from kislyuk/patch-3

Batch: job definitions default to ACTIVE
This commit is contained in:
Mike Grima 2019-12-13 13:33:56 -08:00 committed by GitHub
commit fb350bbcef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class JobDefinition(BaseModel):
self._region = region_name
self.container_properties = container_properties
self.arn = None
self.status = "INACTIVE"
self.status = "ACTIVE"
if parameters is None:
parameters = {}

View File

@ -608,6 +608,9 @@ def test_describe_task_definition():
resp = batch_client.describe_job_definitions(jobDefinitions=["sleep10", "test1"])
len(resp["jobDefinitions"]).should.equal(3)
for job_definition in resp["jobDefinitions"]:
job_definition["status"].should.equal("ACTIVE")
@mock_logs
@mock_ec2