Skip to content

Commit

Permalink
Disable verification of logback code attributes for Wildfly
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbisutti committed Sep 15, 2022
1 parent 27e4cff commit 822d915
Showing 1 changed file with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,20 @@ void testTraceLogBack() throws Exception {
assertThat(md2.getProperties()).containsEntry("LoggerName", "smoketestapp");
assertThat(md2.getProperties()).containsKey("ThreadName");

assertThat(md2.getProperties()).containsEntry("FileName", "SimpleTestTraceLogBackServlet.java");
assertThat(md2.getProperties())
.containsEntry(
"ClassName",
"com.microsoft.applicationinsights.smoketestapp.SimpleTestTraceLogBackServlet");
assertThat(md2.getProperties()).containsEntry("MethodName", "doGet");
assertThat(md2.getProperties()).containsEntry("LineNumber", "26");

assertThat(md2.getProperties()).hasSize(7);
if (checkLogBackCodeAttributes()) {
assertThat(md2.getProperties())
.containsEntry("FileName", "SimpleTestTraceLogBackServlet.java");
assertThat(md2.getProperties())
.containsEntry(
"ClassName",
"com.microsoft.applicationinsights.smoketestapp.SimpleTestTraceLogBackServlet");
assertThat(md2.getProperties()).containsEntry("MethodName", "doGet");
assertThat(md2.getProperties()).containsEntry("LineNumber", "26");

assertThat(md2.getProperties()).hasSize(7);
} else {
assertThat(md2.getProperties()).hasSize(3);
}

SmokeTestExtension.assertParentChild(
rd, rdEnvelope, mdEnvelope1, "GET /TraceLogBackUsingAgent/traceLogBack");
Expand Down

0 comments on commit 822d915

Please sign in to comment.