Uploaded image for project: 'OpenShift Edge Enablement'
  1. OpenShift Edge Enablement
  2. OCPEDGE-2350

Add unit tests for StorageClassOptions webhook validation

XMLWordPrintable

    • None
    • None
    • OCPEDGE Sprint 285
    • 1

      Add comprehensive unit tests to validate the webhook behavior for StorageClassOptions.

      Acceptance Criteria:

      •  Test suite added to api/v1alpha1/lvmcluster_test.go for StorageClassOptions validation:
        • Valid StorageClassOptions accepted
        • Warnings generated for LVMS-owned parameter conflicts
        • Invalid label keys rejected with clear error
        • StorageClassOptions updates allowed (day-2 mutability)
        • Nil StorageClassOptions accepted (uses defaults)
      •  All tests pass with make test
      •  Test coverage for edge cases (empty maps, conflicting keys, etc.)

              nhamza12 Neil Hamza
              nhamza12 Neil Hamza
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: