[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:
Rickyanto Ang 2024-06-05 14:12:30 -07:00 committed by GitHub
parent dceae3e5c3
commit 3b88219aed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 4 deletions

View file

@ -192,3 +192,5 @@ export const AZURE_CREDENTIALS_TYPE_TO_FIELDS_MAP = {
managed_identity: [],
manual: [],
};
export const CLOUD_SECURITY_PLUGIN_VERSION = '1.8.1';

View file

@ -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 = [
{

View file

@ -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`,
],
},

View file

@ -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`,

View file

@ -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')],