Skip to content

Commit

Permalink
add more e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Dec 19, 2024
1 parent b62391b commit 5e92cc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/ottl/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,12 @@ func Test_e2e_converters(t *testing.T) {
tCtx.GetLogRecord().Attributes().PutStr("SOMETHING", "myvalue")
},
},
{
statement: `set(attributes[ConvertCase(attributes[attributes["flags"]], "upper")], "myvalue")`,
want: func(tCtx ottllog.TransformContext) {
tCtx.GetLogRecord().Attributes().PutStr("SOMETHING", "myvalue")
},
},
{
statement: `set(attributes[attributes["flags"]], "something33")`,
want: func(tCtx ottllog.TransformContext) {
Expand Down

0 comments on commit 5e92cc6

Please sign in to comment.