-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #333 from DontShaveTheYak/develop
Release v0.12.1
- Loading branch information
Showing
8 changed files
with
202 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
requests==2.31.0 | ||
requests==2.32.3 | ||
semver==3.0.2 |
Large diffs are not rendered by default.
Oops, something went wrong.
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,22 @@ | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Description: "Basic template to check List Ref behaviours" | ||
|
||
Parameters: | ||
AllowedWriters: | ||
Type: CommaDelimitedList | ||
Description: Principals allowed to write | ||
|
||
AllowedImages: | ||
Type: List<AWS::EC2::Image::Id> | ||
Description: AMIs that are allowed | ||
|
||
|
||
Outputs: | ||
|
||
JoinedWriters: | ||
Description: When the values are joined together | ||
Value: !Join ["", !Ref AllowedWriters] | ||
|
||
JoinedImages: | ||
Description: When the values are joined together | ||
Value: !Join ["", !Ref AllowedImages] |
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,28 @@ | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
from cloud_radar.cf.unit._template import Template | ||
|
||
"""Tests the functionality of the functions with a List type parameter.""" | ||
|
||
|
||
@pytest.fixture | ||
def template(): | ||
template_path = Path(__file__).parent / "../../templates/test_params_list.yaml" | ||
|
||
return Template.from_yaml(template_path.resolve(), {}) | ||
|
||
|
||
def test_join(template: Template): | ||
stack = template.create_stack( | ||
{ | ||
"AllowedWriters": "One,Two,Three", | ||
"AllowedImages": "ami-0ff8a91507f77f867,ami-0a584ac55a7631c0c", | ||
} | ||
) | ||
|
||
stack.get_output("JoinedWriters").assert_value_is("OneTwoThree") | ||
stack.get_output("JoinedImages").assert_value_is( | ||
"ami-0ff8a91507f77f867ami-0a584ac55a7631c0c" | ||
) |