testutils

package
v0.57.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlueprintA

func BlueprintA(t testing.TB, ctx context.Context, name ...string) *apstra.TwoStageL3ClosClient

func BlueprintConfigletA added in v0.35.0

func BlueprintConfigletA(t testing.TB, ctx context.Context, client *apstra.TwoStageL3ClosClient, cid apstra.ObjectId, condition string) apstra.ObjectId

func CatalogConfigletA added in v0.35.0

func CatalogConfigletA(t testing.TB, ctx context.Context, client *apstra.Client) (apstra.ObjectId, *apstra.ConfigletData)

func GetTestClient

func GetTestClient(t testing.TB, ctx context.Context) *apstra.Client

func Ipv4PoolA

func Ipv4PoolA(t testing.TB, ctx context.Context) *apstra.IpPool

func Ipv4PoolB

func Ipv4PoolB(t testing.TB, ctx context.Context) *apstra.IpPool

func MakeOrFindBlueprint added in v0.35.0

func MakeOrFindBlueprint(t testing.TB, ctx context.Context, name string, f bFunc) *apstra.TwoStageL3ClosClient

func PropertySetA

func PropertySetA(t testing.TB, ctx context.Context) *apstra.PropertySet

func RackTypeA

func RackTypeA(t testing.TB, ctx context.Context) *apstra.RackType

RackTypeA has: - 1 leaf switch with 10G uplink - 1 access switch

func RackTypeB

func RackTypeB(t testing.TB, ctx context.Context) *apstra.RackType

RackTypeB has: - 1 leaf switch ESI pair with 10G uplink - 1 access switch dual-homed to ESI leaf "A" - 1 pair (count = 2) access switches single-homed to ESI leaf "B"

func RackTypeC

func RackTypeC(t testing.TB, ctx context.Context) *apstra.RackType

RackTypeC has: - 1 leaf switch ESI pair with 10G uplink - 1 access switch dual-homed to both ESI leaf switches

func RackTypeD

func RackTypeD(t testing.TB, ctx context.Context) *apstra.RackType

RackTypeD has: - 1 leaf switch ESI pair with 10G uplink - 1 access switch single homed to ESI leaf "A" - 1 access switch ESI pair - 1 access switch single homed to ESI leaf "B"

func RackTypeE

func RackTypeE(t testing.TB, ctx context.Context) *apstra.RackType

RackTypeE has: - 1 leaf switch MLAG pair with 10G uplink - 1 access switch homed to the first MLAG peer - 1 access switch homed to the second MLAG peer - 1 access switch homed to both MLAG peers

func RackTypeF

func RackTypeF(t testing.TB, ctx context.Context) *apstra.RackType

func RoutingPolicyA

func RoutingPolicyA(t testing.TB, ctx context.Context, client *apstra.TwoStageL3ClosClient) apstra.ObjectId

func SecurityZoneA

func SecurityZoneA(t testing.TB, ctx context.Context, client *apstra.TwoStageL3ClosClient) apstra.ObjectId

func TagA

func TagA(t testing.TB, ctx context.Context) *apstra.DesignTag

func TemplateA

func TemplateA(t testing.TB, ctx context.Context) *apstra.TemplateRackBased

func TemplateB

func TemplateB(t testing.TB, ctx context.Context) *apstra.TemplateRackBased

func TemplateC

func TemplateC(t testing.TB, ctx context.Context) *apstra.TemplateRackBased

func TemplateD

func TemplateD(t testing.TB, ctx context.Context) *apstra.TemplateRackBased

func TemplateE

func TemplateE(t testing.TB, ctx context.Context) *apstra.TemplateRackBased

func TestWidgetsAB added in v0.37.0

TestWidgetsAB instantiates two predefined probes and creates widgets from them, returning the widget Object Id and the IbaWidgetData object used for creation

func VniPool added in v0.52.4

func VniPool(t testing.TB, ctx context.Context, first, last uint32, cleanup bool) *apstra.VniPool

Types

This section is empty.

Jump to

Keyboard shortcuts

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