Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildFlexRunner ¶
type ChildFlexRunner struct { // Path to nri-flex executable BinPath string // Configuration file path ConfigPath string // captures stdout LogStdout strings.Builder // captures sterr LogStderr strings.Builder // contains filtered or unexported fields }
childInfraRunner implements the FlexRunner interface as a child process on the same machine
func NewChildFlexRunner ¶
func NewChildFlexRunner(binPath, configPath string) *ChildFlexRunner
func (*ChildFlexRunner) Results ¶
func (cr *ChildFlexRunner) Results() (string, string, error)
return stdout and stderr files
func (*ChildFlexRunner) Run ¶
func (cr *ChildFlexRunner) Run() error
type ExecutionValidator ¶
type FlexRunner ¶
type IntegrationValidator ¶
type IntegrationValidator struct {
// contains filtered or unexported fields
}
IntegrationValidator validates an integration stdout
func NewIntegrationValidator ¶
func NewIntegrationValidator(stdout, stderr string) (*IntegrationValidator, error)
NewIntegrationValidator returns a new IntegrationValidator instance
type TestCase ¶
type TestCase struct {
// contains filtered or unexported fields
}
func NewTestCase ¶
func NewTestCase(t *testing.T, f FlexRunner, v ExecutionValidator) *TestCase
Click to show internal directories.
Click to hide internal directories.