totestv4

package
v8.0.0-rc0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const FederationCDNName = "cdn1"

All prerequisite Federations are associated to this cdn and this xmlID

Variables

This section is empty.

Functions

func CreateTestASNs

func CreateTestASNs(t *testing.T, cl *toclient.Session, dat TrafficControl)

func CreateTestCDNFederations

func CreateTestCDNFederations(t *testing.T, cl *toclient.Session, dat TrafficControl)

func CreateTestCDNs

func CreateTestCDNs(t *testing.T, cl *toclient.Session, dat TrafficControl)

func CreateTestCacheGroups

func CreateTestCacheGroups(t *testing.T, cl *toclient.Session, dat TrafficControl)

func CreateTestCachegroupsDeliveryServices

func CreateTestCachegroupsDeliveryServices(t *testing.T, cl *toclient.Session)

func CreateTestCoordinates

func CreateTestCoordinates(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestDeliveryServiceRequestComments

func CreateTestDeliveryServiceRequestComments(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestDeliveryServiceRequests

func CreateTestDeliveryServiceRequests(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestDeliveryServices

func CreateTestDeliveryServices(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestDeliveryServicesRegexes

func CreateTestDeliveryServicesRegexes(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestDeliveryServicesRequiredCapabilities

func CreateTestDeliveryServicesRequiredCapabilities(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestDivisions

func CreateTestDivisions(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestFederationResolvers

func CreateTestFederationResolvers(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestFederationUsers

func CreateTestFederationUsers(t *testing.T, cl *toclient.Session)

func CreateTestJobs

func CreateTestJobs(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestOrigins

func CreateTestOrigins(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestParameters

func CreateTestParameters(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestPhysLocations

func CreateTestPhysLocations(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestProfileParameters

func CreateTestProfileParameters(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestProfiles

func CreateTestProfiles(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestRegions

func CreateTestRegions(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestRoles

func CreateTestRoles(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestServerCapabilities

func CreateTestServerCapabilities(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestServerCheckExtensions

func CreateTestServerCheckExtensions(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestServerChecks

func CreateTestServerChecks(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestServerServerCapabilities

func CreateTestServerServerCapabilities(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestServers

func CreateTestServers(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestServiceCategories

func CreateTestServiceCategories(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestStaticDNSEntries

func CreateTestStaticDNSEntries(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestStatuses

func CreateTestStatuses(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestSteeringTargets

func CreateTestSteeringTargets(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestTenants

func CreateTestTenants(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestTopologies

func CreateTestTopologies(t *testing.T, cl *toclient.Session, td TrafficControl)

func CreateTestTypes

func CreateTestTypes(t *testing.T, cl *toclient.Session, td TrafficControl, db *sql.DB)

func CreateTestUsers

func CreateTestUsers(t *testing.T, cl *toclient.Session, td TrafficControl)

func DeleteTestASNs

func DeleteTestASNs(t *testing.T, cl *toclient.Session)

func DeleteTestCDNFederations

func DeleteTestCDNFederations(t *testing.T, cl *toclient.Session)

func DeleteTestCDNs

func DeleteTestCDNs(t *testing.T, cl *toclient.Session)

func DeleteTestCacheGroups

func DeleteTestCacheGroups(t *testing.T, cl *toclient.Session, dat TrafficControl)

func DeleteTestCachegroupsDeliveryServices

func DeleteTestCachegroupsDeliveryServices(t *testing.T, cl *toclient.Session)

func DeleteTestCoordinates

func DeleteTestCoordinates(t *testing.T, cl *toclient.Session)

func DeleteTestDeliveryServiceRequestComments

func DeleteTestDeliveryServiceRequestComments(t *testing.T, cl *toclient.Session)

func DeleteTestDeliveryServiceRequests

func DeleteTestDeliveryServiceRequests(t *testing.T, cl *toclient.Session)

func DeleteTestDeliveryServices

func DeleteTestDeliveryServices(t *testing.T, cl *toclient.Session)

func DeleteTestDeliveryServicesRegexes

func DeleteTestDeliveryServicesRegexes(t *testing.T, cl *toclient.Session, td TrafficControl, db *sql.DB)

func DeleteTestDeliveryServicesRequiredCapabilities

func DeleteTestDeliveryServicesRequiredCapabilities(t *testing.T, cl *toclient.Session)

func DeleteTestDivisions

func DeleteTestDivisions(t *testing.T, cl *toclient.Session)

func DeleteTestFederationResolvers

func DeleteTestFederationResolvers(t *testing.T, cl *toclient.Session)

func DeleteTestFederationUsers

func DeleteTestFederationUsers(t *testing.T, cl *toclient.Session)

func DeleteTestJobs

func DeleteTestJobs(t *testing.T, cl *toclient.Session)

func DeleteTestOrigins

func DeleteTestOrigins(t *testing.T, cl *toclient.Session)

func DeleteTestParameters

func DeleteTestParameters(t *testing.T, cl *toclient.Session)

func DeleteTestPhysLocations

func DeleteTestPhysLocations(t *testing.T, cl *toclient.Session)

func DeleteTestProfileParameters

func DeleteTestProfileParameters(t *testing.T, cl *toclient.Session)

func DeleteTestProfiles

func DeleteTestProfiles(t *testing.T, cl *toclient.Session)

func DeleteTestRegions

func DeleteTestRegions(t *testing.T, cl *toclient.Session)

func DeleteTestRoles

func DeleteTestRoles(t *testing.T, cl *toclient.Session)

func DeleteTestServerCapabilities

func DeleteTestServerCapabilities(t *testing.T, cl *toclient.Session)

func DeleteTestServerCheckExtensions

func DeleteTestServerCheckExtensions(t *testing.T, cl *toclient.Session, td TrafficControl)

func DeleteTestServerChecks

func DeleteTestServerChecks(*testing.T, *toclient.Session)

Need to define no-op function as TCObj interface expects a delete function There is no delete path for serverchecks

func DeleteTestServerServerCapabilities

func DeleteTestServerServerCapabilities(t *testing.T, cl *toclient.Session)

func DeleteTestServers

func DeleteTestServers(t *testing.T, cl *toclient.Session)

func DeleteTestServiceCategories

func DeleteTestServiceCategories(t *testing.T, cl *toclient.Session)

func DeleteTestStaticDNSEntries

func DeleteTestStaticDNSEntries(t *testing.T, cl *toclient.Session)

func DeleteTestStatuses

func DeleteTestStatuses(t *testing.T, cl *toclient.Session, td TrafficControl)

func DeleteTestSteeringTargets

func DeleteTestSteeringTargets(t *testing.T, cl *toclient.Session, td TrafficControl)

func DeleteTestTenants

func DeleteTestTenants(t *testing.T, cl *toclient.Session)

func DeleteTestTopologies

func DeleteTestTopologies(t *testing.T, cl *toclient.Session)

func DeleteTestTypes

func DeleteTestTypes(t *testing.T, cl *toclient.Session, td TrafficControl, db *sql.DB)

func ForceDeleteTestUsers

func ForceDeleteTestUsers(t *testing.T, cl *toclient.Session, td TrafficControl, db *sql.DB)

ForceDeleteTestUsers forcibly deletes the users from the db. NOTE: Special circumstances! This should *NOT* be done without a really good reason! Connects directly to the DB to remove users rather than going through the client. This is required here because the DeleteUser action does not really delete users, but disables them.

func GetCDNID

func GetCDNID(t *testing.T, cl *toclient.Session, cdnName string) func() int

func GetCacheGroupId

func GetCacheGroupId(t *testing.T, cl *toclient.Session, cacheGroupName string) func() int

func GetDeliveryServiceId

func GetDeliveryServiceId(t *testing.T, cl *toclient.Session, xmlId string) func() int

func GetFederationID

func GetFederationID(t *testing.T, cname string) func() int

func GetFederationResolverID

func GetFederationResolverID(t *testing.T, cl *toclient.Session, ipAddress string) func() int

func GetProfileID

func GetProfileID(t *testing.T, cl *toclient.Session, profileName string) func() int

func GetServerID

func GetServerID(t *testing.T, cl *toclient.Session, hostName string) func() int

func GetTypeId

func GetTypeId(t *testing.T, cl *toclient.Session, typeName string) int

func GetUserID

func GetUserID(t *testing.T, cl *toclient.Session, username string) func() int

Types

type TrafficControl

type TrafficControl struct {
	ASNs                                              []tc.ASN                                `json:"asns"`
	CDNs                                              []tc.CDN                                `json:"cdns"`
	CDNLocks                                          []tc.CDNLock                            `json:"cdnlocks"`
	CacheGroups                                       []tc.CacheGroupNullable                 `json:"cachegroups"`
	Capabilities                                      []tc.Capability                         `json:"capability"`
	Coordinates                                       []tc.Coordinate                         `json:"coordinates"`
	DeliveryServicesRegexes                           []tc.DeliveryServiceRegexesTest         `json:"deliveryServicesRegexes"`
	DeliveryServiceRequests                           []tc.DeliveryServiceRequestV4           `json:"deliveryServiceRequests"`
	DeliveryServiceRequestComments                    []tc.DeliveryServiceRequestComment      `json:"deliveryServiceRequestComments"`
	DeliveryServices                                  []tc.DeliveryServiceV4                  `json:"deliveryservices"`
	DeliveryServicesRequiredCapabilities              []tc.DeliveryServicesRequiredCapability `json:"deliveryservicesRequiredCapabilities"`
	DeliveryServiceServerAssignments                  []tc.DeliveryServiceServers             `json:"deliveryServiceServerAssignments"`
	TopologyBasedDeliveryServicesRequiredCapabilities []tc.DeliveryServicesRequiredCapability `json:"topologyBasedDeliveryServicesRequiredCapabilities"`
	Divisions                                         []tc.Division                           `json:"divisions"`
	Federations                                       []tc.CDNFederation                      `json:"federations"`
	FederationResolvers                               []tc.FederationResolver                 `json:"federation_resolvers"`
	Jobs                                              []tc.InvalidationJobCreateV4            `json:"jobs"`
	Origins                                           []tc.Origin                             `json:"origins"`
	Profiles                                          []tc.Profile                            `json:"profiles"`
	Parameters                                        []tc.Parameter                          `json:"parameters"`
	ProfileParameters                                 []tc.ProfileParameter                   `json:"profileParameters"`
	PhysLocations                                     []tc.PhysLocation                       `json:"physLocations"`
	Regions                                           []tc.Region                             `json:"regions"`
	Roles                                             []tc.RoleV4                             `json:"roles"`
	Servers                                           []tc.ServerV40                          `json:"servers"`
	ServerServerCapabilities                          []tc.ServerServerCapability             `json:"serverServerCapabilities"`
	ServerCapabilities                                []tc.ServerCapabilityV41                `json:"serverCapabilities"`
	ServiceCategories                                 []tc.ServiceCategory                    `json:"serviceCategories"`
	Statuses                                          []tc.StatusNullable                     `json:"statuses"`
	StaticDNSEntries                                  []tc.StaticDNSEntry                     `json:"staticdnsentries"`
	StatsSummaries                                    []tc.StatsSummary                       `json:"statsSummaries"`
	Tenants                                           []tc.Tenant                             `json:"tenants"`
	ServerCheckExtensions                             []tc.ServerCheckExtensionNullable       `json:"servercheck_extensions"`
	Topologies                                        []tc.Topology                           `json:"topologies"`
	Types                                             []tc.Type                               `json:"types"`
	SteeringTargets                                   []tc.SteeringTargetNullable             `json:"steeringTargets"`
	Serverchecks                                      []tc.ServercheckRequestNullable         `json:"serverchecks"`
	Users                                             []tc.UserV4                             `json:"users"`
	InvalidationJobs                                  []tc.InvalidationJobCreateV4            `json:"invalidationJobs"`
	InvalidationJobsRefetch                           []tc.InvalidationJobCreateV4            `json:"invalidationJobsRefetch"`
}

TrafficControl - maps to the tc-fixtures.json file

Jump to

Keyboard shortcuts

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