Documentation ¶
Index ¶
- func Keycloak(ctx context.Context, wg *sync.WaitGroup) (url string)
- func StartTestHttpMock(ctx context.Context, wg *sync.WaitGroup, responseList []HttpMockResponse) (url string, mux *sync.Mutex, requests *[]model.HttpRequest)
- type AuthMock
- type CamundaMock
- func (this *CamundaMock) AddFileToQueue(location string) error
- func (this *CamundaMock) AddToQueue(fetchResult []model.CamundaExternalTask)
- func (this *CamundaMock) Fetch() (result []model.CamundaExternalTask)
- func (this *CamundaMock) PopRequestLog() []Request
- func (this *CamundaMock) Start(ctx context.Context, wg *sync.WaitGroup) (url string)
- type CleanupChecker
- type DbRecorder
- func (this *DbRecorder) CheckExpectedRequests(expectedRequests map[string][]map[string]interface{}) error
- func (this *DbRecorder) CheckExpectedRequestsFromFileLocation(fileLocation string) error
- func (this *DbRecorder) Delete(id string, userId string) error
- func (this *DbRecorder) Fetch(max int64) ([]model.WatchedEntity, error)
- func (this *DbRecorder) Read(id string, userId string) (model.WatchedEntity, error)
- func (this *DbRecorder) Set(init model.WatchedEntityInit) error
- func (this *DbRecorder) UpdateHash(id string, userId string, hash string) error
- type HttpMockResponse
- type HttpService
- func (this *HttpService) CheckExpectedRequests(expectedRequests []Request) error
- func (this *HttpService) CheckExpectedRequestsFromFileLocation(fileLocation string) error
- func (this *HttpService) GetRequestLog() []Request
- func (this *HttpService) PopRequestLog() []Request
- func (this *HttpService) SetResponse(method string, path string, responses []Response)
- func (this *HttpService) SetResponses(responsesMap map[string]map[string][]Response)
- func (this *HttpService) SetResponsesFromFile(fileLocation string) error
- func (this *HttpService) Start(ctx context.Context, wg *sync.WaitGroup) (url string)
- type KeycloakClaims
- type RealmAccess
- type Request
- type Response
- type SmartServiceRepoMock
- func (this *SmartServiceRepoMock) CheckExpectedRequests(expectedRequests []Request) error
- func (this *SmartServiceRepoMock) CheckExpectedRequestsFromFileLocation(fileLocation string) error
- func (this *SmartServiceRepoMock) GetRequestLog() []Request
- func (this *SmartServiceRepoMock) PopRequestLog() []Request
- func (this *SmartServiceRepoMock) Start(ctx context.Context, wg *sync.WaitGroup) (url string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartTestHttpMock ¶
func StartTestHttpMock(ctx context.Context, wg *sync.WaitGroup, responseList []HttpMockResponse) (url string, mux *sync.Mutex, requests *[]model.HttpRequest)
Types ¶
type CamundaMock ¶
type CamundaMock struct { Queue chan []model.CamundaExternalTask // contains filtered or unexported fields }
func NewCamundaMock ¶
func NewCamundaMock() *CamundaMock
func (*CamundaMock) AddFileToQueue ¶
func (this *CamundaMock) AddFileToQueue(location string) error
func (*CamundaMock) AddToQueue ¶
func (this *CamundaMock) AddToQueue(fetchResult []model.CamundaExternalTask)
func (*CamundaMock) Fetch ¶
func (this *CamundaMock) Fetch() (result []model.CamundaExternalTask)
func (*CamundaMock) PopRequestLog ¶
func (this *CamundaMock) PopRequestLog() []Request
type CleanupChecker ¶
type CleanupChecker struct{}
func (CleanupChecker) Check ¶
func (this CleanupChecker) Check(entity model.WatchedEntity) (remove bool, err error)
type DbRecorder ¶
type DbRecorder struct {
// contains filtered or unexported fields
}
func NewDbRecorder ¶
func NewDbRecorder(config configuration.Config, libconfig libconfig.Config, db db.Database) *DbRecorder
func (*DbRecorder) CheckExpectedRequests ¶
func (this *DbRecorder) CheckExpectedRequests(expectedRequests map[string][]map[string]interface{}) error
func (*DbRecorder) CheckExpectedRequestsFromFileLocation ¶
func (this *DbRecorder) CheckExpectedRequestsFromFileLocation(fileLocation string) error
func (*DbRecorder) Fetch ¶
func (this *DbRecorder) Fetch(max int64) ([]model.WatchedEntity, error)
func (*DbRecorder) Read ¶
func (this *DbRecorder) Read(id string, userId string) (model.WatchedEntity, error)
func (*DbRecorder) Set ¶
func (this *DbRecorder) Set(init model.WatchedEntityInit) error
func (*DbRecorder) UpdateHash ¶
func (this *DbRecorder) UpdateHash(id string, userId string, hash string) error
type HttpMockResponse ¶
type HttpService ¶
type HttpService struct { ResponseIndex map[string]map[string]int //method -> path = request-count Response map[string]map[string][]Response //method -> path -> request-count = response // contains filtered or unexported fields }
func (*HttpService) CheckExpectedRequests ¶
func (this *HttpService) CheckExpectedRequests(expectedRequests []Request) error
func (*HttpService) CheckExpectedRequestsFromFileLocation ¶
func (this *HttpService) CheckExpectedRequestsFromFileLocation(fileLocation string) error
func (*HttpService) GetRequestLog ¶
func (this *HttpService) GetRequestLog() []Request
func (*HttpService) PopRequestLog ¶
func (this *HttpService) PopRequestLog() []Request
func (*HttpService) SetResponse ¶
func (this *HttpService) SetResponse(method string, path string, responses []Response)
func (*HttpService) SetResponses ¶
func (this *HttpService) SetResponses(responsesMap map[string]map[string][]Response)
func (*HttpService) SetResponsesFromFile ¶
func (this *HttpService) SetResponsesFromFile(fileLocation string) error
type KeycloakClaims ¶
type KeycloakClaims struct { RealmAccess RealmAccess `json:"realm_access"` jwt.StandardClaims }
type RealmAccess ¶
type RealmAccess struct {
Roles []string `json:"roles"`
}
type SmartServiceRepoMock ¶
type SmartServiceRepoMock struct {
// contains filtered or unexported fields
}
func NewSmartServiceRepoMock ¶
func NewSmartServiceRepoMock(libConfig lib_config.Config, config configuration.Config, moduleListResponse []byte) *SmartServiceRepoMock
func (*SmartServiceRepoMock) CheckExpectedRequests ¶
func (this *SmartServiceRepoMock) CheckExpectedRequests(expectedRequests []Request) error
func (*SmartServiceRepoMock) CheckExpectedRequestsFromFileLocation ¶
func (this *SmartServiceRepoMock) CheckExpectedRequestsFromFileLocation(fileLocation string) error
func (*SmartServiceRepoMock) GetRequestLog ¶
func (this *SmartServiceRepoMock) GetRequestLog() []Request
func (*SmartServiceRepoMock) PopRequestLog ¶
func (this *SmartServiceRepoMock) PopRequestLog() []Request
Click to show internal directories.
Click to hide internal directories.