Skip to content

Commit

Permalink
LOG-3761: add functional test for checking V8 JavaScript exception pa…
Browse files Browse the repository at this point in the history
…rsing

Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
  • Loading branch information
vparfonov committed Mar 21, 2023
1 parent ff300da commit e192373
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/functional/normalization/multiline_exception_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ var _ = Describe("[Functional][Normalization] Multi-line exception detection", f
at Object.InjectedScript._evaluateOn (https://<anonymous>/file.js?foo=bar:875:140)
at Object.InjectedScript.evaluate (<anonymous>)`

jsV8Exception = `V8 errors stack trace
eval at Foo.a (eval at Bar.z (myscript.js:10:3))
at new Contructor.Name (native)
at new FunctionName (unknown location)
at Type.functionName [as methodName] (file(copy).js?query='yes':12:9)
at functionName [as methodName] (native)
at Type.main(sample(copy).js:6:4)`

nodeJSException = `ReferenceError: myArray is not defined
at next (/app/node_modules/express/lib/router/index.js:256:14)
at /app/node_modules/express/lib/router/index.js:615:15
Expand Down Expand Up @@ -106,6 +114,7 @@ created by main.main
},
Entry("of Java services", javaException, nil),
Entry("of JS client side exception", jsClientSideException, nil),
Entry("of V8 errors stack trace", jsV8Exception, nil),
Entry("of NodeJS services", nodeJSException, nil),
Entry("of GoLang services", goLangException, nil),
Entry("of single application NS to single pipeline", goLangException, func(framework *functional.CollectorFunctionalFramework) {
Expand Down

0 comments on commit e192373

Please sign in to comment.