mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
- Adds a check to aiops API endpoints to only allow requests with active platinum license. - Adds integration tests for basic license where the endpoints should return permission denied. - Improved error handling: - Low level errors (like a non valid argument pushed to a stream) will now be logged to Kibana server's console, because the way HTTP streams work we cannot really emit a useful error to an already running stream to the client. So the stream will just abort but Kibana server will log an error. - Higher level errors on the application level (like when we find out an index does not exist to run the analysis) will be pushed to the stream now as an error type action and we can update the UI accordingly. Note this PR only updates the API and corresponding tests to support this, the UI doesn't make use of it yet.
16 lines
577 B
TypeScript
16 lines
577 B
TypeScript
/*
|
|
* 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 function ({ loadTestFile }: FtrProviderContext) {
|
|
describe('apis', function () {
|
|
loadTestFile(require.resolve('./aiops'));
|
|
loadTestFile(require.resolve('./transform'));
|
|
loadTestFile(require.resolve('./security_solution'));
|
|
});
|
|
}
|