Skip to content

Commit

Permalink
Add more test case
Browse files Browse the repository at this point in the history
  • Loading branch information
irisgve committed Sep 23, 2024
1 parent 0d37885 commit de250a6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions confmap/internal/e2e/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ func TestStrictTypeCasting(t *testing.T) {
targetField: TargetFieldInlineString,
expected: "inline field with 2006-01-02T15:04:05Z07:00 expansion",
},
{
value: `2023-03-20T03:17:55.432328Z`,
targetField: TargetFieldString,
expected: `2023-03-20T03:17:55.432328Z`,
},
{
value: `2023-03-20T03:17:55.432328Z`,
targetField: TargetFieldInlineString,
expected: "inline field with 2023-03-20T03:17:55.432328Z expansion",
},
// issue 10787
{
value: "true # comment with a ${env:hello.world} reference",
Expand Down Expand Up @@ -240,11 +250,6 @@ func TestStrictTypeCasting(t *testing.T) {
targetField: TargetFieldInlineString,
expected: "inline field with [filelog,windowseventlog/application] expansion",
},
{
value: `2023-03-20T03:17:55.432328Z`,
targetField: TargetFieldString,
expected: `2023-03-20T03:17:55.432328Z`,
},
{
value: "$$ENV",
targetField: TargetFieldString,
Expand Down

0 comments on commit de250a6

Please sign in to comment.