Documentation ¶
Index ¶
- type Tester
- func (t *Tester) ExpectAPM() bool
- func (t *Tester) ExpectCWS() bool
- func (t *Tester) ExpectPython2Installed() bool
- func (t *Tester) InstallAgent(tt *testing.T, args string, logfile string) error
- func (t *Tester) InstallAgentPackage(tt *testing.T, agentPackage *windowsAgent.Package, args string, logfile string) (string, error)
- func (t *Tester) TestExpectations(tt *testing.T) bool
- func (t *Tester) TestRuntimeExpectations(tt *testing.T)
- func (t *Tester) TestUninstall(tt *testing.T, logfile string) bool
- type TesterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tester ¶
type Tester struct { InstallTestClient *common.TestClient // contains filtered or unexported fields }
Tester is a test helper for testing agent installations
func NewTester ¶
func NewTester(tt *testing.T, host *components.RemoteHost, opts ...TesterOption) (*Tester, error)
NewTester creates a new Tester
func (*Tester) ExpectPython2Installed ¶
ExpectPython2Installed returns true if the agent is expected to install Python2
func (*Tester) InstallAgent ¶
InstallAgent installs the agent
func (*Tester) InstallAgentPackage ¶
func (t *Tester) InstallAgentPackage(tt *testing.T, agentPackage *windowsAgent.Package, args string, logfile string) (string, error)
InstallAgentPackage installs the agent and returns any errors
func (*Tester) TestExpectations ¶
TestExpectations tests the current agent installation meets the expectations provided to the Tester
func (*Tester) TestRuntimeExpectations ¶
TestRuntimeExpectations tests the runtime behavior of the agent
type TesterOption ¶
type TesterOption func(*Tester)
TesterOption is a function that can be used to configure a Tester
func WithAgentPackage ¶
func WithAgentPackage(agentPackage *windowsAgent.Package) TesterOption
WithAgentPackage sets the agent package to be installed
func WithPreviousVersion ¶
func WithPreviousVersion() TesterOption
WithPreviousVersion sets the Tester to expect a previous version of the agent to be installed and will not run all tests since expectations may have changed.