Skip to content

Commit

Permalink
Merge pull request #1926 from vparfonov/log3761_1
Browse files Browse the repository at this point in the history
LOG-3761: add functional test for checking V8 JavaScript exception parsing
  • Loading branch information
openshift-merge-robot committed May 30, 2023
2 parents 0082c89 + e192373 commit 7a462a5
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 @@ -33,6 +33,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 @@ -111,6 +119,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 7a462a5

Please sign in to comment.