Documentation
¶
Overview ¶
Package sharedstore provides a shared CephObjectStore fixture for tests under tests/integration/object. A single store is created once and torn down after all sub-package tests complete, avoiding the per-package setup/teardown overhead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sharedstore ¶ added in v1.20.2
type Sharedstore struct {
// contains filtered or unexported fields
}
func Create ¶ added in v1.20.2
func Create(t *testing.T, k8sh *utils.K8sHelper, installer *installer.CephInstaller, tlsEnable bool, allowedNamespaces ...string) *Sharedstore
Setup creates a shared CephObjectStore and its NodePort Service in ObjectStoreNamespace, waits for the store to become Ready, and returns a teardown function that deletes both resources. The teardown function should be deferred by the caller.
func (*Sharedstore) AdminClient ¶ added in v1.20.2
func (s *Sharedstore) AdminClient() *admin.API
func (*Sharedstore) Destroy ¶ added in v1.20.2
func (s *Sharedstore) Destroy()
func (*Sharedstore) ObjectStore ¶ added in v1.20.2
func (s *Sharedstore) ObjectStore() *cephv1.CephObjectStore
func (*Sharedstore) SnsClient ¶ added in v1.20.2
func (s *Sharedstore) SnsClient() *sns.Client
func (*Sharedstore) TLSEnabled ¶ added in v1.20.2
func (s *Sharedstore) TLSEnabled() bool
Click to show internal directories.
Click to hide internal directories.