Documentation
¶
Index ¶
- func ConfirmIstioCheckMessage(expectedIstioCheckKey string, actualIstioCheck *models.IstioCheck) error
- type FixtureLoader
- type IstioCheckTestAsserter
- type ValidationsTestAsserter
- type YamlFixtureLoader
- func (l YamlFixtureLoader) FindAuthorizationPolicy(name, namespace string) *security_v1beta.AuthorizationPolicy
- func (l YamlFixtureLoader) FindDestinationRule(name, namespace string) *networking_v1alpha3.DestinationRule
- func (l YamlFixtureLoader) FindDestinationRuleIn(namespace string) []networking_v1alpha3.DestinationRule
- func (l YamlFixtureLoader) FindDestinationRuleNotIn(namespace string) []networking_v1alpha3.DestinationRule
- func (l YamlFixtureLoader) FindPeerAuthentication(name, namespace string) *security_v1beta.PeerAuthentication
- func (l YamlFixtureLoader) FindPeerAuthenticationIn(namespace string) []security_v1beta.PeerAuthentication
- func (l YamlFixtureLoader) FindPeerAuthenticationNotIn(namespace string) []security_v1beta.PeerAuthentication
- func (l YamlFixtureLoader) FindServiceEntry(name, namespace string) *networking_v1alpha3.ServiceEntry
- func (l YamlFixtureLoader) FindSidecar(name, namespace string) *networking_v1alpha3.Sidecar
- func (l YamlFixtureLoader) FindVirtualService(name, namespace string) *networking_v1alpha3.VirtualService
- func (l YamlFixtureLoader) FindVirtualServiceIn(namespace string) []networking_v1alpha3.VirtualService
- func (l YamlFixtureLoader) FindWorkloadEntry(name, namespace string) *networking_v1alpha3.WorkloadEntry
- func (l YamlFixtureLoader) GetNamespaces() []core_v1.Namespace
- func (l YamlFixtureLoader) GetResources() models.IstioConfigList
- func (l *YamlFixtureLoader) Load() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmIstioCheckMessage ¶
func ConfirmIstioCheckMessage(expectedIstioCheckKey string, actualIstioCheck *models.IstioCheck) error
ConfirmIstioCheckMessage can be used by the validation tests to confirm the Istio Check received is what was expected
Types ¶
type FixtureLoader ¶
type FixtureLoader interface { Load() error GetNamespaces() GetResources() models.IstioConfigList }
type IstioCheckTestAsserter ¶
type IstioCheckTestAsserter struct { T *testing.T Validations []*models.IstioCheck Valid bool }
func (IstioCheckTestAsserter) AssertNoValidations ¶
func (tb IstioCheckTestAsserter) AssertNoValidations()
func (IstioCheckTestAsserter) AssertValidationAt ¶
func (tb IstioCheckTestAsserter) AssertValidationAt(i int, severity models.SeverityLevel, path, message string)
func (IstioCheckTestAsserter) AssertValidationsPresent ¶
func (tb IstioCheckTestAsserter) AssertValidationsPresent(count int, valid bool)
type ValidationsTestAsserter ¶
type ValidationsTestAsserter struct { T *testing.T Validations models.IstioValidations }
func (ValidationsTestAsserter) AssertNoValidations ¶
func (vta ValidationsTestAsserter) AssertNoValidations()
func (ValidationsTestAsserter) AssertValidationAt ¶
func (vta ValidationsTestAsserter) AssertValidationAt(key models.IstioValidationKey, severity models.SeverityLevel, path, message string)
func (ValidationsTestAsserter) AssertValidationsPresent ¶
func (vta ValidationsTestAsserter) AssertValidationsPresent(count int)
type YamlFixtureLoader ¶
type YamlFixtureLoader struct { Filename string // contains filtered or unexported fields }
func (YamlFixtureLoader) FindAuthorizationPolicy ¶ added in v1.42.0
func (l YamlFixtureLoader) FindAuthorizationPolicy(name, namespace string) *security_v1beta.AuthorizationPolicy
func (YamlFixtureLoader) FindDestinationRule ¶ added in v1.42.0
func (l YamlFixtureLoader) FindDestinationRule(name, namespace string) *networking_v1alpha3.DestinationRule
func (YamlFixtureLoader) FindDestinationRuleIn ¶ added in v1.42.0
func (l YamlFixtureLoader) FindDestinationRuleIn(namespace string) []networking_v1alpha3.DestinationRule
func (YamlFixtureLoader) FindDestinationRuleNotIn ¶ added in v1.42.0
func (l YamlFixtureLoader) FindDestinationRuleNotIn(namespace string) []networking_v1alpha3.DestinationRule
func (YamlFixtureLoader) FindPeerAuthentication ¶ added in v1.48.0
func (l YamlFixtureLoader) FindPeerAuthentication(name, namespace string) *security_v1beta.PeerAuthentication
func (YamlFixtureLoader) FindPeerAuthenticationIn ¶ added in v1.42.0
func (l YamlFixtureLoader) FindPeerAuthenticationIn(namespace string) []security_v1beta.PeerAuthentication
func (YamlFixtureLoader) FindPeerAuthenticationNotIn ¶ added in v1.42.0
func (l YamlFixtureLoader) FindPeerAuthenticationNotIn(namespace string) []security_v1beta.PeerAuthentication
func (YamlFixtureLoader) FindServiceEntry ¶ added in v1.43.0
func (l YamlFixtureLoader) FindServiceEntry(name, namespace string) *networking_v1alpha3.ServiceEntry
func (YamlFixtureLoader) FindSidecar ¶ added in v1.48.0
func (l YamlFixtureLoader) FindSidecar(name, namespace string) *networking_v1alpha3.Sidecar
func (YamlFixtureLoader) FindVirtualService ¶ added in v1.42.0
func (l YamlFixtureLoader) FindVirtualService(name, namespace string) *networking_v1alpha3.VirtualService
func (YamlFixtureLoader) FindVirtualServiceIn ¶ added in v1.47.0
func (l YamlFixtureLoader) FindVirtualServiceIn(namespace string) []networking_v1alpha3.VirtualService
func (YamlFixtureLoader) FindWorkloadEntry ¶ added in v1.43.0
func (l YamlFixtureLoader) FindWorkloadEntry(name, namespace string) *networking_v1alpha3.WorkloadEntry
func (YamlFixtureLoader) GetNamespaces ¶ added in v1.42.0
func (l YamlFixtureLoader) GetNamespaces() []core_v1.Namespace
func (YamlFixtureLoader) GetResources ¶
func (l YamlFixtureLoader) GetResources() models.IstioConfigList
func (*YamlFixtureLoader) Load ¶
func (l *YamlFixtureLoader) Load() error
Click to show internal directories.
Click to hide internal directories.