harness

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package harness implements test harnesses for integration tests.

Index

Constants

This section is empty.

Variables

View Source
var ACLApplier = ComposeHarness{
	ComposeFilePaths: []string{"../../test/fixtures/compose/1-broker-sasl-plain-compose.yml"},
	ZookeeperPort:    zookeeperPort + 10200,
	BrokerPort:       brokerPort + 10200,
	Brokers:          1,
}

ACLApplier represents the compose harness for the acl applier tests.

View Source
var ACLExporter = ComposeHarness{
	ComposeFilePaths: []string{"../../test/fixtures/compose/1-broker-sasl-plain-compose.yml"},
	ZookeeperPort:    zookeeperPort + 10300,
	BrokerPort:       brokerPort + 10300,
	Brokers:          1,
}

ACLExporter represents the compose harness for the acl exporter tests.

View Source
var BrokerApplier = ComposeHarness{
	ComposeFilePaths: []string{"../../test/fixtures/compose/1-broker-plaintext-compose.yml"},
	ZookeeperPort:    zookeeperPort + 10000,
	BrokerPort:       brokerPort + 10000,
	Brokers:          1,
}

BrokerApplier represents the compose harness for the broker applier tests.

View Source
var BrokerExporter = ComposeHarness{
	ComposeFilePaths: []string{"../../test/fixtures/compose/2-broker-plaintext-compose.yml"},
	ZookeeperPort:    zookeeperPort + 10100,
	BrokerPort:       brokerPort + 10100,
	Brokers:          2,
}

BrokerExporter represents the compose harness for the broker exporter tests.

View Source
var BrokersApplier = ComposeHarness{
	ComposeFilePaths: []string{"../../test/fixtures/compose/1-broker-plaintext-compose.yml"},
	ZookeeperPort:    zookeeperPort + 10200,
	BrokerPort:       brokerPort + 10200,
	Brokers:          1,
}

BrokersApplier represents the compose harness for the brokers applier tests.

View Source
var BrokersExporter = ComposeHarness{
	ComposeFilePaths: []string{"../../test/fixtures/compose/1-broker-plaintext-compose.yml"},
	ZookeeperPort:    zookeeperPort + 10300,
	BrokerPort:       brokerPort + 10300,
	Brokers:          1,
}

BrokersExporter represents the compose harness for the brokers exporter tests.

View Source
var TopicApplier = ComposeHarness{
	ComposeFilePaths: []string{"../../test/fixtures/compose/6-broker-plaintext-compose.yml"},
	ZookeeperPort:    zookeeperPort + 10400,
	BrokerPort:       brokerPort + 10400,
	Brokers:          6,
}

TopicApplier represents the compose harness for the topic applier tests.

View Source
var TopicExporter = ComposeHarness{
	ComposeFilePaths: []string{"../../test/fixtures/compose/1-broker-plaintext-compose.yml"},
	ZookeeperPort:    zookeeperPort + 10500,
	BrokerPort:       brokerPort + 10500,
	Brokers:          1,
}

TopicExporter represents the compose harness for the topic exporter tests.

Functions

This section is empty.

Types

type ComposeHarness

type ComposeHarness struct {
	ComposeFilePaths []string
	ZookeeperPort    int
	BrokerPort       int
	Brokers          int
}

ComposeHarness represents a Docker compose based test harness.

func (ComposeHarness) Env

func (t ComposeHarness) Env() map[string]string

Env returns an environment variable map.

Jump to

Keyboard shortcuts

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