From f8ce6651cc6b572c40550428e1c2e3d9e5dcb437 Mon Sep 17 00:00:00 2001 From: Eric Wei Date: Wed, 30 Mar 2022 15:59:11 -0700 Subject: [PATCH] merged main and run tests Signed-off-by: Eric Wei --- .../__snapshots__/create.test.tsx.snap | 3242 +++--- .../__snapshots__/log_config.test.tsx.snap | 60 +- .../service_config.test.tsx.snap | 928 +- .../__snapshots__/trace_config.test.tsx.snap | 82 +- .../custom_panel_table.test.tsx.snap | 882 +- .../__snapshots__/empty_panel.test.tsx.snap | 266 +- .../visualization_flyout.test.tsx.snap | 1658 ++- .../__snapshots__/no_results.test.tsx.snap | 5 +- .../__snapshots__/docViewer.test.tsx.snap | 2 +- .../json_code_block.test.tsx.snap | 240 +- .../saved_query_table.test.tsx.snap | 402 +- .../__snapshots__/save_panel.test.tsx.snap | 34 +- .../__snapshots__/field.test.tsx.snap | 341 +- .../__snapshots__/sidebar.test.tsx.snap | 9233 +++++++++-------- .../__snapshots__/datapanel.test.tsx.snap | 6022 +++++------ .../field_accordion.test.tsx.snap | 6019 +++++------ .../__snapshots__/field_item.test.tsx.snap | 300 +- .../__snapshots__/field_list.test.tsx.snap | 3 - .../shared_components.test.tsx.snap | 11 +- .../__snapshots__/note_table.test.tsx.snap | 66 +- .../__snapshots__/notebook.test.tsx.snap | 36 +- .../__snapshots__/para_input.test.tsx.snap | 10 +- .../__snapshots__/paragraphs.test.tsx.snap | 53 +- .../__snapshots__/search_bar.test.tsx.snap | 476 +- .../filter_edit_popover.test.tsx.snap | 13 - .../__snapshots__/filters.test.tsx.snap | 152 +- .../__snapshots__/dashboard.test.tsx.snap | 1198 +-- .../dashboard_table.test.tsx.snap | 1133 +- .../latency_trend_cell.test.tsx.snap | 82 +- .../__snapshots__/services.test.tsx.snap | 1612 +-- .../services_table.test.tsx.snap | 699 +- .../service_breakdown_panel.test.tsx.snap | 14 +- .../span_detail_flyout.test.tsx.snap | 1605 ++- .../span_detail_panel.test.tsx.snap | 285 +- .../span_detail_table.test.tsx.snap | 269 +- .../__snapshots__/traces.test.tsx.snap | 708 +- .../__snapshots__/traces_table.test.tsx.snap | 693 +- 37 files changed, 20023 insertions(+), 18811 deletions(-) diff --git a/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap b/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap index 03cda5c00..b7e4195f2 100644 --- a/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap +++ b/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap @@ -14,13 +14,13 @@ Object { style="max-width: 1130px;" >
-
-
+
-
- You can't change the base query after the application is created. -
+ You can't change the base query after the application is created.
@@ -282,7 +273,7 @@ Object { class="euiFormRow__fieldWrapper" >
@@ -331,7 +322,7 @@ Object {
The default logs view in the application will be filtered by this query.
@@ -436,11 +427,8 @@ Object {
-
-
+
- +
+
- + +

-

- No matches -

+

+ No matches +

@@ -829,11 +823,8 @@ Object {
diff --git a/dashboards-observability/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap b/dashboards-observability/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap index b2fc1fce3..45ef0c814 100644 --- a/dashboards-observability/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap +++ b/dashboards-observability/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap @@ -246,7 +246,6 @@ exports[`Dashboard component renders dashboard 1`] = ` /> @@ -254,7 +253,6 @@ exports[`Dashboard component renders dashboard 1`] = ` className="euiFormControlLayoutIcons" >
+
-
- - - + + + + + + + +
-
+
@@ -939,51 +947,59 @@ exports[`Dashboard component renders dashboard 1`] = ` display="inlineBlock" hasArrow={true} isOpen={false} - ownFocus={true} + ownFocus={false} panelPaddingSize="m" withTitle={true} > -
- - - + + + +
-
+
@@ -1010,7 +1026,7 @@ exports[`Dashboard component renders dashboard 1`] = ` >
- -

- No matches -

-
+ +

+ No matches +

+
@@ -1260,7 +1276,7 @@ exports[`Dashboard component renders dashboard 1`] = ` >
- - -
- - - - - - + + + Latency + + + + + + +
+ + + - - - - - + + + Error rate + + + + + + +
+ + + - - - - + + + + Throughput + + + + + + +
+ +
@@ -1624,7 +1649,7 @@ exports[`Dashboard component renders dashboard 1`] = ` isInvalid={false} > @@ -1641,7 +1665,6 @@ exports[`Dashboard component renders dashboard 1`] = ` className="euiFormControlLayoutIcons" >
+
@@ -3065,21 +3103,21 @@ exports[`Dashboard component renders empty dashboard 1`] = `
- -

- Trace Analytics not set up -

-
+ +

+ Trace Analytics not set up +

+
@@ -3109,6 +3147,13 @@ exports[`Dashboard component renders empty dashboard 1`] = ` className="euiSpacer euiSpacer--l" /> + +
+
-
- - - + + + +
-
+
@@ -1050,6 +1058,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` - - - - + + - + Traces of all requests that share a common API and operation at the start of distributed tracing instrumentation. + + } + delay="regular" + position="top" > - - Traces of all requests that share a common API and operation at the start of distributed tracing instrumentation. - - } - delay="regular" - position="top" + - -
- Trace group name - - + Trace group name + + + - - - - -
-
-   -
-
-
-
+ viewBox="0 0 16 16" + width={16} + xmlns="http://www.w3.org/2000/svg" + /> + + +
+
+   +
+ + + + + + + + + Click to sort in ascending order - - - + + + - - - - + + - + Range of latencies for traces within a trace group in the selected time range. + + } + delay="regular" + position="top" > - - Range of latencies for traces within a trace group in the selected time range. - - } - delay="regular" - position="top" + - - Latency variance (ms) - - - - - - - + viewBox="0 0 16 16" + width={16} + xmlns="http://www.w3.org/2000/svg" + /> + + - - + + +
-
- -
- 0                100            200            300            400 -
-
-
- - - - + 0                100            200            300            400 +
+ +
+ + + + + - - + + + + + Click to unsort + + + + - - - - + + - + Average latency of traces within a trace group in the selected time range. + + } + delay="regular" + position="top" > - - Average latency of traces within a trace group in the selected time range. - - } - delay="regular" - position="top" + - -
- Average latency (ms) - - + Average latency (ms) + + + - - - - -
-
-   -
-
-
-
+ viewBox="0 0 16 16" + width={16} + xmlns="http://www.w3.org/2000/svg" + /> + + +
+
+   +
+ + + + + + + + + Click to sort in ascending order - + + + + + + + + +
+ + + + 24 hour time series view of hourly average, hourly percentile, and hourly range of latency for traces within a trace group. + + } + delay="regular" + position="top" + > + +
+ 24-hour latency trend + + + + + + +
+
+   +
+
+
- - +
+
- - 24 hour time series view of hourly average, hourly percentile, and hourly range of latency for traces within a trace group. + Error rate based on count of trace errors within a trace group in the selected time range. } delay="regular" @@ -1478,7 +1607,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` onMouseOver={[Function]} >
- 24-hour latency trend + Error rate - - - - - - - - - - - + + - + Count of traces with unique trace identifiers in the selected time range. + + } + delay="regular" + position="top" > - - Count of traces with unique trace identifiers in the selected time range. - - } - delay="regular" - position="top" + - -
- Traces - - + Traces + + + - - - - -
-
-   -
-
-
-
+ viewBox="0 0 16 16" + width={16} + xmlns="http://www.w3.org/2000/svg" + /> + +
+
+
+   +
+
+ +
+ + + + + + Click to sort in ascending order - - -
+ + +
@@ -2867,88 +2906,97 @@ exports[`Dashboard table component renders dashboard table 1`] = ` display="inlineBlock" hasArrow={true} isOpen={false} - ownFocus={true} + ownFocus={false} panelPaddingSize="none" + withTitle={true} > -
- - - + + + +
-
+
@@ -2990,7 +3038,7 @@ exports[`Dashboard table component renders dashboard table 1`] = ` > - + > + + + + + + - + diff --git a/dashboards-observability/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap b/dashboards-observability/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap index 13aa55a99..0bb2cad16 100644 --- a/dashboards-observability/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap +++ b/dashboards-observability/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap @@ -250,7 +250,6 @@ exports[`Services component renders empty services page 1`] = ` /> @@ -258,7 +257,6 @@ exports[`Services component renders empty services page 1`] = ` className="euiFormControlLayoutIcons" > - - - - + + - - Throughput - + Throughput + + + + + + + Click to sort in ascending order - - - + + + - - - - + + - - No. of connected services - + No. of connected services + + + + + + + Click to sort in ascending order - - - + + + - - - - + + - - Connected services - + Connected services + + + + + + + Click to sort in ascending order - - - + + + - - - - + + - - Traces - + Traces + + + + + + + Click to sort in ascending order - - - + + + @@ -1459,88 +1528,97 @@ exports[`Services table component renders services table 1`] = ` display="inlineBlock" hasArrow={true} isOpen={false} - ownFocus={true} + ownFocus={false} panelPaddingSize="none" + withTitle={true} > -
- - - + + + +
- + @@ -1582,7 +1660,7 @@ exports[`Services table component renders services table 1`] = ` > +
+

+ Span detail +

+
+
+
+
+
+ + Overview + +
+
+
+
+
+
+
+ Span ID +
+
+
+
+
+
+
+ +
+
+ + + +
+
+ 67c279e1100d75c3 +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parent span ID +
+
+
+
+
+ + - + +
+
+
+
+
+
+
+
+
+
+ Service +
+
+
+
+
+
+
+ + frontend-client + +
+
+
+
+
+
+
+
+
+
+
+
+
+ Operation +
+
+
+
+
+
+
+ + client_pay_order + +
+
+
+
+
+
+
+
+
+
+
+
+
+ Duration +
+
+
+
+
+
+
+ + 225 ms + +
+
+
+
+
+
+
+
+
+
+
+
+
+ Start time +
+
+
+
+
+
+
+ + 03/25/2021 17:23:45 + +
+
+
+
+
+
+
+
+
+
+
+
+
+ End time +
+
+
+
+
+
+
+ + 03/25/2021 17:23:45 + +
+
+
+
+
+
+
+
+
+
+
+
+
+ Errors +
+
+
+
+
+
+
+ + No + +
+
+
+
+
+
+
+
+
+
+
+ + Span attributes + + + (12) + +
+
+
+
+
+
+
+ droppedAttributesCount +
+
+
+
+
+
+
+ + 0 + +
+
+
+
+
+
+
+
+
+
+
+
+
+ droppedEventsCount +
+
+
+
+
+
+
+ + 0 + +
+
+
+
+
+
+
+
+
+
+
+
+
+ droppedLinksCount +
+
+
+
+
+
+
+ + 0 + +
+
+
+
+
+
+
+
+
+
+
+
+
+ instrumentationLibrary.name +
+
+
+
+
+
+
+ + __main__ + +
+
+
+
+
+
+
+
+
+
+
+
+
+ kind +
+
+
+
+
+
+
+ + SPAN_KIND_INTERNAL + +
+
+
+
+
+
+
+
+
+
+
+
+
+ resource.attributes.host@hostname +
+
+
+
+
+
+
+ + ip-172-31-10-8.us-west-2.compute.internal + +
+
+
+
+
+
+
+
+
+
+
+
+
+ resource.attributes.service@name +
+
+
+
+
+
+
+ + frontend-client + +
+
+
+
+
+
+
+
+
+
+
+
+
+ resource.attributes.telemetry@sdk@language +
+
+
+
+
+
+
+ + python + +
+
+
+
+
+
+
+
+
+
+
+
+
+ resource.attributes.telemetry@sdk@name +
+
+
+
+
+
+
+ + opentelemetry + +
+
+
+
+
+
+
+
+
+
+
+
+
+ resource.attributes.telemetry@sdk@version +
+
+
+
+
+
+
+ + 0.14b0 + +
+
+
+
+
+
+
+
+
+
+
+
+
+ links +
+
+
+
+
+ + - + +
+
+
+
+
+
+
+
+
+
+ traceState +
+
+
+
+
+ + - + +
+
+
+
+
+
+
+
+
+
+
+
+
+`; exports[` spec renders the empty component 1`] = ` spec renders the empty component 1`] = ` event="keydown" handler={[Function]} /> - - -