Skip to content

Commit

Permalink
For review only - test app to demonstrate esSupertest with SSL is wor…
Browse files Browse the repository at this point in the history
…king
  • Loading branch information
pheyos committed Feb 5, 2021
1 parent d18ee1b commit b525eed
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions x-pack/test/functional_with_es_ssl/apps/test_app/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { FtrProviderContext } from '../../ftr_provider_context';

export default ({ getService }: FtrProviderContext) => {
const esSupertest = getService('esSupertest');
const kbnSupertest = getService('supertest');

describe('Some test app', function () {
this.tags(['ciGroup13', 'test-app']);

it('should request the Kibana API successfully', async () => {
await kbnSupertest.get('/api/status').expect(200);
});

it('should request the ES API successfully', async () => {
await esSupertest.get(`/`).expect(200);
});
});
};
1 change: 1 addition & 0 deletions x-pack/test/functional_with_es_ssl/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
testFiles: [
resolve(__dirname, './apps/triggers_actions_ui'),
resolve(__dirname, './apps/uptime'),
resolve(__dirname, './apps/test_app'),
],
apps: {
...xpackFunctionalConfig.get('apps'),
Expand Down

0 comments on commit b525eed

Please sign in to comment.