promote

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ACSRPTests are the rp tests
	ACSRPTests string = "ACSRpTests"
	// AKSEngineTests are the AKS Engine tests
	AKSEngineTests string = "AKSEngineTests"
	// SimDemTests are the SimDem tests
	SimDemTests string = "SimDemTests"
)
View Source
const (
	// Mesos is the string constant for MESOS orchestrator type
	Mesos string = "Mesos"
	// DCOS is the string constant for DCOS orchestrator type and defaults to DCOS188
	DCOS string = "DCOS"
	// Swarm is the string constant for the Swarm orchestrator type
	Swarm string = "Swarm"
	// Kubernetes is the string constant for the Kubernetes orchestrator type
	Kubernetes string = "Kubernetes"
	// SwarmMode is the string constant for the Swarm Mode orchestrator type
	SwarmMode string = "SwarmMode"
	// RecordTestRunTableName for storing RecordTestRun
	RecordTestRunTableName string = "RecordTestRun"
	// PromoteToFailureTableName for storing PromoteToFailure
	PromoteToFailureTableName string = "PromoteToFailure"
)

Variables

This section is empty.

Functions

func RecordTestRun

func RecordTestRun(sa StorageAccount, testRunQos TestRunQos)

RecordTestRun procedure pushes all test result data to RecordTestRun Table

func RunPromoteToFailure

func RunPromoteToFailure(sa StorageAccount, testRunPromToFail DigitalSignalFilter) (bool, error)

RunPromoteToFailure procedure Returns True when Error is Promoted, Else False

Types

type DigitalSignalFilter

type DigitalSignalFilter struct {
	TestName     string // partition key
	TestType     string // row key
	FailureStr   string
	FailureCount float64
}

DigitalSignalFilter structure

type StorageAccount

type StorageAccount struct {
	Name string
	Key  string
}

StorageAccount is how we connect to storage

type TestRunQos

type TestRunQos struct {
	TimeStampUTC   time.Time // partition key
	TestName       string    // row key
	TestType       string
	SubscriptionID string
	ResourceGroup  string
	Region         string
	Orchestrator   string
	Success        bool
	FailureStr     string
}

TestRunQos structure

Jump to

Keyboard shortcuts

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