Skip to content

Commit

Permalink
Fix APM E2E (elastic#113297)
Browse files Browse the repository at this point in the history
Add `?*` to the end of request aliases in instances table tests.

elastic#104301 upgraded Cypress to a newer version that required this, but the APM E2E tests were not run because there were no changes to any files in APM.
  • Loading branch information
smith authored and kibanamachine committed Sep 28, 2021
1 parent 9035128 commit 4f6f281
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,43 +16,43 @@ const serviceOverviewHref = url.format({

const apisToIntercept = [
{
endpoint: '/api/apm/services/opbeans-node/transactions/charts/latency',
endpoint: '/api/apm/services/opbeans-node/transactions/charts/latency?*',
name: 'latencyChartRequest',
},
{
endpoint: '/api/apm/services/opbeans-node/throughput',
endpoint: '/api/apm/services/opbeans-node/throughput?*',
name: 'throughputChartRequest',
},
{
endpoint: '/api/apm/services/opbeans-node/transactions/charts/error_rate',
endpoint: '/api/apm/services/opbeans-node/transactions/charts/error_rate?*',
name: 'errorRateChartRequest',
},
{
endpoint:
'/api/apm/services/opbeans-node/transactions/groups/detailed_statistics',
'/api/apm/services/opbeans-node/transactions/groups/detailed_statistics?*',
name: 'transactionGroupsDetailedRequest',
},
{
endpoint:
'/api/apm/services/opbeans-node/service_overview_instances/detailed_statistics',
'/api/apm/services/opbeans-node/service_overview_instances/detailed_statistics?*',
name: 'instancesDetailedRequest',
},
{
endpoint:
'/api/apm/services/opbeans-node/service_overview_instances/main_statistics',
'/api/apm/services/opbeans-node/service_overview_instances/main_statistics?*',
name: 'instancesMainStatisticsRequest',
},
{
endpoint: '/api/apm/services/opbeans-node/error_groups/main_statistics',
endpoint: '/api/apm/services/opbeans-node/error_groups/main_statistics?*',
name: 'errorGroupsMainStatisticsRequest',
},
{
endpoint: '/api/apm/services/opbeans-node/transaction/charts/breakdown',
endpoint: '/api/apm/services/opbeans-node/transaction/charts/breakdown?*',
name: 'transactonBreakdownRequest',
},
{
endpoint:
'/api/apm/services/opbeans-node/transactions/groups/main_statistics',
'/api/apm/services/opbeans-node/transactions/groups/main_statistics?*',
name: 'transactionsGroupsMainStatisticsRequest',
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,17 @@ const serviceOverviewHref = url.format({
const apisToIntercept = [
{
endpoint:
'/api/apm/services/opbeans-java/service_overview_instances/main_statistics',
'/api/apm/services/opbeans-java/service_overview_instances/main_statistics?*',
name: 'instancesMainRequest',
},
{
endpoint:
'/api/apm/services/opbeans-java/service_overview_instances/detailed_statistics',
'/api/apm/services/opbeans-java/service_overview_instances/detailed_statistics?*',
name: 'instancesDetailsRequest',
},
{
endpoint:
'/api/apm/services/opbeans-java/service_overview_instances/details/31651f3c624b81c55dd4633df0b5b9f9ab06b151121b0404ae796632cd1f87ad',
name: 'instanceDetailsRequest',
},
{
endpoint:
'/api/apm/services/opbeans-java/service_overview_instances/details/31651f3c624b81c55dd4633df0b5b9f9ab06b151121b0404ae796632cd1f87ad',
'/api/apm/services/opbeans-java/service_overview_instances/details/31651f3c624b81c55dd4633df0b5b9f9ab06b151121b0404ae796632cd1f87ad?*',
name: 'instanceDetailsRequest',
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('Service Overview', () => {
});

it('hides dependency tab when RUM service', () => {
cy.intercept('GET', '/api/apm/services/opbeans-rum/agent').as(
cy.intercept('GET', '/api/apm/services/opbeans-rum/agent?*').as(
'agentRequest'
);
cy.visit(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,30 @@ const serviceOverviewHref = url.format({

const apisToIntercept = [
{
endpoint: '/api/apm/services/opbeans-java/transactions/charts/latency',
endpoint: '/api/apm/services/opbeans-java/transactions/charts/latency?*',
name: 'latencyChartRequest',
},
{
endpoint: '/api/apm/services/opbeans-java/throughput',
endpoint: '/api/apm/services/opbeans-java/throughput?*',
name: 'throughputChartRequest',
},
{
endpoint: '/api/apm/services/opbeans-java/transactions/charts/error_rate',
endpoint: '/api/apm/services/opbeans-java/transactions/charts/error_rate?*',
name: 'errorRateChartRequest',
},
{
endpoint:
'/api/apm/services/opbeans-java/transactions/groups/detailed_statistics',
'/api/apm/services/opbeans-java/transactions/groups/detailed_statistics?*',
name: 'transactionGroupsDetailedRequest',
},
{
endpoint: '/api/apm/services/opbeans-java/error_groups/detailed_statistics',
endpoint:
'/api/apm/services/opbeans-java/error_groups/detailed_statistics?*',
name: 'errorGroupsDetailedRequest',
},
{
endpoint:
'/api/apm/services/opbeans-java/service_overview_instances/detailed_statistics',
'/api/apm/services/opbeans-java/service_overview_instances/detailed_statistics?*',
name: 'instancesDetailedRequest',
},
];
Expand Down

0 comments on commit 4f6f281

Please sign in to comment.