Skip to content

Commit d9b5162

Browse files
committed
PR comments + test fixes
1 parent a7accad commit d9b5162

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

src/plugins/management/public/management_service.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ test('Provides default sections', () => {
2929
() => {},
3030
coreMock.createSetup().getStartServices
3131
);
32-
expect(service.getAllSections().length).toEqual(3);
32+
expect(service.getAllSections().length).toEqual(2);
3333
expect(service.getSection('kibana')).not.toBeUndefined();
34-
expect(service.getSection('logstash')).not.toBeUndefined();
3534
expect(service.getSection('elasticsearch')).not.toBeUndefined();
3635
});
3736

x-pack/plugins/logstash/public/application/pipeline_edit_view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const usePipeline = (
2929
id?: string
3030
) => {
3131
const mounted = usePromise();
32-
const [pipeline, setPipeline] = useState<any | null>(null);
32+
const [pipeline, setPipeline] = useState<any>(null);
3333

3434
useLayoutEffect(() => {
3535
(async () => {

x-pack/plugins/logstash/public/plugin.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import {
1717
import { LicensingPluginSetup } from '../../licensing/public';
1818
import { ManagementSetup } from '../../../../src/plugins/management/public';
1919

20-
// @ts-ignore
21-
import { PLUGIN } from '../common/constants';
2220
// @ts-ignore
2321
import { LogstashLicenseService } from './services';
2422

x-pack/test/api_integration/apis/logstash/pipeline/delete.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export default function({ getService }: FtrProviderContext) {
2020
.send({
2121
id: 'fast_generator',
2222
description: 'foobar baz',
23-
username: 'seger',
2423
pipeline: 'input { generator {} }\n\n output { stdout {} }',
2524
})
2625
.expect(204);

x-pack/test/api_integration/apis/logstash/pipeline/save.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export default function({ getService }: FtrProviderContext) {
2828
.send({
2929
id: 'fast_generator',
3030
description: 'foobar baz',
31-
username: 'seger',
3231
pipeline: 'input { generator {} }\n\n output { stdout {} }',
3332
})
3433
.expect(204);

0 commit comments

Comments
 (0)