Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TestCampaign = models.Campaign{
Id: "testCampaignID",
Name: "testCampaignName",
ProjectId: "testProjectID",
Description: "testCampaignDescription",
Type: "toggle",
VariationGroups: &variationGroupsTest,
Scheduler: scheduler,
}
View Source
var TestCampaign1 = models.Campaign{
Id: "testCampaignID1",
Name: "testCampaignName1",
ProjectId: "testProjectID1",
Description: "testCampaignDescription1",
Type: "toggle",
VariationGroups: &variationGroupsTest,
Scheduler: scheduler,
}
View Source
var TestCampaignEdit = models.Campaign{
Id: "testCampaignID",
Name: "testCampaignName1",
ProjectId: "testProjectID1",
Description: "testCampaignDescription1",
Type: "toggle",
VariationGroups: &variationGroupsTest,
Scheduler: scheduler,
}
View Source
var TestCampaignlist = []models.Campaign{ TestCampaign, TestCampaign1, }
View Source
var TestConfiguration = models.Configuration{
Name: "test_configuration",
ClientID: "testConfigurationClientID",
ClientSecret: "testConfigurationClientSecret",
AccountID: "testConfigurationAccountID",
AccountEnvironmentID: "testConfigurationAccountEnvID",
}
View Source
var TestFlag = models.Flag{
Id: "testFlagID",
Name: "testFlagName",
Type: "string",
Description: "testFlagDescription",
Source: "cli",
}
View Source
var TestFlag1 = models.Flag{
Id: "testFlagID1",
Name: "testFlagName1",
Type: "string",
Description: "testFlagDescription1",
Source: "cli",
}
View Source
var TestFlagEdit = models.Flag{
Id: "testFlagID",
Name: "testFlagName1",
Type: "string",
Description: "testFlagDescription1",
Source: "cli",
}
View Source
var TestFlagList = []models.Flag{ TestFlag, TestFlag1, }
View Source
var TestGoal = models.Goal{
Id: "testGoalID",
Label: "testGoalLabel",
Type: "screenview",
Operator: "contains",
Value: "VIP",
}
View Source
var TestGoal1 = models.Goal{
Id: "testGoalID1",
Label: "testGoalLabel1",
Type: "pageview",
Operator: "exact",
Value: "notVIP",
}
View Source
var TestGoalEdit = models.Goal{
Id: "testGoalID",
Label: "testGoalLabel1",
Type: "screenview",
Operator: "contains",
Value: "VIP1",
}
View Source
var TestGoalList = []models.Goal{ TestGoal, TestGoal1, }
View Source
var TestProject = models.Project{
Id: "testProjectID",
Name: "testProjectName",
}
View Source
var TestProject1 = models.Project{
Id: "testProjectID1",
Name: "testProjectName1",
}
View Source
var TestProjectEdit = models.Project{
Id: "testProjectID",
Name: "testProjectName1",
}
View Source
var TestProjectList = []models.Project{ TestProject, TestProject1, }
View Source
var TestTargetingKey = models.TargetingKey{
Id: "testTargetingKeyID",
Name: "testTargetingKeyName",
Type: "string",
Description: "testTargetingKeyDescription",
}
View Source
var TestTargetingKey1 = models.TargetingKey{
Id: "testTargetingKeyID1",
Name: "testTargetingKeyName1",
Type: "string",
Description: "testTargetingKeyDescription1",
}
View Source
var TestTargetingKeyEdit = models.TargetingKey{
Id: "testTargetingKeyID",
Name: "testTargetingKeyName1",
Type: "string",
Description: "testTargetingKeyDescription1",
}
View Source
var TestTargetingKeyList = []models.TargetingKey{ TestTargetingKey, TestTargetingKey1, }
View Source
var TestToken = models.Token{
ClientID: "client_id",
AccountID: "account_id",
ExpiresIn: 0,
Scope: "*",
}
View Source
var TestUserList = []models.User{
{
Email: "example@abtasty.com",
Role: "ADMIN",
},
{
Email: "example1@abtasty.com",
Role: "VIEWER",
},
}
View Source
var TestVariation = models.Variation{ Id: "testVariationID", Name: "testVariationName", Reference: true, Allocation: 50, Modifications: models.Modification{ Type: "string", Value: "isVIP", }, }
View Source
var TestVariation1 = models.Variation{ Id: "testVariationID1", Name: "testVariationName1", Reference: false, Allocation: 80, Modifications: models.Modification{ Type: "string", Value: "isVIP1", }, }
View Source
var TestVariationEdit = models.Variation{ Id: "testVariationID", Name: "testVariationName1", Reference: false, Allocation: 80, Modifications: models.Modification{ Type: "string", Value: "isVIP1", }, }
View Source
var TestVariationGroup = models.VariationGroup{
Id: "testVariationGroupID",
Name: "testVariationGroupName",
Variations: &variations,
Targeting: targeting,
}
View Source
var TestVariationGroup1 = models.VariationGroup{
Id: "testVariationGroupID1",
Name: "testVariationGroupName1",
Variations: &variations,
Targeting: targeting,
}
View Source
var TestVariationGroupEdit = models.VariationGroup{
Id: "testVariationGroupID",
Name: "testVariationGroupName1",
Variations: &variations,
Targeting: targeting,
}
View Source
var TestVariationGroupList = []models.VariationGroup{ TestVariationGroup, TestVariationGroup1, }
View Source
var TestVariationList = []models.Variation{ TestVariation, TestVariation1, }
Functions ¶
func APICampaign ¶
func APICampaign()
func APIProject ¶
func APIProject()
func APITargetingKey ¶
func APITargetingKey()
func APIVariation ¶
func APIVariation()
func APIVariationGroup ¶
func APIVariationGroup()
func InitMockConfiguration ¶ added in v1.0.1
func InitMockConfiguration()
Types ¶
type TestRequest ¶
type TestRequest struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.