Documentation ¶
Overview ¶
© 2020 Red Hat, Inc. and others
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- type Framework
- func (f *Framework) AwaitEndpointIPs(targetCluster framework.ClusterIndex, name, namespace string, count int) (ipList []string)
- func (f *Framework) AwaitEndpointSlices(targetCluster framework.ClusterIndex, name, namespace string, ...) (endpointSliceList *v1beta1.EndpointSliceList)
- func (f *Framework) AwaitGlobalnetIP(cluster framework.ClusterIndex, name, namespace string) string
- func (f *Framework) AwaitServiceExportedStatusCondition(cluster framework.ClusterIndex, name, namespace string)
- func (f *Framework) AwaitServiceImportCount(targetCluster framework.ClusterIndex, name, namespace string, count int)
- func (f *Framework) AwaitServiceImportDelete(targetCluster framework.ClusterIndex, name, namespace string)
- func (f *Framework) AwaitServiceImportIP(targetCluster framework.ClusterIndex, svc *v1.Service) *mcsv1a1.ServiceImport
- func (f *Framework) DeleteServiceExport(cluster framework.ClusterIndex, name, namespace string)
- func (f *Framework) GetEndpointIPs(targetCluster framework.ClusterIndex, name, namespace string) (ipList []string)
- func (f *Framework) GetHealthCheckIPInfo(cluster framework.ClusterIndex) (endpointName, healthCheckIP string)
- func (f *Framework) GetService(cluster framework.ClusterIndex, name, namespace string) (*v1.Service, error)
- func (f *Framework) NewNginxHeadlessService(cluster framework.ClusterIndex) *v1.Service
- func (f *Framework) NewNginxHeadlessServiceWithParams(name, app string, cluster framework.ClusterIndex) *v1.Service
- func (f *Framework) NewNginxStatefulSet(cluster framework.ClusterIndex) *appsv1.StatefulSet
- func (f *Framework) NewServiceExport(cluster framework.ClusterIndex, name, namespace string) *mcsv1a1.ServiceExport
- func (f *Framework) SetHealthCheckIP(cluster framework.ClusterIndex, ip, endpointName string)
- func (f *Framework) SetNginxReplicaSet(cluster framework.ClusterIndex, count uint32) *appsv1.Deployment
- func (f *Framework) SetNginxStatefulSetReplicas(cluster framework.ClusterIndex, count uint32) *appsv1.StatefulSet
Constants ¶
This section is empty.
Variables ¶
View Source
var EndpointClients []dynamic.ResourceInterface
View Source
var MCSClients []*mcsClientset.Clientset
Functions ¶
This section is empty.
Types ¶
type Framework ¶
Framework supports common operations used by e2e tests; it will keep a client & a namespace for you.
func NewFramework ¶
NewFramework creates a test framework.
func (*Framework) AwaitEndpointIPs ¶ added in v0.6.0
func (*Framework) AwaitEndpointSlices ¶ added in v0.7.0
func (f *Framework) AwaitEndpointSlices(targetCluster framework.ClusterIndex, name, namespace string, expSliceCount, expEpCount int) (endpointSliceList *v1beta1.EndpointSliceList)
func (*Framework) AwaitGlobalnetIP ¶ added in v0.5.0
func (f *Framework) AwaitGlobalnetIP(cluster framework.ClusterIndex, name, namespace string) string
func (*Framework) AwaitServiceExportedStatusCondition ¶ added in v0.6.0
func (f *Framework) AwaitServiceExportedStatusCondition(cluster framework.ClusterIndex, name, namespace string)
func (*Framework) AwaitServiceImportCount ¶ added in v0.6.0
func (f *Framework) AwaitServiceImportCount(targetCluster framework.ClusterIndex, name, namespace string, count int)
func (*Framework) AwaitServiceImportDelete ¶ added in v0.5.0
func (f *Framework) AwaitServiceImportDelete(targetCluster framework.ClusterIndex, name, namespace string)
func (*Framework) AwaitServiceImportIP ¶ added in v0.5.0
func (f *Framework) AwaitServiceImportIP(targetCluster framework.ClusterIndex, svc *v1.Service) *mcsv1a1.ServiceImport
func (*Framework) DeleteServiceExport ¶ added in v0.4.0
func (f *Framework) DeleteServiceExport(cluster framework.ClusterIndex, name, namespace string)
func (*Framework) GetEndpointIPs ¶ added in v0.6.0
func (f *Framework) GetEndpointIPs(targetCluster framework.ClusterIndex, name, namespace string) (ipList []string)
func (*Framework) GetHealthCheckIPInfo ¶ added in v0.8.1
func (f *Framework) GetHealthCheckIPInfo(cluster framework.ClusterIndex) (endpointName, healthCheckIP string)
func (*Framework) GetService ¶ added in v0.5.0
func (*Framework) NewNginxHeadlessService ¶ added in v0.6.0
func (f *Framework) NewNginxHeadlessService(cluster framework.ClusterIndex) *v1.Service
func (*Framework) NewNginxHeadlessServiceWithParams ¶ added in v0.7.0
func (*Framework) NewNginxStatefulSet ¶ added in v0.7.0
func (f *Framework) NewNginxStatefulSet(cluster framework.ClusterIndex) *appsv1.StatefulSet
func (*Framework) NewServiceExport ¶ added in v0.4.0
func (f *Framework) NewServiceExport(cluster framework.ClusterIndex, name, namespace string) *mcsv1a1.ServiceExport
func (*Framework) SetHealthCheckIP ¶ added in v0.8.1
func (f *Framework) SetHealthCheckIP(cluster framework.ClusterIndex, ip, endpointName string)
func (*Framework) SetNginxReplicaSet ¶ added in v0.6.0
func (f *Framework) SetNginxReplicaSet(cluster framework.ClusterIndex, count uint32) *appsv1.Deployment
func (*Framework) SetNginxStatefulSetReplicas ¶ added in v0.7.0
func (f *Framework) SetNginxStatefulSetReplicas(cluster framework.ClusterIndex, count uint32) *appsv1.StatefulSet
Click to show internal directories.
Click to hide internal directories.