Skip to content

Commit

Permalink
Test if access_key or secret_key details are found in pv pool backing…
Browse files Browse the repository at this point in the history
…store pod (red-hat-storage#7977)

Signed-off-by: Mahesh Shetty <[email protected]>
  • Loading branch information
mashetty330 authored Jul 28, 2023
1 parent a80b398 commit ef84de6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/manage/mcg/test_pv_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from ocs_ci.framework.pytest_customization.marks import (
tier2,
tier3,
bugzilla,
polarion_id,
bugzilla,
)
from ocs_ci.ocs.bucket_utils import (
wait_for_pv_backingstore,
Expand All @@ -18,6 +18,7 @@
Pod,
wait_for_pods_to_be_running,
get_pod_node,
get_pod_logs,
)
from ocs_ci.ocs.resources.objectbucket import OBC
from ocs_ci.ocs.constants import MIN_PV_BACKINGSTORE_SIZE_IN_GB, CEPHBLOCKPOOL_SC
Expand Down Expand Up @@ -151,6 +152,8 @@ def test_pv_scale_out(self, backingstore_factory):
), "Scale out PV Pool failed. "
logger.info("Scale out was successful")

@polarion_id("OCS-4929")
@bugzilla("2189866")
@pytest.mark.parametrize(
argnames=["bucketclass_dict"],
argvalues=[
Expand Down Expand Up @@ -226,6 +229,14 @@ def test_pvpool_resource_modifications(
label=pv_pod_label, namespace=config.ENV_DATA["cluster_namespace"]
):
pv_pod_obj.append(Pod(**pod))

# verify there is no dummy access_key, secret_key messages are seen in the pv pool pod
for pod in pv_pod_obj:
pod_logs = get_pod_logs(pod_name=pod.name)
assert ("access_key:" not in pod_logs) and (
"secret_key:" not in pod_logs
), f"access_key or secret_key are logged in the pv pool pod {pod.name} logs"

req_cpu = "400m"
req_mem = "600Mi"
lim_cpu = "500m"
Expand Down

0 comments on commit ef84de6

Please sign in to comment.