Skip to content

Commit 7eae6b9

Browse files
committed
Updated the API integration tests to check for new default fields and 15 buckets
1 parent cd3407e commit 7eae6b9

1 file changed

Lines changed: 27 additions & 21 deletions

File tree

x-pack/test/apm_api_integration/tests/correlations/slow_transactions.ts

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,35 +55,41 @@ export default function ApiTest({ getService }: FtrProviderContext) {
5555
it('returns significant terms', () => {
5656
const sorted = response.body?.significantTerms?.sort();
5757
expectSnapshot(sorted?.map((term) => term.fieldName)).toMatchInline(`
58-
Array [
59-
"user_agent.name",
60-
"url.domain",
61-
"host.ip",
62-
"service.node.name",
63-
"container.id",
64-
"url.domain",
65-
"user_agent.name",
66-
]
67-
`);
58+
Array [
59+
"user_agent.name",
60+
"url.domain",
61+
"host.ip",
62+
"service.node.name",
63+
"container.id",
64+
"url.domain",
65+
"host.ip",
66+
"service.node.name",
67+
"container.id",
68+
"user_agent.name",
69+
]
70+
`);
6871
});
6972

7073
it('returns a distribution per term', () => {
7174
expectSnapshot(response.body?.significantTerms?.map((term) => term.distribution.length))
7275
.toMatchInline(`
73-
Array [
74-
11,
75-
11,
76-
11,
77-
11,
78-
11,
79-
11,
80-
11,
81-
]
82-
`);
76+
Array [
77+
15,
78+
15,
79+
15,
80+
15,
81+
15,
82+
15,
83+
15,
84+
15,
85+
15,
86+
15,
87+
]
88+
`);
8389
});
8490

8591
it('returns overall distribution', () => {
86-
expectSnapshot(response.body?.overall?.distribution.length).toMatchInline(`11`);
92+
expectSnapshot(response.body?.overall?.distribution.length).toMatchInline(`15`);
8793
});
8894
});
8995
}

0 commit comments

Comments
 (0)