opsworks/tests: init boto3.client with region_name='us-east-1'
This commit is contained in:
parent
1ce22068ea
commit
9ce1890f35
@ -8,7 +8,7 @@ from moto import mock_ec2
|
||||
|
||||
@mock_opsworks
|
||||
def test_create_instance():
|
||||
client = boto3.client('opsworks')
|
||||
client = boto3.client('opsworks', region_name='us-east-1')
|
||||
stack_id = client.create_stack(
|
||||
Name="test_stack_1",
|
||||
Region="us-east-1",
|
||||
@ -48,7 +48,7 @@ def test_describe_instances():
|
||||
populate S2L2 with 3 instances (S2L2_i1..2)
|
||||
"""
|
||||
|
||||
client = boto3.client('opsworks')
|
||||
client = boto3.client('opsworks', region_name='us-east-1')
|
||||
S1 = client.create_stack(
|
||||
Name="S1",
|
||||
Region="us-east-1",
|
||||
@ -138,7 +138,7 @@ def test_ec2_integration():
|
||||
instances created via OpsWorks should be discoverable via ec2
|
||||
"""
|
||||
|
||||
opsworks = boto3.client('opsworks')
|
||||
opsworks = boto3.client('opsworks', region_name='us-east-1')
|
||||
stack_id = opsworks.create_stack(
|
||||
Name="S1",
|
||||
Region="us-east-1",
|
||||
|
@ -8,7 +8,7 @@ from moto import mock_opsworks
|
||||
|
||||
@mock_opsworks
|
||||
def test_create_layer_response():
|
||||
client = boto3.client('opsworks')
|
||||
client = boto3.client('opsworks', region_name='us-east-1')
|
||||
stack_id = client.create_stack(
|
||||
Name="test_stack_1",
|
||||
Region="us-east-1",
|
||||
@ -47,7 +47,7 @@ def test_create_layer_response():
|
||||
|
||||
@mock_opsworks
|
||||
def test_describe_layers():
|
||||
client = boto3.client('opsworks')
|
||||
client = boto3.client('opsworks', region_name='us-east-1')
|
||||
stack_id = client.create_stack(
|
||||
Name="test_stack_1",
|
||||
Region="us-east-1",
|
||||
|
@ -8,7 +8,7 @@ from moto import mock_opsworks
|
||||
|
||||
@mock_opsworks
|
||||
def test_create_stack_response():
|
||||
client = boto3.client('opsworks')
|
||||
client = boto3.client('opsworks', region_name='us-east-1')
|
||||
response = client.create_stack(
|
||||
Name="test_stack_1",
|
||||
Region="us-east-1",
|
||||
@ -20,7 +20,7 @@ def test_create_stack_response():
|
||||
|
||||
@mock_opsworks
|
||||
def test_describe_stacks():
|
||||
client = boto3.client('opsworks')
|
||||
client = boto3.client('opsworks', region_name='us-east-1')
|
||||
for i in range(1, 4):
|
||||
client.create_stack(
|
||||
Name="test_stack_{}".format(i),
|
||||
|
Loading…
Reference in New Issue
Block a user