Skip to content

Commit 5e92cc6

Browse files
committed
add more e2e tests
Signed-off-by: odubajDT <[email protected]>
1 parent b62391b commit 5e92cc6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/ottl/e2e/e2e_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,12 @@ func Test_e2e_converters(t *testing.T) {
335335
tCtx.GetLogRecord().Attributes().PutStr("SOMETHING", "myvalue")
336336
},
337337
},
338+
{
339+
statement: `set(attributes[ConvertCase(attributes[attributes["flags"]], "upper")], "myvalue")`,
340+
want: func(tCtx ottllog.TransformContext) {
341+
tCtx.GetLogRecord().Attributes().PutStr("SOMETHING", "myvalue")
342+
},
343+
},
338344
{
339345
statement: `set(attributes[attributes["flags"]], "something33")`,
340346
want: func(tCtx ottllog.TransformContext) {

0 commit comments

Comments
 (0)