Skip to content

Test & Automate: Verify StorageClass conversion works for a non-admin user #942

Description

@msajidmansoori12

Summary

Automate the MTA-904 StorageClass Conversion scenario validating that the complete PVC conversion workflow works using namespace-admin scoped non-admin users.

This is a sub-issue of #661 (E2E test coverage for StorageClass conversion).

Polarion

  • MTA-904 — [CLI][CRN] Verify StorageClass conversion works for a non-admin user

App

MySQL from k8s-apps-deployer with two PVCs:

  • mysql-data
  • mysql-data1

Scope

  • Cross-cluster source and target contexts
  • Non-admin source and target contexts
  • Namespace-admin RBAC granted through SetupActiveKubectlRunners
  • Different destination StorageClass
  • MTA-903 pipeline order: export/transform/render, transfer PVCs, then apply and start the target workload

Test Flow

  1. Grant namespace-admin permissions to the non-admin users.
  2. Deploy MySQL on the source and capture row-count and checksum fingerprints.
  3. Quiesce the source workload.
  4. Run export, transform, and apply rendering as the non-admin Crane user.
  5. Transfer both MySQL PVCs sequentially with --dest-storage-class.
  6. Verify destination PVCs are Bound and use the destination StorageClass.
  7. Verify both PVCs contain data before starting MySQL.
  8. Apply the rendered manifests on the target using the non-admin runner.
  9. Start MySQL and compare target row count and checksum fingerprints with the source.
  10. Verify no app.konveyor.io/created-for-pvc helper resources remain.

Acceptance Criteria

  • The complete pipeline succeeds using only namespace-admin scoped RBAC for workload and PVC operations.
  • Both destination PVCs use the target StorageClass.
  • Both MySQL data volumes remain intact and uncontaminated.
  • Target MySQL data fingerprints match the source.
  • No transfer-pvc helper resources remain after cleanup.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

testTesting related

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions