Documentation ¶
Index ¶
- Constants
- func DeleteNameSpace(client *Client) error
- func EndToEndConfigYaml(paths []string, options ...YamlPathsOptionFunc) []string
- func KoPublish(pack string) (string, error)
- func ParseTemplates(path string, config map[string]string) string
- func PullSubscriptionWithTargetTestImpl(t *testing.T, packages map[string]string)
- func SmokePullSubscriptionTestImpl(t *testing.T)
- func SmokeTestChannelImpl(t *testing.T)
- func TearDown(client *Client)
- type Client
- func (c *Client) CreateNamespaceIfNeeded(t *testing.T)
- func (c *Client) DuplicateSecret(t *testing.T, name, namespace string)
- func (c *Client) LogsFor(namespace, name string, gvr schema.GroupVersionResource) (string, error)
- func (c *Client) WaitForResourceReady(namespace, name string, gvr schema.GroupVersionResource) error
- func (c *Client) WaitUntilJobDone(namespace, name string) (string, error)
- type Installer
- type TargetOutput
- type YamlPathsOptionFunc
Constants ¶
const (
ProwProjectKey = "E2E_PROJECT_ID"
)
Variables ¶
This section is empty.
Functions ¶
func DeleteNameSpace ¶
DeleteNameSpace deletes the namespace that has the given name.
func EndToEndConfigYaml ¶
func EndToEndConfigYaml(paths []string, options ...YamlPathsOptionFunc) []string
EndToEndConfigYaml assembles yaml from the local config directory. Note: `config` dir is assumed to be relative to the caller path.
func PullSubscriptionWithTargetTestImpl ¶ added in v0.9.0
PullSubscriptionWithTargetTestImpl todo
func SmokePullSubscriptionTestImpl ¶
SmokePullSubscriptionTestImpl tests we can create a pull subscription to ready state.
func SmokeTestChannelImpl ¶ added in v0.9.0
SmokeTestChannelImpl makes sure we can run tests.
Types ¶
type Client ¶
type Client struct { Kube *test.KubeClient Dynamic dynamic.Interface Namespace string T *testing.T }
Client holds instances of interfaces for making requests to Knative.
func NewClient ¶
func NewClient(configPath string, clusterName string, namespace string, t *testing.T) (*Client, error)
NewClient instantiates and returns clientsets required for making request to the cluster specified by the combination of clusterName and configPath.
func Setup ¶
Setup creates the client objects needed in the e2e tests, and does other setups, like creating namespaces, set the test case to run in parallel, etc.
func (*Client) CreateNamespaceIfNeeded ¶
CreateNamespaceIfNeeded creates a new namespace if it does not exist.
func (*Client) DuplicateSecret ¶
DuplicateSecret duplicates a secret from a namespace to a new namespace.
func (*Client) WaitForResourceReady ¶
func (c *Client) WaitForResourceReady(namespace, name string, gvr schema.GroupVersionResource) error
WaitForResourceReady waits until the specified resource in the given namespace are ready.
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func NewInstaller ¶
type TargetOutput ¶ added in v0.9.0
type TargetOutput struct {
Success bool `json:"success"`
}
type YamlPathsOptionFunc ¶
YamlPathsOptionFunc allows for bulk mutation of the yaml paths.