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

Verify that default noobaa backingstore uses rgw endpoint on provider #9243

Merged
merged 6 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ocs_ci/ocs/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
CEPHBLOCKPOOL_THICK = "CephBlockPoolThick"
CEPHBLOCKPOOL_SC = "ocs-storagecluster-ceph-rbd"
CEPHFILESYSTEM_SC = "ocs-storagecluster-cephfs"
CEPHOBJECTSTORE = "CephObjectStore"
LVM_SC = "lvms-vg1"
NOOBAA_SC = "openshift-storage.noobaa.io"
LOCALSTORAGE_SC = "localblock"
Expand Down
41 changes: 41 additions & 0 deletions tests/functional/object/mcg/test_provider_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import logging

from ocs_ci.framework.pytest_customization.marks import (
tier1,
red_squad,
runs_on_provider,
mcg,
provider_client_ms_platform_required,
)
from ocs_ci.ocs import constants
from ocs_ci.ocs.ocp import OCP
from ocs_ci.framework.testlib import polarion_id

log = logging.getLogger(__name__)


@mcg
@red_squad
@runs_on_provider
@provider_client_ms_platform_required
@tier1
@polarion_id("OCS-5415")
def test_verify_backingstore_uses_rgw(mcg_obj_session):
"""
Validates whether default MCG backingstore uses rgw endpoint
"""
ceph_object_store = OCP(
kind=constants.CEPHOBJECTSTORE,
resource_name="ocs-storagecluster-cephobjectstore",
).get()
log.debug(f"Ceph object store: {ceph_object_store}")
rgw_endpoint = ceph_object_store["status"]["endpoints"]["secure"][0]
log.info(
f"Checking if backingstore noobaa-default-backing-store uses endpoint {rgw_endpoint}"
)

# Get default backingstore status
backingstore_data = mcg_obj_session.exec_mcg_cmd(
"backingstore status noobaa-default-backing-store"
).stdout
assert f"endpoint: {rgw_endpoint}" in backingstore_data
Loading