Support OptInStatus for EC2 describe_region calls

This commit is contained in:
Matthew Gladney 2020-04-24 14:15:22 -04:00
commit 908468edb6
3 changed files with 21 additions and 4 deletions

View file

@ -40,6 +40,13 @@ def test_boto3_describe_regions():
resp = ec2.describe_regions(RegionNames=[test_region])
resp["Regions"].should.have.length_of(1)
resp["Regions"][0].should.have.key("RegionName").which.should.equal(test_region)
resp["Regions"][0].should.have.key("OptInStatus").which.should.equal("opt-in-not-required")
test_region = "ap-east-1"
resp = ec2.describe_regions(RegionNames=[test_region])
resp["Regions"].should.have.length_of(1)
resp["Regions"][0].should.have.key("RegionName").which.should.equal(test_region)
resp["Regions"][0].should.have.key("OptInStatus").which.should.equal("not-opted-in")
@mock_ec2