Skip to content

Commit

Permalink
renaming archives
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Oct 6, 2021
1 parent 9489676 commit a281db3
Show file tree
Hide file tree
Showing 38 changed files with 156 additions and 149 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
*/

export default {
'apm_8.0.0': {
'apm_opbeans_8.0.0': {
start: '2021-08-03T06:50:15.910Z',
end: '2021-08-03T07:20:15.910Z',
},
'apm_data_generation_8.0.0': {
'apm_synthetic_8.0.0': {
start: '2021-10-05T13:21:00.000Z',
end: '2021-10-05T13:36:59.999Z',
},
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/apm_api_integration/common/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import { APMFtrConfigName } from '../configs';
import { FtrProviderContext } from './ftr_provider_context';

type ArchiveName =
| 'apm_8.0.0'
| 'apm_opbeans_8.0.0'
| '8.0.0'
| 'metrics_8.0.0'
| 'ml_8.0.0'
| 'observability_overview'
| 'rum_8.0.0'
| 'rum_test_data'
| 'apm_data_generation_8.0.0';
| 'apm_synthetic_8.0.0';

interface RunCondition {
config: APMFtrConfigName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { registry } from '../../common/registry';

export default function ApiTest({ getService }: FtrProviderContext) {
const apmApiSupertest = createApmApiSupertest(getService('supertest'));
const archiveName = 'apm_8.0.0';
const archiveName = 'apm_opbeans_8.0.0';
const { end } = archives[archiveName];
const start = new Date(Date.parse(end) - 600000).toISOString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { registry } from '../../common/registry';

export default function ApiTest({ getService }: FtrProviderContext) {
const supertest = getService('supertest');
const archiveName = 'apm_8.0.0';
const archiveName = 'apm_opbeans_8.0.0';
const range = archives_metadata[archiveName];

const url = format({
Expand Down Expand Up @@ -42,7 +42,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {

registry.when(
'correlations errors failed transactions with data and default args',
{ config: 'trial', archives: ['apm_8.0.0'] },
{ config: 'trial', archives: ['apm_opbeans_8.0.0'] },
() => {
type ResponseBody = APIReturnType<'GET /api/apm/correlations/errors/failed_transactions'>;
let response: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { registry } from '../../common/registry';

export default function ApiTest({ getService }: FtrProviderContext) {
const supertest = getService('supertest');
const archiveName = 'apm_8.0.0';
const archiveName = 'apm_opbeans_8.0.0';
const range = archives_metadata[archiveName];

const url = format({
Expand Down Expand Up @@ -42,7 +42,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {

registry.when(
'correlations errors overall with data and default args',
{ config: 'trial', archives: ['apm_8.0.0'] },
{ config: 'trial', archives: ['apm_opbeans_8.0.0'] },
() => {
type ResponseBody = APIReturnType<'GET /api/apm/correlations/errors/overall_timeseries'>;
let response: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { registry } from '../../common/registry';

export default function ApiTest({ getService }: FtrProviderContext) {
const supertest = getService('supertest');
const archiveName = 'apm_8.0.0';
const archiveName = 'apm_opbeans_8.0.0';
const range = archives_metadata[archiveName];

const url = format({
Expand Down Expand Up @@ -42,7 +42,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {

registry.when(
'correlations latency overall with data and default args',
{ config: 'trial', archives: ['apm_8.0.0'] },
{ config: 'trial', archives: ['apm_opbeans_8.0.0'] },
() => {
type ResponseBody = APIReturnType<'GET /api/apm/correlations/latency/overall_distribution'>;
let response: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { registry } from '../../common/registry';

export default function ApiTest({ getService }: FtrProviderContext) {
const supertest = getService('supertest');
const archiveName = 'apm_8.0.0';
const archiveName = 'apm_opbeans_8.0.0';
const range = archives_metadata[archiveName];

const url = format({
Expand Down Expand Up @@ -45,7 +45,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {

registry.when(
'correlations latency slow transactions with data and default args',
{ config: 'trial', archives: ['apm_8.0.0'] },
{ config: 'trial', archives: ['apm_opbeans_8.0.0'] },
() => {
type ResponseBody = APIReturnType<'GET /api/apm/correlations/latency/slow_transactions'>;
let response: {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/apm_api_integration/tests/inspect/inspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import archives_metadata from '../../common/fixtures/es_archiver/archives_metada
export default function customLinksTests({ getService }: FtrProviderContext) {
const supertestRead = createApmApiSupertest(getService('supertest'));

const archiveName = 'apm_8.0.0';
const archiveName = 'apm_opbeans_8.0.0';
const metadata = archives_metadata[archiveName];

registry.when('Inspect feature', { config: 'trial', archives: [archiveName] }, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {

registry.when(
'Observability overview when APM data is loaded',
{ config: 'basic', archives: ['apm_8.0.0'] },
{ config: 'basic', archives: ['apm_opbeans_8.0.0'] },
() => {
it('returns true when there is at least one document on transaction, error or metrics indices', async () => {
const response = await apmApiSupertest({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { roundNumber } from '../../utils';
export default function ApiTest({ getService }: FtrProviderContext) {
const supertest = getService('supertest');

const archiveName = 'apm_8.0.0';
const archiveName = 'apm_opbeans_8.0.0';
const metadata = archives_metadata[archiveName];

// url parameters
Expand Down
Loading

0 comments on commit a281db3

Please sign in to comment.