Skip to content

Commit

Permalink
join create and get ids tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Nov 9, 2020
1 parent c740c8c commit 8ac3829
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export class IndexPatternsTestPlugin
router.get(
{ path: '/api/index-patterns-plugin/get-all', validate: false },
async (context, req, res) => {
console.log('get /api/index-patterns-plugin/get-all');
const [{ savedObjects, elasticsearch }, { data }] = await core.getStartServices();
const savedObjectsClient = savedObjects.getScopedClient(req);
const service = await data.indexPatterns.indexPatternsServiceFactory(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import '../../plugins/core_provider_plugin/types';
export default function ({ getService }: PluginFunctionalProviderContext) {
const supertest = getService('supertest');

// skipping the tests as it deletes index patterns created by other test causing unexpected failures
// https://github.com/elastic/kibana/issues/79886
describe('index patterns', function () {
let indexPatternId = '';

Expand All @@ -44,12 +42,9 @@ export default function ({ getService }: PluginFunctionalProviderContext) {
expect(body.title).to.equal(title);
expect(body.fields.length).to.equal(15);
expect(body.fieldFormatMap).to.eql(fieldFormats);
});

it('can get all ids', async () => {
await new Promise((resolve) => setTimeout(resolve, 1000 * 5));
const response = await supertest.get('/api/index-patterns-plugin/get-all');
// console.log('***************************', response.body);
expect(response.status).to.equal(200);
expect(response.body.length > 0).to.equal(true);
});
Expand Down

0 comments on commit 8ac3829

Please sign in to comment.