harness

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 + 10600,
	BrokerPort:       brokerPort + 10600,
	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 + 10700,
	BrokerPort:       brokerPort + 10700,
	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