tests

package
v1.0.536 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualConfigs

func EqualConfigs(expected ...models.ConfigItem) types.GomegaMatcher

Types

type ConfigGenerator added in v1.0.535

type ConfigGenerator struct {
	Namespaces, Nodes                                                  ConfigTypeRequirements
	PodsPerReplicaSet, ReplicaSetPerDeployment, DeploymentPerNamespace ConfigTypeRequirements
	Tags                                                               map[string]string
	Generated                                                          Generated
	// contains filtered or unexported fields
}

func (*ConfigGenerator) Destroy added in v1.0.535

func (generator *ConfigGenerator) Destroy(db *gorm.DB) error

func (*ConfigGenerator) GenerateConfigItem added in v1.0.535

func (generator *ConfigGenerator) GenerateConfigItem(configType, status string, deletedAt *time.Time, parent *models.ConfigItem, req ConfigTypeRequirements) models.ConfigItem

func (*ConfigGenerator) GenerateKubernetes added in v1.0.535

func (generator *ConfigGenerator) GenerateKubernetes()
func (generator *ConfigGenerator) Link(parent, child models.ConfigItem)

func (*ConfigGenerator) Save added in v1.0.535

func (generator *ConfigGenerator) Save(db *gorm.DB) error

type ConfigTypeHealthRequirements added in v1.0.535

type ConfigTypeHealthRequirements struct {
	HealthyPercentage   int
	UnhealthyPercentage int
	WarningPercentage   int
	UnknownPercentage   int
}

func (*ConfigTypeHealthRequirements) IsEmpty added in v1.0.535

func (t *ConfigTypeHealthRequirements) IsEmpty() bool

func (*ConfigTypeHealthRequirements) IsValid added in v1.0.535

func (t *ConfigTypeHealthRequirements) IsValid() bool

func (*ConfigTypeHealthRequirements) SetDefaults added in v1.0.535

func (t *ConfigTypeHealthRequirements) SetDefaults()

type ConfigTypeRequirements added in v1.0.535

type ConfigTypeRequirements struct {
	Status ConfigTypeHealthRequirements

	Count   int
	Deleted int

	NumChangesPerConfig  int
	NumInsightsPerConfig int
}

type EqualsConfigItems

type EqualsConfigItems struct {
	Expected []models.ConfigItem
}

func (*EqualsConfigItems) FailureMessage

func (matcher *EqualsConfigItems) FailureMessage(actual interface{}) string

func (*EqualsConfigItems) Match

func (matcher *EqualsConfigItems) Match(actual interface{}) (bool, error)

func (*EqualsConfigItems) NegatedFailureMessage

func (matcher *EqualsConfigItems) NegatedFailureMessage(actual interface{}) string

type Generated added in v1.0.535

type Generated struct {
	Configs       []models.ConfigItem
	Changes       []models.ConfigChange
	Analysis      []models.ConfigAnalysis
	Relationships []models.ConfigRelationship
}

func (*Generated) ConfigByTypes added in v1.0.535

func (t *Generated) ConfigByTypes(configType ...string) []models.ConfigItem

func (*Generated) Total added in v1.0.535

func (t *Generated) Total() int

Directories

Path Synopsis
fixtures

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL