Documentation ¶
Index ¶
- func AssertCondition(t *testing.T, bundle *smith_v1.Bundle, ...) *smith_v1.BundleCondition
- func IsBundleNewerCond(namespace, name string, resourceVersions ...string) watch.ConditionFunc
- func IsBundleStatusCond(namespace, name string, cType smith_v1.BundleConditionType, ...) watch.ConditionFunc
- func SetupApp(t *testing.T, bundle *smith_v1.Bundle, serviceCatalog, createBundle bool, ...)
- func SleeperScheme() *runtime.Scheme
- func TestSetup(t *testing.T) (*rest.Config, *kubernetes.Clientset, *smithClientset.Clientset)
- type Config
- func (cfg *Config) AssertBundle(ctx context.Context, bundle *smith_v1.Bundle, resourceVersions ...string) *smith_v1.Bundle
- func (cfg *Config) AssertBundleTimeout(ctx context.Context, bundle *smith_v1.Bundle, resourceVersion ...string) *smith_v1.Bundle
- func (cfg *Config) AwaitBundleCondition(conditions ...watch.ConditionFunc) *smith_v1.Bundle
- func (cfg *Config) CreateObject(ctxTest context.Context, obj, res runtime.Object, resourcePath string, ...)
- type TestFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertCondition ¶
func AssertCondition(t *testing.T, bundle *smith_v1.Bundle, conditionType smith_v1.BundleConditionType, status smith_v1.ConditionStatus) *smith_v1.BundleCondition
func IsBundleNewerCond ¶
func IsBundleNewerCond(namespace, name string, resourceVersions ...string) watch.ConditionFunc
func IsBundleStatusCond ¶
func IsBundleStatusCond(namespace, name string, cType smith_v1.BundleConditionType, status smith_v1.ConditionStatus) watch.ConditionFunc
func SleeperScheme ¶
func TestSetup ¶
func TestSetup(t *testing.T) (*rest.Config, *kubernetes.Clientset, *smithClientset.Clientset)
Types ¶
type Config ¶ added in v0.2.1
type Config struct { T *testing.T Namespace string Bundle *smith_v1.Bundle CreatedBundle *smith_v1.Bundle Config *rest.Config Clientset kubernetes.Interface Sc smith.SmartClient BundleClient smithClientset.Interface }
func (*Config) AssertBundle ¶ added in v0.2.1
func (*Config) AssertBundleTimeout ¶ added in v0.2.1
func (*Config) AwaitBundleCondition ¶ added in v0.2.1
func (cfg *Config) AwaitBundleCondition(conditions ...watch.ConditionFunc) *smith_v1.Bundle
Click to show internal directories.
Click to hide internal directories.