testsetup

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	CollectorPort        = 4444
	AgentPort            = 4445
	HttpProxyPort        = 3128
	ActualHttpsProxyPort = 3129
	HttpProxyName        = "http-proxy"
	ActualHttpsProxyName = "https-proxy"
	CaBundleDir          = "/cabundle"
	CollectorCertFile    = CaBundleDir + "/collector.pem"
	CollectorKeyFile     = CaBundleDir + "/collector.key"
)

Some data that may be also bundled in the testing configuration files (Dockerfiles, bash scripts...)

Variables

View Source
var (
	HttpProxy        = fmt.Sprintf("http://%s:%d", HttpProxyName, HttpProxyPort)
	HttpsProxy       = fmt.Sprintf("https://%s:%d", HttpProxyName, HttpProxyPort)
	ActualHttpsProxy = fmt.Sprintf("https://%s:%d", ActualHttpsProxyName, ActualHttpsProxyPort)
)

Addresses to be run inside a container

View Source
var (
	AgentRestart       = fmt.Sprintf("http://localhost:%d/restart", AgentPort)
	Collector          = fmt.Sprintf("https://localhost:%d", CollectorPort)
	CollectorCleanup   = Collector + "/cleanup"
	CollectorNextEvent = Collector + "/nextevent"
	CollectorUsedProxy = Collector + "/lastproxy"
)

Addresses to be run from the tests (through the exposed ports)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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