- {hasHeaders && Object.keys(headers || {}).length > 0 ? (
-
+ {Object.keys(headers || {}).length > 0 ? (
+ <>
@@ -351,10 +353,10 @@ const WebhookActionConnectorFields: React.FunctionComponent
{headersList}
-
+ >
) : null}
- {headerControl}
+ {hasHeaders && headerControl}
diff --git a/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/alerts.ts b/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/alerts.ts
index 0f339154bd948..db1e59746162b 100644
--- a/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/alerts.ts
+++ b/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/alerts.ts
@@ -30,7 +30,8 @@ export default function alertTests({ getService }: FtrProviderContext) {
const esTestIndexTool = new ESTestIndexTool(es, retry);
const taskManagerUtils = new TaskManagerUtils(es, retry);
- describe('alerts', () => {
+ // FLAKY: https://github.com/elastic/kibana/issues/72207
+ describe.skip('alerts', () => {
const authorizationIndex = '.kibana-test-authorization';
const objectRemover = new ObjectRemover(supertest);
diff --git a/x-pack/test/api_integration/apis/fleet/install.ts b/x-pack/test/api_integration/apis/fleet/install.ts
index 3a122463fae55..59b040e30fb48 100644
--- a/x-pack/test/api_integration/apis/fleet/install.ts
+++ b/x-pack/test/api_integration/apis/fleet/install.ts
@@ -6,11 +6,15 @@
import expect from '@kbn/expect';
import { FtrProviderContext } from '../../ftr_provider_context';
+import { setupIngest } from './agents/services';
-export default function ({ getService }: FtrProviderContext) {
+export default function (providerContext: FtrProviderContext) {
+ const { getService } = providerContext;
const supertest = getService('supertest');
describe('fleet_install', () => {
+ setupIngest(providerContext);
+
it('should return a 400 if we try download an install script for a not supported OS', async () => {
await supertest.get(`/api/ingest_manager/fleet/install/gameboy`).expect(400);
});
diff --git a/x-pack/test/api_integration/apis/fleet/unenroll_agent.ts b/x-pack/test/api_integration/apis/fleet/unenroll_agent.ts
index bc6c44e590cc4..4e1443ad1fc68 100644
--- a/x-pack/test/api_integration/apis/fleet/unenroll_agent.ts
+++ b/x-pack/test/api_integration/apis/fleet/unenroll_agent.ts
@@ -16,7 +16,8 @@ export default function (providerContext: FtrProviderContext) {
const supertest = getService('supertest');
const esClient = getService('es');
- describe('fleet_unenroll_agent', () => {
+ // FLAKY: https://github.com/elastic/kibana/issues/64696
+ describe.skip('fleet_unenroll_agent', () => {
let accessAPIKeyId: string;
let outputAPIKeyId: string;
before(async () => {
diff --git a/x-pack/test/api_integration/apis/lists/create_exception_list_item.ts b/x-pack/test/api_integration/apis/lists/create_exception_list_item.ts
index 41f2a2dd2e3f5..bf35a6283aae5 100644
--- a/x-pack/test/api_integration/apis/lists/create_exception_list_item.ts
+++ b/x-pack/test/api_integration/apis/lists/create_exception_list_item.ts
@@ -6,6 +6,7 @@
import expect from '@kbn/expect/expect.js';
import { FtrProviderContext } from '../../ftr_provider_context';
+import { ENDPOINT_LIST_ID } from '../../../../plugins/lists/common';
export default function ({ getService }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
@@ -20,7 +21,7 @@ export default function ({ getService }: FtrProviderContext) {
namespace_type: 'agnostic',
description: 'bad endpoint item for testing',
name: 'bad endpoint item',
- list_id: 'endpoint_list',
+ list_id: ENDPOINT_LIST_ID,
type: 'simple',
entries: [
{
@@ -50,7 +51,7 @@ export default function ({ getService }: FtrProviderContext) {
namespace_type: 'agnostic',
description: 'bad endpoint item for testing',
name: 'bad endpoint item',
- list_id: 'endpoint_list',
+ list_id: ENDPOINT_LIST_ID,
type: 'simple',
entries: [
{
diff --git a/x-pack/test/functional/apps/discover/async_scripted_fields.js b/x-pack/test/functional/apps/discover/async_scripted_fields.js
index 46848b1db0ef4..33a64e4f9cdd3 100644
--- a/x-pack/test/functional/apps/discover/async_scripted_fields.js
+++ b/x-pack/test/functional/apps/discover/async_scripted_fields.js
@@ -14,9 +14,9 @@ export default function ({ getService, getPageObjects }) {
const esArchiver = getService('esArchiver');
const log = getService('log');
const testSubjects = getService('testSubjects');
-
const PageObjects = getPageObjects(['common', 'settings', 'discover', 'timePicker']);
const queryBar = getService('queryBar');
+ const security = getService('security');
describe('async search with scripted fields', function () {
this.tags(['skipFirefox']);
@@ -24,6 +24,7 @@ export default function ({ getService, getPageObjects }) {
before(async function () {
await esArchiver.load('kibana_scripted_fields_on_logstash');
await esArchiver.loadIfNeeded('logstash_functional');
+ await security.testUser.setRoles(['test_logstash_reader', 'global_discover_read']);
// changing the timepicker default here saves us from having to set it in Discover (~8s)
await kibanaServer.uiSettings.update({
'timepicker:timeDefaults':
@@ -36,6 +37,7 @@ export default function ({ getService, getPageObjects }) {
await kibanaServer.uiSettings.update({});
await esArchiver.unload('logstash_functional');
await esArchiver.load('empty_kibana');
+ await security.testUser.restoreDefaults();
});
it('query should show failed shards pop up', async function () {