-
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.
* chore: sync foss changes * Add make target for creating companion stack, add config files * Fix cors tests * add --no-cov to companion setup * fix wrong test setups * fix wrong test setups * use parameters when doing local transform * Revert "use parameters when doing local transform" This reverts commit 4b987dc. Co-authored-by: Daniel Mil <mladan@amazon.com>
- Loading branch information
Showing
24 changed files
with
254 additions
and
232 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
14 changes: 13 additions & 1 deletion
14
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,11 +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
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,8 @@ | ||
{ | ||
"codeuri": "code.zip", | ||
"contenturi": "layer1.zip", | ||
"definitionuri": "swagger1.json", | ||
"templateurl": "template.yaml", | ||
"binaryMediaCodeUri": "binary-media.zip", | ||
"mtlsuri": "MTLSCert.pem" | ||
} |
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,11 @@ | ||
{ | ||
"code.zip": {"type": "s3", "uri": ""}, | ||
"code2.zip": {"type": "s3", "uri": ""}, | ||
"layer1.zip": {"type": "s3", "uri": ""}, | ||
"swagger1.json": {"type": "s3", "uri": ""}, | ||
"swagger2.json": {"type": "s3", "uri": ""}, | ||
"binary-media.zip": {"type": "s3", "uri": ""}, | ||
"template.yaml": {"type": "http", "uri": ""}, | ||
"MTLSCert.pem": {"type": "s3", "uri": ""}, | ||
"MTLSCert-Updated.pem": {"type": "s3", "uri": ""} | ||
} |
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
Oops, something went wrong.