Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestProject ¶
func CreateTestProject(t *testing.T, kubeClient kubernetes.Interface, projectClient *projectclient.Clientset) *corev1.Namespace
func NewClientConfigForTest ¶
NewClientConfigForTest returns a config configured to connect to the api server
func PortForwardSvc ¶
func PortForwardSvc(t *testing.T, svcNS, svcName, portMapping string) context.CancelFunc
PortForwardSvc forwards a remote service's port to localhost portMapping is a string "localPort:remotePort"
func TestTokenReviews ¶
Types ¶
type ResourceTrashbin ¶
type ResourceTrashbin struct {
// contains filtered or unexported fields
}
ResourceTrashbin serves to put your API resources into in order to remove them at the end of a test
func NewResourceTrashbin ¶
func NewResourceTrashbin(t *testing.T, adminKubeconfig *rest.Config) *ResourceTrashbin
NewResourceTrashbin creates an instance of a ResourceTrashbin
func (*ResourceTrashbin) AddResource ¶
func (b *ResourceTrashbin) AddResource(resource schema.GroupVersionResource, objectMeta metav1.Object)
AddResource adds a resource to the trashbin so that it can eventually be deleted
func (*ResourceTrashbin) Empty ¶
func (b *ResourceTrashbin) Empty(t *testing.T)
Empty deletes all of the cached resources
func (*ResourceTrashbin) Merge ¶
func (b *ResourceTrashbin) Merge(other *ResourceTrashbin)
Merge merges resources to be deleted from another trash bin instance
Click to show internal directories.
Click to hide internal directories.