Documentation
¶
Overview ¶
Package fixture provides setup helpers for resources whose teardown is pure cleanup rather than part of what a test asserts. Each helper creates the resource and registers its deletion via t.Cleanup, so the resource is removed even when the test fails partway through and never reaches its trailing teardown steps — important because the tests share one cluster.
Deletions that are themselves assertions (e.g. "deleting the OBC must not delete the user") do not belong here; keep those as ordered subtests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireNamespace ¶
RequireNamespace creates ns and registers its deletion via t.Cleanup. Deletion is issued without waiting for it to complete; namespace teardown is asynchronous and nothing in these tests depends on it finishing.
func RequireStorageClass ¶
RequireStorageClass creates sc and registers its deletion via t.Cleanup.
func StorageClass ¶
func StorageClass(name string, objectStore *cephv1.CephObjectStore) *storagev1.StorageClass
StorageClass returns a StorageClass for the lib-bucket-provisioner bucket provisioner backed by objectStore, for use by ObjectBucketClaims.
Types ¶
This section is empty.