Skip to content

Commit 96dd80e

Browse files
committed
reverting and skipping
1 parent bc664b2 commit 96dd80e

File tree

1 file changed

+10
-6
lines changed
  • x-pack/solutions/security/test/serverless/functional/test_suites/ftr/cloud_security_posture/mki_only/agentless

1 file changed

+10
-6
lines changed

x-pack/solutions/security/test/serverless/functional/test_suites/ftr/cloud_security_posture/mki_only/agentless/mki_create_agent.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import expect from '@kbn/expect';
99
import {
1010
AWS_PROVIDER_TEST_SUBJ,
1111
AWS_SINGLE_ACCOUNT_TEST_SUBJ,
12+
AWS_INPUT_TEST_SUBJECTS,
1213
} from '@kbn/cloud-security-posture-common';
1314
import type { FtrProviderContext } from '../../../../../ftr_provider_context';
1415

@@ -32,7 +33,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
3233
cisIntegration = pageObjects.cisAddIntegration;
3334
});
3435

35-
it(`should create agentless-agent`, async () => {
36+
it.skip(`should create agentless-agent`, async () => {
3637
const integrationPolicyName = `cloud_security_posture-${new Date().toISOString()}`;
3738
await cisIntegration.navigateToAddIntegrationCspmPage();
3839

@@ -42,16 +43,19 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
4243
await cisIntegration.inputIntegrationName(integrationPolicyName);
4344

4445
await cisIntegration.selectSetupTechnology('agentless');
46+
await cisIntegration.selectAwsCredentials('direct');
4547

4648
await pageObjects.header.waitUntilLoadingHasFinished();
4749

48-
// With cloud connectors enabled, we need to fill in Role ARN and External ID instead of direct access keys
49-
if (process.env.CSPM_AWS_ROLE_ARN && process.env.CSPM_AWS_EXTERNAL_ID) {
50-
await cisIntegration.fillInTextField('awsRoleArnInput', process.env.CSPM_AWS_ROLE_ARN);
50+
if (process.env.CSPM_AWS_ACCOUNT_ID && process.env.CSPM_AWS_SECRET_KEY) {
51+
await cisIntegration.fillInTextField(
52+
AWS_INPUT_TEST_SUBJECTS.DIRECT_ACCESS_KEY_ID,
53+
process.env.CSPM_AWS_ACCOUNT_ID
54+
);
5155

5256
await cisIntegration.fillInTextField(
53-
'awsCloudConnectorExternalId',
54-
process.env.CSPM_AWS_EXTERNAL_ID
57+
AWS_INPUT_TEST_SUBJECTS.DIRECT_ACCESS_SECRET_KEY,
58+
process.env.CSPM_AWS_SECRET_KEY
5559
);
5660
}
5761

0 commit comments

Comments
 (0)