rabbit

package
v0.0.0-...-d99090c Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0, Apache-2.0, MIT Imports: 15 Imported by: 0

README

RabbitMq test plan

The test cases within this test plan use a RabbitMq broker to transmit messages from producers to consumers. All test cases will fail (ie. the testground runner will fail to connect to the RabbitMq broker) if you haven't started a RabbitMq docker image in the testground-control network.

Getting started

Navigate to the project root directory

# Start RabbitMq:
make start_docker_rabbit

# Import the plan
testground plan import --from . --name tg-learning

# Run a test case
testground run single --plan tg-learning --testcase rabbit-4to1 --builder docker:generic --runner local:docker --instances 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailingPolicy

func FailingPolicy(runenv *runtime.RunEnv, initCtx *run.InitContext) error

A test with composed with 2 instances, aimed to fail (routing policy will block connection to rabbit broker)

func FailingTimeout

func FailingTimeout(runenv *runtime.RunEnv, initCtx *run.InitContext) error

A test with composed with 2 instances, aimed to fail (no messages will be sent by the producer)

func FourToOne

func FourToOne(runenv *runtime.RunEnv, initCtx *run.InitContext) error

A test composed of 4 instances: one is a consumer, and the other threee are producers

func OneOnOne

func OneOnOne(runenv *runtime.RunEnv, initCtx *run.InitContext) error

A test composed of 2 instances: one is the producer, and the other the consumer

Types

type RabbitTestParams

type RabbitTestParams struct {
	MessagesByNode int
	RoutingPolicy  network.RoutingPolicyType
}

Jump to

Keyboard shortcuts

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