kibana/x-pack/test/security_solution_endpoint/config.ts
David Sánchez d75df38786
[Security Solution][Endpoint] Displays Trusted apps card in policy fleet integration page - UI (#111708)
* Displays Trusted apps card in policy fleet integration page

* Fixes translation

* Use FF to display the card or not

* Revert FF to false by defaul

* Fix back external button props in router stats

* redesign TA card for fleet policy page

* Address pr comments. Added experimental feature singleton service. Added FTR test for TA card in fleet policy

* Change wrong fleet name and SIEM to Security Solutions

* Fix test-subject prop because test is failing

* Use different designs in fleet and integration. Pending to confirm by design team

* UI changes on summary cards

* Adds same card design in fleet policy and integration policy pages

* Fix ts error making prop as optional

* Use eui props for sizing. Use reverseRow to switch label/numbers depending on isSmall prop

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-23 15:06:40 +02:00

56 lines
1.9 KiB
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 { resolve } from 'path';
import { FtrConfigProviderContext } from '@kbn/test';
import { pageObjects } from './page_objects';
import { services } from './services';
import {
getRegistryUrlAsArray,
createEndpointDockerConfig,
} from '../security_solution_endpoint_api_int/registry';
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
const xpackFunctionalConfig = await readConfigFile(require.resolve('../functional/config.js'));
return {
...xpackFunctionalConfig.getAll(),
pageObjects,
testFiles: [resolve(__dirname, './apps/endpoint')],
dockerServers: createEndpointDockerConfig(),
junit: {
reportName: 'X-Pack Endpoint Functional Tests',
},
services,
apps: {
...xpackFunctionalConfig.get('apps'),
['securitySolutionManagement']: {
pathname: '/app/security/administration',
},
['security']: {
pathname: '/app/security',
},
},
kbnTestServer: {
...xpackFunctionalConfig.get('kbnTestServer'),
serverArgs: [
...xpackFunctionalConfig.get('kbnTestServer.serverArgs'),
// if you return an empty string here the kibana server will not start properly but an empty array works
...getRegistryUrlAsArray(),
// always install Endpoint package by default when Fleet sets up
`--xpack.fleet.packages.0.name=endpoint`,
`--xpack.fleet.packages.0.version=latest`,
// TODO: Remove feature flags once we're good to go
'--xpack.securitySolution.enableExperimental=["trustedAppsByPolicyEnabled"]',
],
},
layout: {
fixedHeaderHeight: 200,
},
};
}