Documentation ¶
Index ¶
- Constants
- Variables
- func CaptureLogsForTest(echo bool) func() []string
- func CaptureLogsForTestWithChannel(messagesCh chan string, echo bool) func() []string
- func CreateExpiringQueue(t *testing.T, qd *atom.QueueDescription) (string, func())
- func EnableStdoutLogging(t *testing.T)
- func GetConnectionString(t *testing.T) string
- func GetConnectionStringForPremiumSB(t *testing.T) string
- func GetConnectionStringListenOnly(t *testing.T) string
- func GetConnectionStringSendOnly(t *testing.T) string
- func GetConnectionStringWithoutManagePerms(t *testing.T) string
- func GetIdentityVars(t *testing.T) ...
- func MustAMQPUUID() amqp.UUID
- func RandomString(prefix string, length int) string
- func RequireClose(t *testing.T, closeable interface{ ... })
- func RequireLinksClose(t *testing.T, closeable interface{ ... })
- func RequireNSClose(t *testing.T, closeable interface{ ... })
Constants ¶
View Source
const ( BuiltInTestQueue = "testQueue" BuildInTestQueueWithSessions = "testQueueWithSessions" )
these are created by the test-resources.bicep template - they're useful for tests where we don't need to guaranteee any state, just existence, like our connectivity/recovery tests.
Variables ¶
View Source
var LoggingChannelValue atomic.Value
Functions ¶
func CaptureLogsForTest ¶ added in v0.3.6
CaptureLogsForTest adds a logging listener which captures messages to an internal channel. Returns a function that ends log capturing and returns any captured messages. It's safe to call endCapture() multiple times, so a simple call pattern is:
endCapture := CaptureLogsForTest() defer endCapture() // ensure cleanup in case of test assert failures /* some test code */ messages := endCapture() /* do inspection of log messages */
func CaptureLogsForTestWithChannel ¶ added in v0.4.0
func CreateExpiringQueue ¶ added in v0.3.4
func CreateExpiringQueue(t *testing.T, qd *atom.QueueDescription) (string, func())
func EnableStdoutLogging ¶ added in v0.3.6
EnableStdoutLogging turns on logging to stdout for diagnostics.
func GetConnectionString ¶ added in v0.3.0
func GetConnectionStringForPremiumSB ¶ added in v1.0.1
func GetConnectionStringListenOnly ¶ added in v1.3.0
func GetConnectionStringSendOnly ¶ added in v1.3.0
func GetConnectionStringWithoutManagePerms ¶ added in v0.3.0
func GetIdentityVars ¶ added in v1.3.0
func MustAMQPUUID ¶ added in v1.2.0
func MustAMQPUUID() amqp.UUID
func RandomString ¶
RandomString generates a random string with prefix
func RequireClose ¶ added in v1.2.0
func RequireLinksClose ¶ added in v1.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.