 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const (
	TestTimeout = time.Minute * 3
)
    Variables ¶
This section is empty.
Functions ¶
func GetKubeConfig ¶
func GetKubeConfig(configPath string, overrides clientcmd.ConfigOverrides) *rest.Config
GetKubeConfig creates new kubernetes client config using specified config path and config overrides variables
Types ¶
type FakeGitClient ¶
type FakeGitClient struct {
}
    FakeGitClient is a test git client implementation which always clone local test repo.
func (*FakeGitClient) Checkout ¶
func (c *FakeGitClient) Checkout(repoPath string, sha string) (string, error)
func (*FakeGitClient) CloneOrFetch ¶
func (*FakeGitClient) Reset ¶
func (c *FakeGitClient) Reset(repoPath string) error
type Fixture ¶
type Fixture struct {
	Config           *rest.Config
	KubeClient       kubernetes.Interface
	ExtensionsClient apiextensionsclient.Interface
	AppClient        appclientset.Interface
	ApiRepoService   apirepository.RepositoryServiceServer
	RepoClientset    reposerver.Clientset
	AppComparator    controller.AppComparator
	Namespace        string
	InstanceID       string
	// contains filtered or unexported fields
}
    Fixture represents e2e tests fixture.
func (*Fixture) CreateApp ¶
func (f *Fixture) CreateApp(t *testing.T, application *v1alpha1.Application) *v1alpha1.Application
CreateApp creates application with appropriate controller instance id.
func (*Fixture) CreateController ¶
func (f *Fixture) CreateController() *controller.ApplicationController
CreateController creates new controller instance
 Click to show internal directories. 
   Click to hide internal directories.