-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
4,508 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from parameterized import parameterized | ||
|
||
from integration.helpers.base_test import BaseTest | ||
|
||
|
||
class TestApiWithFailOnWarnings(BaseTest): | ||
@parameterized.expand( | ||
[ | ||
("combination/api_with_fail_on_warnings", True), | ||
("combination/api_with_fail_on_warnings", False), | ||
] | ||
) | ||
def test_end_point_configuration(self, file_name, disable_value): | ||
parameters = [ | ||
{ | ||
"ParameterKey": "FailOnWarningsValue", | ||
"ParameterValue": "true" if disable_value else "false", | ||
"UsePreviousValue": False, | ||
"ResolvedValue": "string", | ||
} | ||
] | ||
|
||
self.create_and_verify_stack(file_name, parameters) | ||
|
||
rest_api_id = self.get_physical_id_by_type("AWS::ApiGateway::RestApi") | ||
apigw_client = self.client_provider.api_client | ||
|
||
api_result = apigw_client.get_rest_api(restApiId=rest_api_id) | ||
self.assertEqual(api_result["ResponseMetadata"]["HTTPStatusCode"], 200) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 18 additions & 1 deletion
19
integration/combination/test_function_with_file_system_config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
from unittest.case import skipIf | ||
import pytest | ||
|
||
from integration.config.service_names import EFS | ||
from integration.helpers.base_test import BaseTest | ||
from integration.helpers.resource import current_region_does_not_support | ||
|
||
|
||
class TestFunctionWithFileSystemConfig(BaseTest): | ||
@pytest.fixture(autouse=True) | ||
def companion_stack_outputs(self, get_companion_stack_outputs): | ||
self.companion_stack_outputs = get_companion_stack_outputs | ||
|
||
@skipIf(current_region_does_not_support([EFS]), "EFS is not supported in this testing region") | ||
def test_function_with_efs_integration(self): | ||
self.create_and_verify_stack("combination/function_with_file_system_config") | ||
parameters = self.get_parameters(self.companion_stack_outputs) | ||
self.create_and_verify_stack("combination/function_with_file_system_config", parameters) | ||
|
||
def get_parameters(self, dictionary): | ||
parameters = [] | ||
parameters.append(self.generate_parameter("PreCreatedSubnetOne", dictionary["PreCreatedSubnetOne"])) | ||
parameters.append(self.generate_parameter("PreCreatedVpc", dictionary["PreCreatedVpc"])) | ||
return parameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
integration/combination/test_function_with_implicit_api_and_conditions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
from unittest.case import skipIf | ||
|
||
from integration.helpers.base_test import BaseTest | ||
from integration.helpers.resource import current_region_does_not_support | ||
from integration.config.service_names import REST_API | ||
|
||
|
||
@skipIf(current_region_does_not_support([REST_API]), "Rest API is not supported in this testing region") | ||
class TestFunctionWithImplicitApiAndCondition(BaseTest): | ||
def test_function_with_implicit_api_and_conditions(self): | ||
self.create_and_verify_stack("combination/function_with_implicit_api_and_conditions") |
Oops, something went wrong.