redis: kubedb.dev/redis/test/e2e/framework Index | Files

package framework

import "kubedb.dev/redis/test/e2e/framework"

Index

Package Files

appbinding.go cert_manager.go cluster.go crd.go database.go framework.go namespace.go pvc.go rbac.go redis.go secret.go util.go

Constants

const (
    GET            = "get"
    LIST           = "list"
    PATCH          = "patch"
    CREATE         = "create"
    UPDATE         = "update"
    USE            = "use"
    POLICY         = "policy"
    Role           = "Role"
    ServiceAccount = "ServiceAccount"
)
const (
    PullInterval = time.Second * 2
    WaitTimeOut  = time.Minute * 3
)
const (
    IssuerName = "e2e-self-signed-issuer"
)

Variables

var (
    DockerRegistry = "kubedbci"
    //DBCatalogName  = "5.0.3-v1"
    DBCatalogName = "6.0.6"
    Cluster       = true
    WithTLSConfig = true
)

type Framework Uses

type Framework struct {
    KubeClient kubernetes.Interface

    StorageClass string
    CertStore    *certstore.CertStore
    // contains filtered or unexported fields
}

func New Uses

func New(
    restConfig *rest.Config,
    kubeClient kubernetes.Interface,
    extClient cs.Interface,
    kaClient ka.Interface,
    dmClient dynamic.Interface,
    appCatalogClient appcat_cs.AppcatalogV1alpha1Interface,
    certManagerClient cm.Interface,
    storageClass string,
) *Framework

func (*Framework) CheckAppBindingSpec Uses

func (f *Framework) CheckAppBindingSpec(meta metav1.ObjectMeta) error

func (*Framework) CleanRedis Uses

func (f *Framework) CleanRedis()

func (*Framework) CreateIssuer Uses

func (f *Framework) CreateIssuer(obj *cm_api.Issuer) (*cm_api.Issuer, error)

func (*Framework) CreateNamespace Uses

func (f *Framework) CreateNamespace() error

func (*Framework) CreateRedis Uses

func (f *Framework) CreateRedis(obj *api.Redis) error

func (*Framework) CreateRole Uses

func (f *Framework) CreateRole(obj *rbac.Role) error

func (*Framework) CreateRoleBinding Uses

func (f *Framework) CreateRoleBinding(obj *rbac.RoleBinding) error

func (*Framework) CreateSecret Uses

func (f *Framework) CreateSecret(obj *core.Secret) (*core.Secret, error)

func (*Framework) CreateServiceAccount Uses

func (f *Framework) CreateServiceAccount(obj *core.ServiceAccount) error

func (*Framework) DeleteIssuer Uses

func (f *Framework) DeleteIssuer(meta metav1.ObjectMeta) error

func (*Framework) DeleteNamespace Uses

func (f *Framework) DeleteNamespace() error

func (*Framework) DeleteRedis Uses

func (f *Framework) DeleteRedis(meta metav1.ObjectMeta) error

func (*Framework) DeleteSecret Uses

func (f *Framework) DeleteSecret(meta metav1.ObjectMeta) error

func (*Framework) EventuallyAppBinding Uses

