Documentation ¶
Index ¶
- Constants
- func ConvertService(pathToYaml string) (*v1.Service, error)
- func ConvertServiceBindings(pathToYaml string) (*catalogv1beta1.ServiceBinding, error)
- func ConvertServiceInstances(pathToYaml string) (*catalogv1beta1.ServiceInstance, error)
- type Framework
- func (f *Framework) TearDown() error
- func (f *Framework) WaitForClasses() error
- func (f *Framework) WaitForNoSecrets(namespace string) error
- func (f *Framework) WaitForPodReady(name, namespace string) error
- func (f *Framework) WaitForServiceBindingDeleted(name, namespace string) error
- func (f *Framework) WaitForServiceBindingReady(name, namespace string) error
- func (f *Framework) WaitForServiceInstanceDeleted(name, namespace string) error
- func (f *Framework) WaitForServiceInstanceReady(name, namespace string) error
Constants ¶
const ( TestNs = "testing-habitat-broker" BrokerChartDir = "../../charts/habitat-service-broker" ReleaseName = "habitat-service-broker" )
Variables ¶
This section is empty.
Functions ¶
func ConvertService ¶
ConvertService takes in a path to the YAML file containing the manifest. It converts the file to the Service object.
func ConvertServiceBindings ¶
func ConvertServiceBindings(pathToYaml string) (*catalogv1beta1.ServiceBinding, error)
ConvertServiceBindings takes in a path to the YAML file containing the manifest. It converts the file to the Service Binding object.
func ConvertServiceInstances ¶
func ConvertServiceInstances(pathToYaml string) (*catalogv1beta1.ServiceInstance, error)
ConvertServiceInstances takes in a path to the YAML file containing the manifest. It converts the file to the Service Instances object.
Types ¶
type Framework ¶
type Framework struct { KubeClient kubernetes.Interface HelmClient *helm.Client CatalogClientset *catalogclientset.Clientset ExternalIP string TillerTunnel *kube.Tunnel }
func (*Framework) WaitForClasses ¶
WaitForClasses waits until there's any Cluster Service Class.
func (*Framework) WaitForNoSecrets ¶
WaitForNoSecrets waits until there is no secrets except the default token and the habitat-service-broker token.
func (*Framework) WaitForPodReady ¶
WaitForPodReady waits until the pod is in a Ready state.
func (*Framework) WaitForServiceBindingDeleted ¶
WaitForServiceBindingDeleted waits until the Service Binding is deleted.
func (*Framework) WaitForServiceBindingReady ¶
WaitForServiceBindingReady waits until the Service Binding is in a Ready state.
func (*Framework) WaitForServiceInstanceDeleted ¶
WaitForServiceInstanceDeleted waits until the Service Instance is deleted.
func (*Framework) WaitForServiceInstanceReady ¶
WaitForServiceInstanceReady waits until the Service Instance is in a Ready state.