Documentation ¶
Index ¶
- Constants
- type MockNRDBClient
- func (c *MockNRDBClient) Attempts() int
- func (c *MockNRDBClient) QueryWithContext(ctx context.Context, accountID int, nrql nrdb.NRQL) (*nrdb.NRDBResultContainer, error)
- func (c *MockNRDBClient) ReturnResultsAfterNAttempts(before []nrdb.NRDBResult, after []nrdb.NRDBResult, attempts int)
- func (c *MockNRDBClient) ThrowError(message string)
- type MockRecipeValidator
- type PollingRecipeValidator
- type RecipeValidator
Constants ¶
View Source
const (
TestIdentifierKey contextKey = iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNRDBClient ¶
type MockNRDBClient struct {
// contains filtered or unexported fields
}
func NewMockNRDBClient ¶
func NewMockNRDBClient() *MockNRDBClient
func (*MockNRDBClient) Attempts ¶
func (c *MockNRDBClient) Attempts() int
func (*MockNRDBClient) QueryWithContext ¶
func (c *MockNRDBClient) QueryWithContext(ctx context.Context, accountID int, nrql nrdb.NRQL) (*nrdb.NRDBResultContainer, error)
func (*MockNRDBClient) ReturnResultsAfterNAttempts ¶
func (c *MockNRDBClient) ReturnResultsAfterNAttempts(before []nrdb.NRDBResult, after []nrdb.NRDBResult, attempts int)
func (*MockNRDBClient) ThrowError ¶
func (c *MockNRDBClient) ThrowError(message string)
type MockRecipeValidator ¶
type MockRecipeValidator struct { ValidateErrs []error ValidateErr error ValidateCallCount int ValidateVal string ValidateVals []string }
func NewMockRecipeValidator ¶
func NewMockRecipeValidator() *MockRecipeValidator
type PollingRecipeValidator ¶
type PollingRecipeValidator struct {
// contains filtered or unexported fields
}
PollingRecipeValidator is an implementation of the RecipeValidator interface that polls NRDB to assert data is being reported for the given recipe.
func NewPollingRecipeValidator ¶
func NewPollingRecipeValidator(c nrdbClient) *PollingRecipeValidator
NewPollingRecipeValidator returns a new instance of PollingRecipeValidator.
type RecipeValidator ¶
type RecipeValidator interface {
Validate(context.Context, types.DiscoveryManifest, types.Recipe) (entityGUID string, err error)
}
RecipeValidator validates installation of a recipe.
Click to show internal directories.
Click to hide internal directories.