Merge pull request #2632 from kislyuk/patch-3
Batch: job definitions default to ACTIVE
This commit is contained in:
commit
fb350bbcef
@ -182,7 +182,7 @@ class JobDefinition(BaseModel):
|
|||||||
self._region = region_name
|
self._region = region_name
|
||||||
self.container_properties = container_properties
|
self.container_properties = container_properties
|
||||||
self.arn = None
|
self.arn = None
|
||||||
self.status = "INACTIVE"
|
self.status = "ACTIVE"
|
||||||
|
|
||||||
if parameters is None:
|
if parameters is None:
|
||||||
parameters = {}
|
parameters = {}
|
||||||
|
@ -608,6 +608,9 @@ def test_describe_task_definition():
|
|||||||
resp = batch_client.describe_job_definitions(jobDefinitions=["sleep10", "test1"])
|
resp = batch_client.describe_job_definitions(jobDefinitions=["sleep10", "test1"])
|
||||||
len(resp["jobDefinitions"]).should.equal(3)
|
len(resp["jobDefinitions"]).should.equal(3)
|
||||||
|
|
||||||
|
for job_definition in resp["jobDefinitions"]:
|
||||||
|
job_definition["status"].should.equal("ACTIVE")
|
||||||
|
|
||||||
|
|
||||||
@mock_logs
|
@mock_logs
|
||||||
@mock_ec2
|
@mock_ec2
|
||||||
|
Loading…
Reference in New Issue
Block a user