Documentation ¶
Index ¶
- Constants
- func RandInt() int
- func RandPrefixString(prefix string, strlen int) string
- func RandString(strlen int) string
- func RandStringFromCharSet(strlen int, charSet string) string
- func Test(t *testing.T, c TestCase)
- type AssertFunc
- type AzureStateBag
- type Step
- type StepAction
- type StepAssert
- type StepCreateResourceGroup
- type StepRegisterResourceProvider
- type StepRunCommand
- type TestCase
Constants ¶
View Source
const ( StateCancelled = "cancelled" StateHalted = "halted" )
View Source
const ( // CharSetAlphaNum is the alphanumeric character set for use with // RandStringFromCharSet CharSetAlphaNum = "abcdefghijklmnopqrstuvwxyz012346789" // CharSetAlpha is the alphabetical character set for use with // RandStringFromCharSet CharSetAlpha = "abcdefghijklmnopqrstuvwxyz" )
View Source
const TestEnvVar = "RIVIERA_TEST"
Variables ¶
This section is empty.
Functions ¶
func RandPrefixString ¶
RandPrefixString generates a random alphanumeric string of the length specified with the given prefix
func RandString ¶
RandString generates a random alphanumeric string of the length specified
func RandStringFromCharSet ¶
RandStringFromCharSet generates a random string by selecting characters from the charset provided
Types ¶
type AssertFunc ¶
type AssertFunc func(AzureStateBag) error
type AzureStateBag ¶
type Step ¶
type Step interface { Run(AzureStateBag) StepAction Cleanup(AzureStateBag) }
type StepAssert ¶
func (*StepAssert) Cleanup ¶
func (s *StepAssert) Cleanup(state AzureStateBag)
func (*StepAssert) Run ¶
func (s *StepAssert) Run(state AzureStateBag) StepAction
type StepCreateResourceGroup ¶
func (*StepCreateResourceGroup) Cleanup ¶
func (s *StepCreateResourceGroup) Cleanup(state AzureStateBag)
func (*StepCreateResourceGroup) Run ¶
func (s *StepCreateResourceGroup) Run(state AzureStateBag) StepAction
type StepRegisterResourceProvider ¶
type StepRegisterResourceProvider struct {
Namespace string
}
func (*StepRegisterResourceProvider) Cleanup ¶
func (s *StepRegisterResourceProvider) Cleanup(state AzureStateBag)
func (*StepRegisterResourceProvider) Run ¶
func (s *StepRegisterResourceProvider) Run(state AzureStateBag) StepAction
type StepRunCommand ¶
type StepRunCommand struct { RunCommand azure.APICall CleanupCommand azure.APICall StateCommandURIKey string StateCommand azure.APICall StateBagKey string }
func (*StepRunCommand) Cleanup ¶
func (s *StepRunCommand) Cleanup(state AzureStateBag)
func (*StepRunCommand) Run ¶
func (s *StepRunCommand) Run(state AzureStateBag) StepAction
type TestCase ¶
type TestCase struct { Steps []Step State AzureStateBag }
Click to show internal directories.
Click to hide internal directories.