mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
parent
73225daa87
commit
9851b7bcfa
15 changed files with 126 additions and 126 deletions
|
@ -17,16 +17,16 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
const es = getService('es');
|
||||
|
||||
describe('telemetry API', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('should increment the opt *in* counter in the .kibana/kql-telemetry document', async () => {
|
||||
await supertest
|
||||
|
|
|
@ -39,11 +39,11 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
);
|
||||
});
|
||||
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('should return 200 with individual responses', async () =>
|
||||
await supertest
|
||||
|
|
|
@ -15,16 +15,16 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
const kibanaServer = getService('kibanaServer');
|
||||
|
||||
describe('bulkUpdate', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('should return 200', async () => {
|
||||
const response = await supertest
|
||||
|
|
|
@ -24,11 +24,11 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
);
|
||||
});
|
||||
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('should return 200', async () => {
|
||||
await supertest
|
||||
|
|
|
@ -14,16 +14,16 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
const kibanaServer = getService('kibanaServer');
|
||||
|
||||
describe('delete', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('should return 200 when deleting a doc', async () =>
|
||||
await supertest
|
||||
|
|
|
@ -261,18 +261,18 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
describe('`has_reference` and `has_reference_operator` parameters', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/references',
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/references.json',
|
||||
{ space: SPACE_ID }
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/references',
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/references.json',
|
||||
{ space: SPACE_ID }
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('search for a reference', async () => {
|
||||
await supertest
|
||||
|
@ -333,18 +333,18 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
describe('searching for special characters', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/find_edgecases.json',
|
||||
{ space: SPACE_ID }
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/find_edgecases.json',
|
||||
{ space: SPACE_ID }
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('can search for objects with dashes', async () =>
|
||||
await supertest
|
||||
|
|
|
@ -23,11 +23,11 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
);
|
||||
});
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('should return 200', async () =>
|
||||
await supertest
|
||||
|
|
|
@ -43,16 +43,16 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
};
|
||||
|
||||
describe('with basic data existing', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('should return 415 when no file passed in', async () => {
|
||||
await supertest
|
||||
|
|
|
@ -22,16 +22,16 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
describe('with kibana index', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('should return 200', async () =>
|
||||
await supertest
|
||||
|
|
|
@ -14,16 +14,16 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
const kibanaServer = getService('kibanaServer');
|
||||
|
||||
describe('update', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
it('should return 200', async () => {
|
||||
await supertest
|
||||
.put(`/api/saved_objects/visualization/dd7caf20-9efd-11e7-acb3-3dab96693fab`)
|
||||
|
|
|
@ -25,16 +25,16 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
describe('with kibana index', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('should return 200 with individual responses', async () =>
|
||||
await supertest
|
||||
|
@ -93,16 +93,16 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
describe('`hasReference` and `hasReferenceOperator` parameters', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/references.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/references.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('search for a reference', async () => {
|
||||
await supertest
|
||||
|
|
|
@ -18,16 +18,16 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
const existingObject = 'visualization/dd7caf20-9efd-11e7-acb3-3dab96693fab';
|
||||
const nonexistentObject = 'wigwags/foo';
|
||||
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('should return 200 for object that exists and inject metadata', async () =>
|
||||
await supertest
|
||||
|
|
|
@ -43,16 +43,16 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
describe('relationships', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/management/saved_objects/relationships.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/management/saved_objects/relationships.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
const baseApiUrl = `/api/kibana/management/saved_objects/relationships`;
|
||||
const defaultTypes = ['visualization', 'index-pattern', 'search', 'dashboard'];
|
||||
|
|
|
@ -13,16 +13,16 @@ export default function ({ getService }) {
|
|||
const kibanaServer = getService('kibanaServer');
|
||||
|
||||
describe('url shortener', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
it('generates shortened urls', async () => {
|
||||
const resp = await supertest
|
||||
|
|
|
@ -47,16 +47,16 @@ export default function ({ getService }) {
|
|||
const kibanaServer = getService('kibanaServer');
|
||||
|
||||
describe('kibana stats api', () => {
|
||||
before(() =>
|
||||
kibanaServer.importExport.load(
|
||||
before(async () => {
|
||||
await kibanaServer.importExport.load(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
after(() =>
|
||||
kibanaServer.importExport.unload(
|
||||
);
|
||||
});
|
||||
after(async () => {
|
||||
await kibanaServer.importExport.unload(
|
||||
'test/api_integration/fixtures/kbn_archiver/saved_objects/basic.json'
|
||||
)
|
||||
);
|
||||
);
|
||||
});
|
||||
|
||||
describe('basic', () => {
|
||||
it('should return the stats without cluster_uuid with no query string params', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue