Deprecated: The latest supported version of this library is at github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus

package test

import "github.com/Azure/azure-service-bus-go/internal/test"

Index

Functions

func RandomString

func RandomString(prefix string, length int) string

RandomString generates a random string with prefix

Types

type BaseSuite

type BaseSuite struct {
	suite.Suite
	TenantID       string
	SubscriptionID string
	ClientID       string
	ClientSecret   string
	ConnStr        string
	Location       string
	Namespace      string
	ResourceGroup  string
	Token          *adal.ServicePrincipalToken
	Environment    azure.Environment
	TagID          string
	// contains filtered or unexported fields
}

BaseSuite encapsulates a end to end test of Service Bus with build up and tear down of all SB resources

func (*BaseSuite) RandomName

func (suite *BaseSuite) RandomName(prefix string, length int) string

RandomName generates a random Event Hub name tagged with the suite id

func (*BaseSuite) SetupSuite

func (suite *BaseSuite) SetupSuite()

SetupSuite prepares the test suite and provisions a standard Service Bus Namespace

func (*BaseSuite) TearDownSuite

func (suite *BaseSuite) TearDownSuite()

TearDownSuite destroys created resources during the run of the suite

Source Files

test.go

Version
v0.11.5 (latest)
Published
Nov 16, 2021
Platform
linux/amd64
Imports
13 packages
Last checked
3 months ago

Tools for package owners.