Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Automation for encryption dashboard summary #11043

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paraggit
Copy link
Contributor

@paraggit paraggit commented Dec 12, 2024

Test Automation for encryption dashboard summary.

Following encryption summary details validated against storagecluster and noobaa spec.

Object Storage Encryption Summary details

  1. Navigate to object details page
  2. Open encryption details.
  3. verify encryption data with the nooba and storagecluster spec.
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Screenshot 2024-12-13 at 7 57 54 PM

Block And File Encryption summary details

  1. Navigate to file and block details page
  2. Open encryption details.
  3. verify encryption data with the nooba and storagecluster spec.
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Screenshot 2024-12-13 at 7 57 34 PM

@paraggit paraggit requested review from a team as code owners December 12, 2024 18:54
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines label Dec 12, 2024
Copy link

openshift-ci bot commented Dec 12, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: paraggit

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@paraggit paraggit changed the title [WIP] Test Automation for encryption dashboard summary Test Automation for encryption dashboard summary Dec 13, 2024
@paraggit paraggit force-pushed the encryption_configuration_dashboard branch from a51d176 to b4bee92 Compare December 15, 2024 03:49
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR validation

Cluster Name:
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/functional/encryption/test_encryption_configuration_dashboard.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master

Job FAILED (installation failed, tests not executed).

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR validation

Cluster Name:
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/functional/encryption/test_encryption_configuration_dashboard.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master

Job FAILED (installation failed, tests not executed).

self.validation_loc["encryption_summary"]["file_and_block"]["enabled"],
enable_screenshot=True,
)
from time import sleep
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There must be some other way to check it.
You can try this https://github.com/red-hat-storage/ocs-ci/blob/master/ocs_ci/ocs/ui/base_ui.py#L490 or other wait functions for elements.

root_element = root_elements[0]

# Function to extract status from an SVG element
def extract_status(svg_path):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc for the function and if it can help other tests please move it.

sleep(3)

# Context and status mappings
context_map = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is constant we can move it to constants.

enable_screenshot=True,
)

time.sleep(3)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

from ocs_ci.helpers.helpers import storagecluster_independent_check


@green_squad
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If test is only for encryption deployments we need to mark it.

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR validation

Cluster Name:
Cluster Configuration:
PR Test Suite: tier1
PR Test Path: tests/functional/encryption/test_encryption_configuration_dashboard.py
Additional Test Params:
OCP VERSION: 4.18
OCS VERSION: 4.18
tested against branch: master

Job UNSTABLE (some or all tests failed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L PR that changes 100-499 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants