feat: transition elbv2 state to active on first describe (#3937)
* refactor: parameterize state in elbv2 template response * feat: transition load balancer to active on first describe Closes #3936
This commit is contained in:
parent
31cf3c4252
commit
867cf078de
3 changed files with 17 additions and 2 deletions
|
|
@ -52,6 +52,7 @@ def test_create_load_balancer():
|
|||
]
|
||||
)
|
||||
lb.get("CreatedTime").tzinfo.should_not.be.none
|
||||
lb.get("State").get("Code").should.equal("provisioning")
|
||||
|
||||
# Ensure the tags persisted
|
||||
response = conn.describe_tags(ResourceArns=[lb.get("LoadBalancerArn")])
|
||||
|
|
@ -89,6 +90,7 @@ def test_describe_load_balancers():
|
|||
response.get("LoadBalancers").should.have.length_of(1)
|
||||
lb = response.get("LoadBalancers")[0]
|
||||
lb.get("LoadBalancerName").should.equal("my-lb")
|
||||
lb.get("State").get("Code").should.equal("active")
|
||||
|
||||
response = conn.describe_load_balancers(
|
||||
LoadBalancerArns=[lb.get("LoadBalancerArn")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue