Documentation
¶
Index ¶
- Constants
- func BuildApiBlackBoxWithDBState(t TB, sqlFile string, expectedPeerUpdate *server.UpdateMessage, ...) (http.Handler, server.AccountManager, chan struct{})
- func BuildRequest(t TB, requestBody []byte, requestType, requestPath, user string) *http.Request
- func EvaluateBenchmarkResults(b *testing.B, name string, duration time.Duration, ...)
- func PopulateTestData(b *testing.B, am *server.DefaultAccountManager, ...)
- func ReadResponse(t *testing.T, recorder *httptest.ResponseRecorder, expectedStatus int, ...) ([]byte, bool)
- type BenchmarkCase
- type PerformanceMetrics
- type TB
Constants ¶
View Source
const ( TestAccountId = "testAccountId" TestPeerId = "testPeerId" TestGroupId = "testGroupId" TestKeyId = "testKeyId" TestUserId = "testUserId" TestAdminId = "testAdminId" TestOwnerId = "testOwnerId" TestServiceUserId = "testServiceUserId" TestServiceAdminId = "testServiceAdminId" BlockedUserId = "blockedUserId" OtherUserId = "otherUserId" InvalidToken = "invalidToken" NewKeyName = "newKey" NewGroupId = "newGroupId" ExpiresIn = 3600 RevokedKeyId = "revokedKeyId" ExpiredKeyId = "expiredKeyId" ExistingKeyName = "existingKey" )
Variables ¶
This section is empty.
Functions ¶
func BuildApiBlackBoxWithDBState ¶
func BuildApiBlackBoxWithDBState(t TB, sqlFile string, expectedPeerUpdate *server.UpdateMessage, validateUpdate bool) (http.Handler, server.AccountManager, chan struct{})
func BuildRequest ¶
func EvaluateBenchmarkResults ¶
func EvaluateBenchmarkResults(b *testing.B, name string, duration time.Duration, perfMetrics PerformanceMetrics, recorder *httptest.ResponseRecorder)
func PopulateTestData ¶
func PopulateTestData(b *testing.B, am *server.DefaultAccountManager, peers, groups, users, setupKeys int)
func ReadResponse ¶
Types ¶
type BenchmarkCase ¶
BenchmarkCase defines a single benchmark test case
Click to show internal directories.
Click to hide internal directories.