-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add v1alpha Agent and Direct end-to-end tests (#490)
Adds v1alpha `Agent` and `Direct` tests.
- Loading branch information
1 parent
77ff3d4
commit 51352eb
Showing
59 changed files
with
500 additions
and
174 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 |
---|---|---|
|
@@ -36,7 +36,11 @@ var customAlertMethodsSubVariants = map[v1alpha.AlertMethodType][]alertMethodSpe | |
|
||
type alertMethodExample struct { | ||
standardExample | ||
methodType v1alpha.AlertMethodType | ||
typ v1alpha.AlertMethodType | ||
} | ||
|
||
func (a alertMethodExample) GetAlertMethodType() v1alpha.AlertMethodType { | ||
return a.typ | ||
} | ||
|
||
func (a alertMethodExample) GetYAMLComments() []string { | ||
|
@@ -54,7 +58,7 @@ func AlertMethod() []Example { | |
standardExample: standardExample{ | ||
Variant: typ.String(), | ||
}, | ||
methodType: typ, | ||
typ: typ, | ||
}) | ||
} | ||
for typ, subVariants := range customAlertMethodsSubVariants { | ||
|
@@ -64,7 +68,7 @@ func AlertMethod() []Example { | |
Variant: typ.String(), | ||
SubVariant: subVariant, | ||
}, | ||
methodType: typ, | ||
typ: typ, | ||
}) | ||
} | ||
} | ||
|
@@ -89,7 +93,7 @@ func (a alertMethodExample) Generate() v1alphaAlertMethod.AlertMethod { | |
} | ||
|
||
func (a alertMethodExample) generateVariant(am v1alphaAlertMethod.AlertMethod) v1alphaAlertMethod.AlertMethod { | ||
switch a.methodType { | ||
switch a.typ { | ||
case v1alpha.AlertMethodTypeEmail: | ||
am.Spec.Email = &v1alphaAlertMethod.EmailAlertMethod{ | ||
To: []string{"[email protected]"}, | ||
|
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 |
---|---|---|
|
@@ -18,6 +18,5 @@ spec: | |
value: 15 | ||
unit: Day | ||
queryDelay: | ||
duration: | ||
value: 1 | ||
unit: Second | ||
value: 1 | ||
unit: Second |
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 |
---|---|---|
|
@@ -17,6 +17,5 @@ spec: | |
value: 15 | ||
unit: Day | ||
queryDelay: | ||
duration: | ||
value: 2 | ||
unit: Minute | ||
value: 2 | ||
unit: Minute |
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 |
---|---|---|
|
@@ -9,6 +9,5 @@ spec: | |
releaseChannel: stable | ||
bigQuery: {} | ||
queryDelay: | ||
duration: | ||
value: 1 | ||
unit: Second | ||
value: 1 | ||
unit: Second |
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 |
---|---|---|
|
@@ -16,6 +16,5 @@ spec: | |
value: 7 | ||
unit: Day | ||
queryDelay: | ||
duration: | ||
value: 2 | ||
unit: Minute | ||
value: 2 | ||
unit: Minute |
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 |
---|---|---|
|
@@ -17,6 +17,5 @@ spec: | |
value: 15 | ||
unit: Day | ||
queryDelay: | ||
duration: | ||
value: 2 | ||
unit: Minute | ||
value: 2 | ||
unit: Minute |
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 |
---|---|---|
|
@@ -17,6 +17,5 @@ spec: | |
value: 14 | ||
unit: Day | ||
queryDelay: | ||
duration: | ||
value: 3 | ||
unit: Minute | ||
value: 3 | ||
unit: Minute |
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 |
---|---|---|
|
@@ -9,6 +9,5 @@ spec: | |
releaseChannel: stable | ||
generic: {} | ||
queryDelay: | ||
duration: | ||
value: 1 | ||
unit: Second | ||
value: 1 | ||
unit: Second |
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 |
---|---|---|
|
@@ -16,6 +16,5 @@ spec: | |
value: 15 | ||
unit: Day | ||
queryDelay: | ||
duration: | ||
value: 3 | ||
unit: Minute | ||
value: 3 | ||
unit: Minute |
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 |
---|---|---|
|
@@ -17,6 +17,5 @@ spec: | |
value: 15 | ||
unit: Day | ||
queryDelay: | ||
duration: | ||
value: 2 | ||
unit: Minute | ||
value: 2 | ||
unit: Minute |
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 |
---|---|---|
|
@@ -19,6 +19,5 @@ spec: | |
value: 15 | ||
unit: Day | ||
queryDelay: | ||
duration: | ||
value: 3 | ||
unit: Minute | ||
value: 3 | ||
unit: Minute |
Oops, something went wrong.