Skip to content

Commit

Permalink
kbn_archive date_nanos in context and discover
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Drengenberg committed Feb 16, 2022
1 parent 35511c1 commit 9986bb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/apps/context/_date_nanos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'context', 'timePicker', 'discover']);
const esArchiver = getService('esArchiver');

describe.only('context view for date_nanos', () => {
describe('context view for date_nanos', () => {
before(async function () {
await security.testUser.setRoles(['kibana_admin', 'kibana_date_nanos']);
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/date_nanos');
Expand Down
5 changes: 5 additions & 0 deletions test/functional/apps/discover/_date_nanos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
describe('date_nanos', function () {
before(async function () {
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/date_nanos');
await kibanaServer.savedObjects.clean({ types: ['search', 'index-pattern'] });
await kibanaServer.importExport.load(
'test/functional/fixtures/kbn_archiver/date_nanos'
);
await kibanaServer.uiSettings.replace({ defaultIndex: 'date-nanos' });
await security.testUser.setRoles(['kibana_admin', 'kibana_date_nanos']);
await PageObjects.common.navigateToApp('discover');
Expand All @@ -30,6 +34,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
after(async function unloadMakelogs() {
await security.testUser.restoreDefaults();
await esArchiver.unload('test/functional/fixtures/es_archiver/date_nanos');
await kibanaServer.savedObjects.clean({ types: ['search', 'index-pattern'] });
});

it('should show a timestamp with nanoseconds in the first result row', async function () {
Expand Down

0 comments on commit 9986bb6

Please sign in to comment.