Documentation
¶
Overview ¶
Package harness implements test harnesses for integration tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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.
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.
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.
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.
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.