config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CF struct {
		API struct {
			Endpoint string `yaml:"endpoint"`
		} `yaml:"api"`
		Admin struct {
			Username string `yaml:"username"`
			Password string `yaml:"password"`
		} `yaml:"admin"`
	} `yaml:"cf"`

	Minibroker struct {
		API struct {
			Endpoint string `yaml:"endpoint"`
		} `yaml:"api"`
		Provisioning struct {
			OverrideParams struct {
				Enabled bool `yaml:"enabled"`
			} `yaml:"override_params"`
		} `yaml:"provisioning"`
	} `yaml:"minibroker"`

	Tests struct {
		MariaDB    TestConfig `yaml:"mariadb"`
		MongoDB    TestConfig `yaml:"mongodb"`
		MySQL      TestConfig `yaml:"mysql"`
		PostgreSQL TestConfig `yaml:"postgresql"`
		RabbitMQ   TestConfig `yaml:"rabbitmq"`
		Redis      TestConfig `yaml:"redis"`
	} `yaml:"tests"`

	Timeouts Timeouts `yaml:"timeouts"`
}

Config is the top-level configuration definition for the test suite.

func Load

func Load(configPath string) (*Config, error)

Load loads a configuration file from configPath.

type TestConfig

type TestConfig struct {
	Enabled bool   `yaml:"enabled"`
	Class   string `yaml:"class"`
	Plan    string `yaml:"plan"`
}

TestConfig represents the configuration for an individual test.

type Timeouts

type Timeouts struct {
	CFPush          time.Duration `yaml:"cf_push"`
	CFStart         time.Duration `yaml:"cf_start"`
	CFCreateService time.Duration `yaml:"cf_create_service"`
}

Timeouts aggregates the timeouts configuration.

Jump to

Keyboard shortcuts

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