mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[Cloud Security] Update CSP Version to 1.8.1 for Test (#184492)
## Summary With 8.13 released, we want to make sure our CSP is using the latest CSP version for our test environment
This commit is contained in:
parent
dceae3e5c3
commit
3b88219aed
5 changed files with 10 additions and 4 deletions
|
@ -192,3 +192,5 @@ export const AZURE_CREDENTIALS_TYPE_TO_FIELDS_MAP = {
|
|||
managed_identity: [],
|
||||
manual: [],
|
||||
};
|
||||
|
||||
export const CLOUD_SECURITY_PLUGIN_VERSION = '1.8.1';
|
||||
|
|
|
@ -10,6 +10,7 @@ import { Client } from '@elastic/elasticsearch';
|
|||
import expect from '@kbn/expect';
|
||||
import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common';
|
||||
import type { IndexDetails } from '@kbn/cloud-security-posture-plugin/common/types_old';
|
||||
import { CLOUD_SECURITY_PLUGIN_VERSION } from '@kbn/cloud-security-posture-plugin/common/constants';
|
||||
import { SecurityService } from '../../../../../test/common/services/security/security';
|
||||
|
||||
export const deleteIndex = (es: Client, indexToBeDeleted: string[]) => {
|
||||
|
@ -51,7 +52,7 @@ export async function createPackagePolicy(
|
|||
posture: string,
|
||||
packageName: string = 'cloud_security_posture-1'
|
||||
) {
|
||||
const version = '1.7.1';
|
||||
const version = CLOUD_SECURITY_PLUGIN_VERSION;
|
||||
const title = 'Security Posture Management';
|
||||
const streams = [
|
||||
{
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
import type { FtrConfigProviderContext } from '@kbn/test';
|
||||
import { CLOUD_SECURITY_PLUGIN_VERSION } from '@kbn/cloud-security-posture-plugin/common/constants';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const xpackFunctionalConfig = await readConfigFile(
|
||||
|
@ -43,7 +44,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
* 2. merge the updated version number change to kibana
|
||||
*/
|
||||
`--xpack.fleet.packages.0.name=cloud_security_posture`,
|
||||
`--xpack.fleet.packages.0.version=1.5.0`,
|
||||
`--xpack.fleet.packages.0.version=${CLOUD_SECURITY_PLUGIN_VERSION}`,
|
||||
// `--xpack.fleet.registryUrl=https://localhost:8080`,
|
||||
],
|
||||
},
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import { resolve } from 'path';
|
||||
import type { FtrConfigProviderContext } from '@kbn/test';
|
||||
import { CLOUD_SECURITY_PLUGIN_VERSION } from '@kbn/cloud-security-posture-plugin/common/constants';
|
||||
import { pageObjects } from './page_objects';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
|
@ -38,7 +39,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|||
* 2. merge the updated version number change to kibana
|
||||
*/
|
||||
`--xpack.fleet.packages.0.name=cloud_security_posture`,
|
||||
`--xpack.fleet.packages.0.version=1.7.4`,
|
||||
`--xpack.fleet.packages.0.version=${CLOUD_SECURITY_PLUGIN_VERSION}`,
|
||||
// `--xpack.fleet.registryUrl=https://localhost:8080`,
|
||||
`--xpack.fleet.agents.fleet_server.hosts=["https://ftr.kibana:8220"]`,
|
||||
`--xpack.fleet.internal.fleetServerStandalone=true`,
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { CLOUD_SECURITY_PLUGIN_VERSION } from '@kbn/cloud-security-posture-plugin/common/constants';
|
||||
import { createTestConfig } from '../../config.base';
|
||||
|
||||
export default createTestConfig({
|
||||
|
@ -14,7 +15,7 @@ export default createTestConfig({
|
|||
},
|
||||
kbnServerArgs: [
|
||||
`--xpack.fleet.packages.0.name=cloud_security_posture`,
|
||||
`--xpack.fleet.packages.0.version=1.5.2`,
|
||||
`--xpack.fleet.packages.0.version=${CLOUD_SECURITY_PLUGIN_VERSION}`,
|
||||
],
|
||||
// load tests in the index file
|
||||
testFiles: [require.resolve('./ftr/cloud_security_posture')],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue