Description
A test that creates a StorageClass (sc-test-blk) fails with AlreadyExists when an older test run left the same StorageClass behind. The automation does not check for pre-existing resources before calling oc create, causing CI failures and test instability.
oc create -f /tmp/StorageClass... -o yaml returns:
Error from server (AlreadyExists): error when creating "/tmp/StorageClassla28qfou": storageclasses.storage.k8s.io "sc-test-blk" already exists
Steps to Reproduce
Actual Behavior
Expected Behavior
Impact (likelihood of reproduction, impact on the cluster and on other tests, etc.)
Screenshots (if applicable)
Environment
- Test Suite(s):
- Platform(s):
- Version(s):
- OS:
Additional Context