test

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFlavorName = "vanilla"
)

Variables

View Source
var (
	MeshRef = &core.ResourceRef{
		Name:      "name",
		Namespace: "namespace",
	}

	HelloWorldChart1_0 = TestChart{
		Name:           "hello-world",
		Version:        "0.1.0",
		HelmUri:        "https://storage.googleapis.com/solo-helm-charts/helloworld-chart-0.1.0.tgz",
		DeploymentName: "hello-world-helloworld-chart",
	}
	HelloWorldChart1_1 = TestChart{
		Name:           "hello-world",
		Version:        "0.1.1",
		HelmUri:        "https://storage.googleapis.com/solo-helm-charts/helloworld-chart-0.1.1.tgz",
		DeploymentName: "hello-world-helloworld-chart",
	}

	KustomizeLayer_Success = &hubv1.Kustomize{
		OverlayPath: "supergloo",
		Location:    kustomizeLocation,
	}

	KustomizeLayer_Failure = &hubv1.Kustomize{
		OverlayPath: "error",
		Location:    kustomizeLocation,
	}

	KustomizeLayer_NotFound = &hubv1.Kustomize{
		OverlayPath: "fails",
		Location:    kustomizeLocation,
	}
)

Functions

func GetAppSpec

func GetAppSpec(chart TestChart, kustomizeLayer *hubv1.Kustomize) *hubv1.VersionedApplicationSpec

func GetFlavor

func GetFlavor(kustomizeLayer *hubv1.Kustomize) *hubv1.Flavor

func NewKustomizeTestLayerFromLocalPackages

func NewKustomizeTestLayerFromLocalPackages(fs afero.Fs, dir, overlayPath string) (*v1.Kustomize, error)

func ResourceMapFactory

func ResourceMapFactory() *resmap.Factory

Types

type RenderValuesForTest

type RenderValuesForTest struct {
	MeshRef            core.ResourceRef
	SuperglooNamespace string
	InstallNamespace   string
	Custom             interface{}
}

TODO: get rid of this and just use the ValuesInputs type

func GetRenderValues

func GetRenderValues() RenderValuesForTest

type TestChart

type TestChart struct {
	Name           string
	Version        string
	HelmUri        string
	DeploymentName string
}

Jump to

Keyboard shortcuts

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