Documentation ¶
Index ¶
- Constants
- Variables
- func AndExamplePilotManualParticipatingIsSetTo(s *testcase.Spec, isParticipating bool)
- func AndReleaseFlagRolloutPercentageIs(s *testcase.Spec, rolloutLVN string, percentage int)
- func ContextGet(t *testcase.T) context.Context
- func CreateToken(t *testcase.T, tokenOwner string) (string, *security.Token)
- func ExampleDeploymentEnvironment(t *testcase.T) *release.Environment
- func ExampleExternalPilotID(t *testcase.T) string
- func ExampleIDGet(t *testcase.T) string
- func ExampleReleaseFlag(t *testcase.T) *release.Flag
- func ExampleReleaseManualPilotEnrollment(t *testcase.T) *release.Pilot
- func ExampleReleaseRollout(t *testcase.T) *release.Rollout
- func ExampleRolloutManager(t *testcase.T) *release.RolloutManager
- func ExampleTextToken(t *testcase.T) string
- func ExampleToken(t *testcase.T) *security.Token
- func ExampleUniqueUserID(t *testcase.T) string
- func ExampleUseCases(t *testcase.T) *toggler.UseCases
- func FindStoredReleaseFlagByName(t *testcase.T, name string) *release.Flag
- func FixtureFactoryGet(t *testcase.T) frameless.FixtureFactory
- func FixtureFactoryLet(s *testcase.Spec, blk func(testing.TB) frameless.FixtureFactory)
- func GetDeploymentEnvironment(t *testcase.T, vn string) *release.Environment
- func GetReleaseFlag(t *testcase.T, lvn string) *release.Flag
- func GetReleaseRollout(t *testcase.T, vn string) *release.Rollout
- func GetReleaseRolloutPlan(t *testcase.T, rolloutLVN string) release.RolloutPlan
- func GetUseCases(t *testcase.T, varName string) *toggler.UseCases
- func GivenHTTPRequestHasAppToken(s *testcase.Spec)
- func GivenWeHaveDeploymentEnvironment(s *testcase.Spec, vn string) testcase.Var
- func GivenWeHaveReleaseFlag(s *testcase.Spec, vn string)
- func GivenWeHaveReleasePilot(s *testcase.Spec, vn string) testcase.Var
- func GivenWeHaveReleaseRollout(s *testcase.Spec, vn, flagLVN, envLVN string)
- func NewFixtureFactory(tb testing.TB) frameless.FixtureFactory
- func NewSpec(tb testing.TB) *testcase.Spec
- func NoDeploymentEnvironmentPresentInTheStorage(s *testcase.Spec)
- func NoReleaseFlagPresentInTheStorage(s *testcase.Spec)
- func NoReleasePilotPresentInTheStorage(s *testcase.Spec)
- func NoReleaseRolloutPresentInTheStorage(s *testcase.Spec)
- func ReleasePilotGet(t *testcase.T, v testcase.Var) *release.Pilot
- func SetUp(s *testcase.Spec)
- func SpecPilotEnrolmentIs(t *testcase.T, enrollment bool)
- func StorageGet(t *testcase.T) toggler.Storage
Constants ¶
View Source
const ( LetVarExampleReleaseManualPilotEnrollment = `ExampleReleaseManualPilotEnrollment` LetVarExampleReleaseRollout = `example release rollout` LetVarExampleReleaseFlag = `example release flag` LetVarExamplePilotExternalID = `PilotExternalID` LetVarExamplePilot = `ManualPilot` LetVarExamplePilotEnrollment = `PilotEnrollment` )
View Source
const ( LetVarExampleToken = `example token` LetVarTokenText = `example token as text` LetVarUniqueUserID = `UniqUserID` )
View Source
const LetVarExampleDeploymentEnvironment = `example deployment environment`
View Source
const LetVarExampleUseCases = `LetVarExampleUseCases`
View Source
const ( // TagBlackBox means that the test currently using mechanism that makes the system act like black box. // Such case is when the system is used E2E through an external interface such as HTTP over TCP. // // When black box tag is provided it is expected that components in the tests should behave as real as possible. // For example there shouldn't be transaction bounded with the context, or similar things. TagBlackBox = `black-box` )
Variables ¶
View Source
var ( Context = testcase.Var{ Name: `common testing context`, Init: func(t *testcase.T) interface{} { return context.Background() }, } ExampleID = testcase.Var{ Name: `example unique ID`, Init: func(t *testcase.T) interface{} { return fixtures.Random.String() }, } )
View Source
var FixtureFactory = testcase.Var{Name: "contracts.FixtureFactory"}
View Source
var Storage = testcase.Var{
Name: `toggler.Storage`,
Init: storageInit,
OnLet: storageOnLet,
}
Functions ¶
func ExampleDeploymentEnvironment ¶
func ExampleDeploymentEnvironment(t *testcase.T) *release.Environment
func ExampleExternalPilotID ¶
func ExampleIDGet ¶
func ExampleRolloutManager ¶
func ExampleRolloutManager(t *testcase.T) *release.RolloutManager
func ExampleTextToken ¶
func ExampleUniqueUserID ¶
func FixtureFactoryGet ¶
func FixtureFactoryGet(t *testcase.T) frameless.FixtureFactory
func FixtureFactoryLet ¶
func GetDeploymentEnvironment ¶
func GetDeploymentEnvironment(t *testcase.T, vn string) *release.Environment
func GetReleaseRolloutPlan ¶
func GetReleaseRolloutPlan(t *testcase.T, rolloutLVN string) release.RolloutPlan
func GivenWeHaveReleaseFlag ¶
func GivenWeHaveReleasePilot ¶
func NewFixtureFactory ¶
func NewFixtureFactory(tb testing.TB) frameless.FixtureFactory
func SpecPilotEnrolmentIs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.