functional

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package functional implements the envTest coverage for glance-operator

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIType

type APIType string

GlanceTestData is the data structure used to provide input data to envTest

const (
	GlanceAPITypeInternal APIType = "internal"
	GlanceAPITypeExternal APIType = "external"
)

type GlanceTestData

type GlanceTestData struct {
	ContainerImage              string
	GlanceDatabaseUser          string
	GlancePassword              string
	GlanceServiceUser           string
	GlancePVCSize               string
	GlancePort                  string
	GlanceQuotas                map[string]interface{}
	Instance                    types.NamespacedName
	GlanceInternal              types.NamespacedName
	GlanceExternal              types.NamespacedName
	GlanceRole                  types.NamespacedName
	GlanceRoleBinding           types.NamespacedName
	GlanceSA                    types.NamespacedName
	GlanceDBSync                types.NamespacedName
	GlancePublicRoute           types.NamespacedName
	GlanceInternalRoute         types.NamespacedName
	GlanceService               types.NamespacedName
	GlanceConfigMapData         types.NamespacedName
	GlanceInternalConfigMapData types.NamespacedName
	GlanceConfigMapScripts      types.NamespacedName
	GlanceInternalAPI           types.NamespacedName
	GlanceExternalAPI           types.NamespacedName
	InternalAPINAD              types.NamespacedName
}

func GetGlanceTestData

func GetGlanceTestData(glanceName types.NamespacedName) GlanceTestData

GetGlanceTestData is a function that initialize the GlanceTestData used in the test

Jump to

Keyboard shortcuts

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