Skip to content

Commit 44f595f

Browse files
committed
Add functional tests for package
1 parent 21caba1 commit 44f595f

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
AWSTemplateFormatVersion: '2010-09-09'
2+
Resources:
3+
Config:
4+
Type: AWS::SSM::Parameter
5+
Properties:
6+
Type: String
7+
Value:
8+
Fn::Sub:
9+
- |
10+
template: |
11+
{{ define "test.message" }}
12+
{{- $a := index .Alerts 0 -}}
13+
{{- $queryExpr := reReplaceAll "\\]" "%5D" (reReplaceAll "\\[" "%5B" (reReplaceAll "=" "%3D" (reReplaceAll "\\}" "%7D" (reReplaceAll "\\{" "%7B" $a.Expr)))) }}
14+
{{ end }}
15+
- {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
AWSTemplateFormatVersion: '2010-09-09'
2+
Resources:
3+
Config:
4+
Type: AWS::SSM::Parameter
5+
Properties:
6+
Type: String
7+
Value:
8+
Fn::Sub:
9+
- "template: |\n {{ define \"test.message\" }}\n {{- $a := index .Alerts\
10+
\ 0 -}}\n {{- $queryExpr := reReplaceAll \"\\\\]\" \"%5D\" (reReplaceAll\
11+
\ \"\\\\[\" \"%5B\" (reReplaceAll \"=\" \"%3D\" (reReplaceAll \"\\\\}\"\
12+
\ \"%7D\" (reReplaceAll \"\\\\{\" \"%7B\" $a.Expr)))) }}\n {{ end }}\n"
13+
- {}

0 commit comments

Comments
 (0)