mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Cloud Security] Unskipped and fixed flaky agentless test (#208844)
This commit is contained in:
parent
bd31407be5
commit
df4a6d7ce3
2 changed files with 10 additions and 5 deletions
|
@ -28,7 +28,6 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
'cisAddIntegration',
|
||||
]);
|
||||
|
||||
// Failing: See https://github.com/elastic/kibana/issues/208495
|
||||
describe('Agentless cloud', function () {
|
||||
let cisIntegration: typeof pageObjects.cisAddIntegration;
|
||||
let cisIntegrationAws: typeof pageObjects.cisAddIntegration.cisAws;
|
||||
|
@ -57,8 +56,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
await cisIntegration.inputIntegrationName(integrationPolicyName);
|
||||
|
||||
await cisIntegration.selectSetupTechnology('agentless');
|
||||
await cisIntegration.selectAwsCredentials('direct');
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await cisIntegration.selectAwsCredentials('direct');
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await cisIntegration.fillInTextField('awsDirectAccessKeyId', 'access_key_id');
|
||||
|
@ -97,8 +97,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
await cisIntegration.inputIntegrationName(integrationPolicyName);
|
||||
|
||||
await cisIntegration.selectSetupTechnology('agentless');
|
||||
await cisIntegration.selectAwsCredentials('direct');
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await cisIntegration.selectAwsCredentials('direct');
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await cisIntegration.fillInTextField('awsDirectAccessKeyId', 'access_key_id');
|
||||
|
@ -128,6 +129,8 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
await cisIntegration.clickOptionButton(AWS_SINGLE_ACCOUNT_TEST_ID);
|
||||
|
||||
await cisIntegration.inputIntegrationName(integrationPolicyName);
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await cisIntegration.selectSetupTechnology('agent-based');
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
|
||||
const POLICY_NAME_FIELD = 'createAgentPolicyNameField';
|
||||
|
||||
// Failing: See https://github.com/elastic/kibana/issues/208533
|
||||
describe('Agentless Security Posture Integration Options', function () {
|
||||
let cisIntegration: typeof pageObjects.cisAddIntegration;
|
||||
|
||||
|
@ -41,6 +40,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
await cisIntegration.navigateToAddIntegrationWithVersionPage(
|
||||
AGENTLESS_SECURITY_POSTURE_PACKAGE_VERSION
|
||||
);
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await cisIntegration.clickOptionButton(KSPM_RADIO_OPTION);
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
@ -59,6 +59,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
await cisIntegration.navigateToAddIntegrationWithVersionPage(
|
||||
AGENTLESS_SECURITY_POSTURE_PACKAGE_VERSION
|
||||
);
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await cisIntegration.clickOptionButton(CNVM_RADIO_OPTION);
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
@ -72,10 +73,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
expect(hasAgentBased).to.be(true);
|
||||
});
|
||||
|
||||
it.skip(`should show cspm with agentless option`, async () => {
|
||||
it(`should show cspm with agentless option`, async () => {
|
||||
await cisIntegration.navigateToAddIntegrationWithVersionPage(
|
||||
AGENTLESS_SECURITY_POSTURE_PACKAGE_VERSION
|
||||
);
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
||||
await cisIntegration.clickOptionButton(CSPM_RADIO_OPTION);
|
||||
await pageObjects.header.waitUntilLoadingHasFinished();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue