- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewStub (0.05 sec)
-
internal/kms/stub.go
StubCreatedAt = time.Date(2024, time.January, 1, 15, 0, 0, 0, time.UTC) // StubCreatedBy is a constant created identity for testing StubCreatedBy = "MinIO" ) // NewStub returns a stub of KMS for testing func NewStub(defaultKeyName string) *KMS { return &KMS{ Type: Builtin, DefaultKey: defaultKeyName, latencyBuckets: defaultLatencyBuckets,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 3.6K bytes - Viewed (0) -
cmd/kms-handlers_test.go
t.Errorf("want status code %d, got %d", http.StatusNotImplemented, rec.Code) } }) } // Test when the GlobalKMS is configured but the credentials are invalid GlobalKMS = kms.NewStub("default-test-key") for _, test := range tests { t.Run(test.name+" invalid credentials", func(t *testing.T) { req := buildKMSRequest(t, test.method, test.path, userAccessKey, userSecretKey, test.query)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 22.3K bytes - Viewed (0)