Skip to content

Commit

Permalink
feat: update system tests for synthetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall committed Aug 19, 2024
1 parent 5326a68 commit 57b4877
Show file tree
Hide file tree
Showing 13 changed files with 75 additions and 157 deletions.
29 changes: 8 additions & 21 deletions systemtest/approvals/TestIntake/Errors.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@
1
],
"error.exception.type": [
"ConnectionError",
"DbError",
"InternalDbError",
"VeryInternalDbError",
"ConnectionError"
"VeryInternalDbError"
],
"error.grouping_key": [
"d72b25a26fde3f3aaad1c86950acd070"
Expand Down Expand Up @@ -165,22 +165,14 @@
"http.request.headers": [
{
"Array": [
"foo",
"bar",
"baz"
],
"Content-Type": [
"text/html"
],
"Cookie": [
"c1=v1,c2=v2"
],
"Some-Other-Header": [
"baz",
"foo"
],
"User-Agent": [
"Mozilla Chrome Edge"
]
"Content-Type": "text/html",
"Cookie": "c1=v1,c2=v2",
"Some-Other-Header": "foo",
"User-Agent": "Mozilla Chrome Edge"
}
],
"http.request.method": [
Expand All @@ -194,9 +186,7 @@
],
"http.response.headers": [
{
"Content-Type": [
"application/json"
]
"Content-Type": "application/json"
}
],
"http.response.headers_sent": [
Expand Down Expand Up @@ -451,9 +441,6 @@
"error.grouping_key": [
"ae0232fed4cb40e7ebc62a585a421d60"
],
"error.grouping_name": [
"Cannot read property 'baz' no defined"
],
"error.id": [
"cdefab0123456789"
],
Expand Down
24 changes: 7 additions & 17 deletions systemtest/approvals/TestIntake/ErrorsTxID.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
1
],
"error.exception.type": [
"java.net.UnknownHostException",
"ConnectionError",
"InternalDbError",
"VeryInternalDbError",
"ConnectionError"
"java.net.UnknownHostException"
],
"error.grouping_key": [
"9a4054e958afe722b5877e8fac578ff3"
Expand Down Expand Up @@ -104,22 +104,14 @@
],
"http.request.headers": [
{
"Content-Length": [
"0"
],
"Content-Length": "0",
"Cookie": [
"c1=v1",
"c2=v2"
],
"Elastic-Apm-Traceparent": [
"00-8c21b4b556467a0b17ae5da959b5f388-31301f1fb2998121-01"
],
"Forwarded": [
"for=192.168.0.1"
],
"Host": [
"opbeans-java:3000"
]
"Elastic-Apm-Traceparent": "00-8c21b4b556467a0b17ae5da959b5f388-31301f1fb2998121-01",
"Forwarded": "for=192.168.0.1",
"Host": "opbeans-java:3000"
}
],
"http.request.method": [
Expand All @@ -130,9 +122,7 @@
],
"http.response.headers": [
{
"Content-Type": [
"application/json"
]
"Content-Type": "application/json"
}
],
"http.response.headers_sent": [
Expand Down
44 changes: 12 additions & 32 deletions systemtest/approvals/TestIntake/Events.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
1
],
"error.exception.type": [
"java.net.UnknownHostException",
"ConnectionError",
"InternalDbError",
"VeryInternalDbError",
"ConnectionError"
"java.net.UnknownHostException"
],
"error.grouping_key": [
"9a4054e958afe722b5877e8fac578ff3"
Expand Down Expand Up @@ -107,22 +107,14 @@
],
"http.request.headers": [
{
"Content-Length": [
"0"
],
"Content-Length": "0",
"Cookie": [
"c1=v1",
"c2=v2"
],
"Elastic-Apm-Traceparent": [
"00-8c21b4b556467a0b17ae5da959b5f388-31301f1fb2998121-01"
],
"Forwarded": [
"for=192.168.0.1"
],
"Host": [
"opbeans-java:3000"
]
"Elastic-Apm-Traceparent": "00-8c21b4b556467a0b17ae5da959b5f388-31301f1fb2998121-01",
"Forwarded": "for=192.168.0.1",
"Host": "opbeans-java:3000"
}
],
"http.request.method": [
Expand All @@ -133,9 +125,7 @@
],
"http.response.headers": [
{
"Content-Type": [
"application/json"
]
"Content-Type": "application/json"
}
],
"http.response.headers_sent": [
Expand Down Expand Up @@ -567,9 +557,7 @@
],
"http.response.headers": [
{
"Content-Type": [
"application/json"
]
"Content-Type": "application/json"
}
],
"http.response.status_code": [
Expand Down Expand Up @@ -816,15 +804,9 @@
],
"http.request.headers": [
{
"Content-Type": [
"text/html"
],
"Cookie": [
"c1=v1,c2=v2"
],
"Elastic-Apm-Traceparent": [
"00-33a0bd4cceff0370a7c57d807032688e-69feaabc5b88d7e8-01"
],
"Content-Type": "text/html",
"Cookie": "c1=v1,c2=v2",
"Elastic-Apm-Traceparent": "00-33a0bd4cceff0370a7c57d807032688e-69feaabc5b88d7e8-01",
"User-Agent": [
"Mozilla/5.0(Macintosh;IntelMacOSX10_10_5)AppleWebKit/537.36(KHTML,likeGecko)Chrome/51.0.2704.103Safari/537.36",
"MozillaChromeEdge"
Expand All @@ -845,9 +827,7 @@
],
"http.response.headers": [
{
"Content-Type": [
"application/json"
]
"Content-Type": "application/json"
}
],
"http.response.headers_sent": [
Expand Down
3 changes: 0 additions & 3 deletions systemtest/approvals/TestIntake/MinimalEvents.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@
"error.grouping_key": [
"3a1fb5609458fbb132b44d8fc7cde104"
],
"error.grouping_name": [
"error exception message"
],
"error.id": [
"abcdef0123456790"
],
Expand Down
26 changes: 9 additions & 17 deletions systemtest/approvals/TestIntake/Transactions.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@
"user created"
],
"transaction.message.headers.Involved_services": [
"user",
"auth"
"auth",
"user"
],
"transaction.message.headers.User_id": [
"1ax3"
Expand Down Expand Up @@ -636,22 +636,16 @@
"http.request.headers": [
{
"Array": [
"foo",
"bar",
"baz"
],
"Content-Type": [
"text/html"
],
"Cookie": [
"c1=v1, c2=v2"
],
"Some-Other-Header": [
"baz",
"foo"
],
"Content-Type": "text/html",
"Cookie": "c1=v1, c2=v2",
"Some-Other-Header": "foo",
"User-Agent": [
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36",
"Mozilla Chrome Edge"
"Mozilla Chrome Edge",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
]
}
],
Expand All @@ -672,9 +666,7 @@
],
"http.response.headers": [
{
"Content-Type": [
"application/json"
]
"Content-Type": "application/json"
}
],
"http.response.headers_sent": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,16 @@
"http.request.headers": [
{
"Array": [
"foo",
"bar",
"baz"
],
"Content-Type": [
"text/html"
],
"Cookie": [
"c1=v1, c2=v2"
],
"Some-Other-Header": [
"baz",
"foo"
],
"Content-Type": "text/html",
"Cookie": "c1=v1, c2=v2",
"Some-Other-Header": "foo",
"User-Agent": [
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36",
"Mozilla Chrome Edge"
"Mozilla Chrome Edge",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
]
}
],
Expand All @@ -156,9 +150,7 @@
],
"http.response.headers": [
{
"Content-Type": [
"application/json"
]
"Content-Type": "application/json"
}
],
"http.response.headers_sent": [
Expand Down
22 changes: 6 additions & 16 deletions systemtest/approvals/TestIntake/UnknownSpanType.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,22 +249,14 @@
"http.request.headers": [
{
"Array": [
"foo",
"bar",
"baz"
],
"Content-Type": [
"text/html"
],
"Cookie": [
"c1=v1,c2=v2"
],
"Some-Other-Header": [
"baz",
"foo"
],
"User-Agent": [
"Mozilla Chrome Edge"
]
"Content-Type": "text/html",
"Cookie": "c1=v1,c2=v2",
"Some-Other-Header": "foo",
"User-Agent": "Mozilla Chrome Edge"
}
],
"http.request.method": [
Expand All @@ -278,9 +270,7 @@
],
"http.response.headers": [
{
"Content-Type": [
"application/json"
]
"Content-Type": "application/json"
}
],
"http.response.headers_sent": [
Expand Down
15 changes: 6 additions & 9 deletions systemtest/approvals/TestOTLPGRPCTraces.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
"error.grouping_key": [
"14f4d08792a45fce53a46c93851e36e1"
],
"error.grouping_name": [
"kablamo"
],
"error.id": [
"dynamic"
],
Expand All @@ -53,8 +50,8 @@
"true"
],
"labels.resource_attribute_bool_array": [
"true",
"false"
"false",
"true"
],
"message": [
"kablamo"
Expand Down Expand Up @@ -154,8 +151,8 @@
"true"
],
"labels.resource_attribute_bool_array": [
"true",
"false"
"false",
"true"
],
"message": [
"a_span_event"
Expand Down Expand Up @@ -243,8 +240,8 @@
"true"
],
"labels.resource_attribute_bool_array": [
"true",
"false"
"false",
"true"
],
"labels.span_attribute_array": [
"a",
Expand Down
Loading

0 comments on commit 57b4877

Please sign in to comment.