Documentation
¶
Index ¶
- Constants
- func WriteKubeconfig(cfg *rest.Config) (string, error)
- type BaseSuite
- func (b *BaseSuite) BackendFromManifest(manifestPath, manifestName string) *models.Backend
- func (b *BaseSuite) CleanupFixtures(fixturePath string, manifestNames []string)
- func (b *BaseSuite) CleanupFixturesInNamespace(fixturePath, namespace string, manifestNames []string)
- func (b *BaseSuite) CreateFixtures(fixturePath string, manifestNames []string)
- func (b *BaseSuite) CreateFixturesInNamespace(fixturePath, namespace string, manifestNames []string)
- func (b *BaseSuite) ExpectBackends(ctx context.Context, expectationPath string, expectedBackends []string)
- func (b *BaseSuite) ExpectBackendsDoNotExist(ctx context.Context, backendThatShouldNotExist string)
- func (b *BaseSuite) ExpectCertificates(ctx context.Context, expectedCerts []*models.SslCertificate)
- func (b *BaseSuite) ExpectCrtLists(ctx context.Context, expectedCrtLists map[futils.FilePath][]string)
- func (b *BaseSuite) ExpectFrontends(ctx context.Context, expectationPath string, expectedFrontends []string)
- func (b *BaseSuite) FrontendFromManifest(manifestPath, manifestName string) *models.Frontend
- func (b *BaseSuite) SetupSuite()
- func (b *BaseSuite) TearDownSuite()
- func (b *BaseSuite) Test() IntTest
- func (b *BaseSuite) YamlToConditions(yamlPath string) conditions.Conditions
- func (b *BaseSuite) YamlToListenerStatuses(yamlPath string) []gatewayv1.ListenerStatus
- func (b *BaseSuite) YamlToRouteConditions(yamlPath string) rc.RouteConditions
- type IntTest
Constants ¶
const TestControllerName = "gate.haproxy.org/hug"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseSuite ¶
func (*BaseSuite) BackendFromManifest ¶
func (*BaseSuite) CleanupFixtures ¶
func (*BaseSuite) CleanupFixturesInNamespace ¶
func (*BaseSuite) CreateFixtures ¶
CreateFixtures will create all the objects from manifests that are in the fixturePath directory They are created in the test namespace To create in a specific namespace use CreateFixturesInNamespace If manifestNames is empty, it will create all objects that are in the directory If manifestNames, it will create only the objects in manifestNames (a sublist of the files in fixturePath)
func (*BaseSuite) CreateFixturesInNamespace ¶
func (*BaseSuite) ExpectBackends ¶
func (*BaseSuite) ExpectBackendsDoNotExist ¶
func (*BaseSuite) ExpectCertificates ¶
func (b *BaseSuite) ExpectCertificates(ctx context.Context, expectedCerts []*models.SslCertificate)
For now: only checks the following certificate fields: - StorageName - Subject (for CN) Check is performed using the RUNTIME command on haproxy
func (*BaseSuite) ExpectCrtLists ¶
func (b *BaseSuite) ExpectCrtLists(ctx context.Context, expectedCrtLists map[futils.FilePath][]string)
ExpectCrtLists checks that the crt-list are the expectedCrtLists For now, there is no CN method to get the content of the crt-list : "show ssl crt-list <filename>" The only existing method in CN is "show ssl crt-list" that gives the list of crt-lists So, for now, we check the content of the crt-list from the crt-list file, not from the RUNTIME.
func (*BaseSuite) ExpectFrontends ¶
func (*BaseSuite) FrontendFromManifest ¶
func (*BaseSuite) SetupSuite ¶
func (b *BaseSuite) SetupSuite()
func (*BaseSuite) TearDownSuite ¶
func (b *BaseSuite) TearDownSuite()
func (*BaseSuite) YamlToConditions ¶
func (b *BaseSuite) YamlToConditions(yamlPath string) conditions.Conditions
func (*BaseSuite) YamlToListenerStatuses ¶
func (b *BaseSuite) YamlToListenerStatuses(yamlPath string) []gatewayv1.ListenerStatus
func (*BaseSuite) YamlToRouteConditions ¶
func (b *BaseSuite) YamlToRouteConditions(yamlPath string) rc.RouteConditions
type IntTest ¶
type IntTest struct {
Ctx context.Context
Client ctrlruntimeclient.Client
RuntimeClient runtime.Runtime
HaproxyClient hapapi.HAProxyClient
TestEnv *envtest.Environment
Namespace string
// contains filtered or unexported fields
}