Skip to content

Commit e133bbf

Browse files
committed
Merge branch 'master' into uptime_np-routing
2 parents fb56268 + 931cf22 commit e133bbf

File tree

56 files changed

+178
-182
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+178
-182
lines changed

test/functional/services/remote/webdriver.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,20 @@ async function attemptToCreateCommand(
136136
// See: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode
137137
firefoxOptions.headless();
138138
}
139+
140+
// Windows issue with stout socket https://github.com/elastic/kibana/issues/52053
141+
if (process.platform === 'win32') {
142+
const session = await new Builder()
143+
.forBrowser(browserType)
144+
.setFirefoxOptions(firefoxOptions)
145+
.setFirefoxService(new firefox.ServiceBuilder(geckoDriver.path))
146+
.build();
147+
return {
148+
session,
149+
consoleLog$: Rx.EMPTY,
150+
};
151+
}
152+
139153
const { input, chunk$, cleanup } = await createStdoutSocket();
140154
lifecycle.on('cleanup', cleanup);
141155

x-pack/legacy/plugins/uptime/public/components/functional/monitor_list/monitor_list_drawer/__tests__/__snapshots__/most_recent_error.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/legacy/plugins/uptime/public/components/functional/monitor_list/monitor_list_drawer/__tests__/most_recent_error.test.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import { shallowWithIntl, renderWithIntl } from 'test_utils/enzyme_helpers';
88
import React from 'react';
9+
import moment from 'moment';
910
import { BrowserRouter as Router } from 'react-router-dom';
1011
import { MostRecentError } from '../most_recent_error';
1112
import { MonitorDetails, MonitorError } from '../../../../../../common/runtime_types';
@@ -14,6 +15,10 @@ describe('MostRecentError component', () => {
1415
let monitorDetails: MonitorDetails;
1516
let monitorError: MonitorError;
1617

18+
beforeAll(() => {
19+
moment.prototype.fromNow = jest.fn(() => '5 days ago');
20+
});
21+
1722
beforeEach(() => {
1823
monitorError = {
1924
type: 'io',
@@ -39,7 +44,7 @@ describe('MostRecentError component', () => {
3944
expect(component).toMatchSnapshot();
4045
});
4146

42-
it.skip('renders properly with empty data', () => {
47+
it('renders properly with mock data', () => {
4348
const component = renderWithIntl(
4449
<Router>
4550
<MostRecentError

x-pack/test/alerting_api_integration/security_and_spaces/tests/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { SpacesService, SecurityService } from '../../../common/services';
87
import { FtrProviderContext } from '../../common/ftr_provider_context';
98
import { isCustomRoleSpecification } from '../../common/types';
109
import { Spaces, Users } from '../scenarios';
@@ -14,8 +13,8 @@ export default function alertingApiIntegrationTests({
1413
loadTestFile,
1514
getService,
1615
}: FtrProviderContext) {
17-
const securityService: SecurityService = getService('security');
18-
const spacesService: SpacesService = getService('spaces');
16+
const securityService = getService('security');
17+
const spacesService = getService('spaces');
1918
const esArchiver = getService('esArchiver');
2019

2120
describe('alerting api integration security and spaces enabled', function() {

x-pack/test/alerting_api_integration/spaces_only/tests/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { SpacesService } from '../../../common/services';
87
import { FtrProviderContext } from '../../common/ftr_provider_context';
98
import { Spaces } from '../scenarios';
109

@@ -13,7 +12,7 @@ export default function alertingApiIntegrationTests({
1312
loadTestFile,
1413
getService,
1514
}: FtrProviderContext) {
16-
const spacesService: SpacesService = getService('spaces');
15+
const spacesService = getService('spaces');
1716
const esArchiver = getService('esArchiver');
1817

1918
describe('alerting api integration spaces only', function() {

x-pack/test/api_integration/apis/apm/feature_controls.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
*/
66

77
import expect from '@kbn/expect';
8-
import { SecurityService, SpacesService } from '../../../common/services';
98
import { FtrProviderContext } from '../../ftr_provider_context';
109

1110
export default function featureControlsTests({ getService }: FtrProviderContext) {
1211
const supertest = getService('supertest');
1312
const supertestWithoutAuth = getService('supertestWithoutAuth');
14-
const security: SecurityService = getService('security');
15-
const spaces: SpacesService = getService('spaces');
13+
const security = getService('security');
14+
const spaces = getService('spaces');
1615
const log = getService('log');
1716

1817
const start = encodeURIComponent(new Date(Date.now() - 10000).toISOString());

x-pack/test/api_integration/apis/console/feature_controls.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { SecurityService, SpacesService } from '../../../common/services';
87
import { FtrProviderContext } from '../../ftr_provider_context';
98

109
export default function securityTests({ getService }: FtrProviderContext) {
1110
const supertest = getService('supertestWithoutAuth');
12-
const security: SecurityService = getService('security');
13-
const spaces: SpacesService = getService('spaces');
11+
const security = getService('security');
12+
const spaces = getService('spaces');
1413

1514
describe('/api/console/proxy', () => {
1615
it('cannot be accessed by an anonymous user', async () => {

x-pack/test/api_integration/apis/features/features/features.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
*/
66

77
import expect from '@kbn/expect';
8-
import { SecurityService } from '../../../../common/services';
98
import { Feature } from '../../../../../plugins/features/server';
109
import { FtrProviderContext } from '../../../ftr_provider_context';
1110

1211
export default function({ getService }: FtrProviderContext) {
1312
const supertest = getService('supertest');
1413

1514
const supertestWithoutAuth = getService('supertestWithoutAuth');
16-
const security: SecurityService = getService('security');
15+
const security = getService('security');
1716

1817
describe('/api/features', () => {
1918
describe('with the "global all" privilege', () => {

x-pack/test/api_integration/apis/infra/feature_controls.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import expect from '@kbn/expect';
88
import gql from 'graphql-tag';
9-
import { SecurityService, SpacesService } from '../../../common/services';
109
import { FtrProviderContext } from '../../ftr_provider_context';
1110

1211
const introspectionQuery = gql`
@@ -21,8 +20,8 @@ const introspectionQuery = gql`
2120

2221
export default function({ getService }: FtrProviderContext) {
2322
const supertest = getService('supertestWithoutAuth');
24-
const security: SecurityService = getService('security');
25-
const spaces: SpacesService = getService('spaces');
23+
const security = getService('security');
24+
const spaces = getService('spaces');
2625
const clientFactory = getService('infraOpsGraphQLClientFactory');
2726

2827
const expectGraphQL404 = (result: any) => {

x-pack/test/api_integration/apis/management/advanced_settings/feature_controls.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66

77
import expect from '@kbn/expect';
88
import { SuperTest } from 'supertest';
9-
import { SecurityService, SpacesService } from '../../../../common/services';
109
import { FtrProviderContext } from '../../../ftr_provider_context';
1110

1211
export default function featureControlsTests({ getService }: FtrProviderContext) {
1312
const supertest: SuperTest<any> = getService('supertestWithoutAuth');
14-
const security: SecurityService = getService('security');
15-
const spaces: SpacesService = getService('spaces');
13+
const security = getService('security');
14+
const spaces = getService('spaces');
1615

1716
const expect403 = (result: any) => {
1817
expect(result.error).to.be(undefined);

0 commit comments

Comments
 (0)