func (f *Framework) EventuallyAppBinding(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyCRD Uses

func (f *Framework) EventuallyCRD() GomegaAsyncAssertion

func (*Framework) EventuallyGetItem Uses

func (f *Framework) EventuallyGetItem(redis *api.Redis, key string) GomegaAsyncAssertion

func (*Framework) EventuallyPVCCount Uses

func (f *Framework) EventuallyPVCCount(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyRedis Uses

func (f *Framework) EventuallyRedis(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyRedisConfig Uses

func (f *Framework) EventuallyRedisConfig(redis *api.Redis, config string) GomegaAsyncAssertion

func (*Framework) EventuallyRedisPhase Uses

func (f *Framework) EventuallyRedisPhase(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallyRedisReady Uses

func (f *Framework) EventuallyRedisReady(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EventuallySetItem Uses

func (f *Framework) EventuallySetItem(redis *api.Redis, key, value string) GomegaAsyncAssertion

func (*Framework) EventuallyWipedOut Uses

func (f *Framework) EventuallyWipedOut(meta metav1.ObjectMeta) GomegaAsyncAssertion

func (*Framework) EvictPodsFromStatefulSet Uses

func (f *Framework) EvictPodsFromStatefulSet(meta metav1.ObjectMeta) error

func (*Framework) GetDatabasePod Uses

func (f *Framework) GetDatabasePod(meta metav1.ObjectMeta) (*core.Pod, error)

func (*Framework) GetRedis Uses

func (f *Framework) GetRedis(meta metav1.ObjectMeta) (*api.Redis, error)

func (*Framework) Invoke Uses

func (f *Framework) Invoke() *Invocation

func (*Framework) IssuerForDB Uses

func (f *Framework) IssuerForDB(dbMeta, caSecretMeta metav1.ObjectMeta, resourceKind string) *cm_api.Issuer

func (*Framework) Namespace Uses

func (f *Framework) Namespace() string

func (*Framework) PatchRedis Uses

func (f *Framework) PatchRedis(meta metav1.ObjectMeta, transform func(*api.Redis) *api.Redis) (*api.Redis, error)

func (*Framework) PrintDebugHelpers Uses

func (f *Framework) PrintDebugHelpers()

func (*Framework) SelfSignedCASecret Uses

func (f *Framework) SelfSignedCASecret(meta metav1.ObjectMeta, kind string) *core.Secret

func (*Framework) UpdateIssuer Uses

func (f *Framework) UpdateIssuer(meta metav1.ObjectMeta, transformer func(cm_api.Issuer) cm_api.Issuer) error

func (*Framework) WaitUntilStatefulSetReady Uses

func (f *Framework) WaitUntilStatefulSetReady(redis *api.Redis) error

type Invocation Uses

type Invocation struct {
    *Framework

    TestResources []interface{}
    // contains filtered or unexported fields
}

func (*Invocation) AppendToCleanupList Uses

func (fi *Invocation) AppendToCleanupList(resources ...interface{})

func (*Invocation) CleanupTestResources Uses

func (fi *Invocation) CleanupTestResources() error

func (*Invocation) CreateConfigMap Uses

func (fi *Invocation) CreateConfigMap(obj *core.ConfigMap) error

func (*Invocation) DeleteConfigMap Uses

func (fi *Invocation) DeleteConfigMap(meta metav1.ObjectMeta) error

func (*Invocation) ExtClient Uses

func (fi *Invocation) ExtClient() cs.Interface

func (*Invocation) GetCustomConfig Uses

func (fi *Invocation) GetCustomConfig(configs []string) *core.Secret

func (*Invocation) GetPod Uses

func (fi *Invocation) GetPod(meta metav1.ObjectMeta) (*core.Pod, error)

func (*Invocation) InsureIssuer Uses

func (fi *Invocation) InsureIssuer(objectMeta metav1.ObjectMeta, kind string) (*cm_api.Issuer, error)

func (*Invocation) Redis Uses

func (fi *Invocation) Redis() *api.Redis

func (*Invocation) RedisCluster Uses

func (fi *Invocation) RedisCluster() *api.Redis

func (*Invocation) RedisWithTLS Uses

func (f *Invocation) RedisWithTLS(redis *api.Redis) *api.Redis

func (*Invocation) RestConfig Uses

func (fi *Invocation) RestConfig() *rest.Config

func (*Invocation) RoleBinding Uses

func (fi *Invocation) RoleBinding(saName string, roleName string) *rbac.RoleBinding

func (*Invocation) RoleForElasticsearch Uses

func (fi *Invocation) RoleForElasticsearch(meta metav1.ObjectMeta) *rbac.Role

func (*Invocation) RoleForSnapshot Uses

func (fi *Invocation) RoleForSnapshot(meta metav1.ObjectMeta) *rbac.Role

func (*Invocation) ServiceAccount Uses

func (fi *Invocation) ServiceAccount() *core.ServiceAccount

func (*Invocation) TestConfig Uses

func (fi *Invocation) TestConfig() *test_util.TestConfig

Package framework imports 42 packages (graph). Updated 2020-11-24. Refresh now. Tools for package owners.