Skip to content

Commit

Permalink
[Cloud Security] Update CSP Version to 1.8.1 for Test (elastic#184492)
Browse files Browse the repository at this point in the history
## Summary

With 8.13 released, we want to make sure our CSP is using the latest CSP
version for our test environment
  • Loading branch information
animehart authored Jun 5, 2024
1 parent dceae3e commit 3b88219
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugins/cloud_security_posture/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,5 @@ export const AZURE_CREDENTIALS_TYPE_TO_FIELDS_MAP = {
managed_identity: [],
manual: [],
};

export const CLOUD_SECURITY_PLUGIN_VERSION = '1.8.1';
Original file line number Diff line number Diff line change
Expand Up @@ -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[]) => {
Expand Down Expand Up @@ -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 = [
{
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/cloud_security_posture_api/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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`,
],
},
Expand Down
3 changes: 2 additions & 1 deletion x-pack/test/cloud_security_posture_functional/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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')],
Expand Down

0 comments on commit 3b88219

Please sign in to comment.