Skip to content

Commit

Permalink
[Cloud Security] Add AWS account credentials for the Agentless tests …
Browse files Browse the repository at this point in the history
…in Serverless Quality Gates (#199547)

(cherry picked from commit 9670a74)
  • Loading branch information
seanrathier committed Nov 13, 2024
1 parent 6e12600 commit a1a2284
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await cisIntegration.selectSetupTechnology('agentless');
await cisIntegration.selectAwsCredentials('direct');

if (
process.env.TEST_CLOUD &&
process.env.CSPM_AWS_ACCOUNT_ID &&
process.env.CSPM_AWS_SECRET_KEY
) {
await cisIntegration.fillInTextField(
cisIntegration.testSubjectIds.DIRECT_ACCESS_KEY_ID_TEST_ID,
process.env.CSPM_AWS_ACCOUNT_ID
);

await cisIntegration.fillInTextField(
cisIntegration.testSubjectIds.DIRECT_ACCESS_SECRET_KEY_TEST_ID,
process.env.CSPM_AWS_SECRET_KEY
);
}

await pageObjects.header.waitUntilLoadingHasFinished();

await cisIntegration.clickSaveButton();
Expand Down

0 comments on commit a1a2284

Please sign in to comment.