merge
This commit is contained in:
parent
181b5539f6
commit
e51d1bfade
172 changed files with 49629 additions and 49629 deletions
|
|
@ -1,44 +1,44 @@
|
|||
from __future__ import unicode_literals
|
||||
import boto3
|
||||
from moto import mock_ec2
|
||||
import sure # noqa
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_describe_account_attributes():
|
||||
conn = boto3.client('ec2', region_name='us-east-1')
|
||||
response = conn.describe_account_attributes()
|
||||
expected_attribute_values = [{
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': '5'
|
||||
}],
|
||||
'AttributeName': 'vpc-max-security-groups-per-interface'
|
||||
}, {
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': '20'
|
||||
}],
|
||||
'AttributeName': 'max-instances'
|
||||
}, {
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': 'EC2'
|
||||
}, {
|
||||
'AttributeValue': 'VPC'
|
||||
}],
|
||||
'AttributeName': 'supported-platforms'
|
||||
}, {
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': 'none'
|
||||
}],
|
||||
'AttributeName': 'default-vpc'
|
||||
}, {
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': '5'
|
||||
}],
|
||||
'AttributeName': 'max-elastic-ips'
|
||||
}, {
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': '5'
|
||||
}],
|
||||
'AttributeName': 'vpc-max-elastic-ips'
|
||||
}]
|
||||
response['AccountAttributes'].should.equal(expected_attribute_values)
|
||||
from __future__ import unicode_literals
|
||||
import boto3
|
||||
from moto import mock_ec2
|
||||
import sure # noqa
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_describe_account_attributes():
|
||||
conn = boto3.client('ec2', region_name='us-east-1')
|
||||
response = conn.describe_account_attributes()
|
||||
expected_attribute_values = [{
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': '5'
|
||||
}],
|
||||
'AttributeName': 'vpc-max-security-groups-per-interface'
|
||||
}, {
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': '20'
|
||||
}],
|
||||
'AttributeName': 'max-instances'
|
||||
}, {
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': 'EC2'
|
||||
}, {
|
||||
'AttributeValue': 'VPC'
|
||||
}],
|
||||
'AttributeName': 'supported-platforms'
|
||||
}, {
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': 'none'
|
||||
}],
|
||||
'AttributeName': 'default-vpc'
|
||||
}, {
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': '5'
|
||||
}],
|
||||
'AttributeName': 'max-elastic-ips'
|
||||
}, {
|
||||
'AttributeValues': [{
|
||||
'AttributeValue': '5'
|
||||
}],
|
||||
'AttributeName': 'vpc-max-elastic-ips'
|
||||
}]
|
||||
response['AccountAttributes'].should.equal(expected_attribute_values)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue