mirror of
https://github.com/distribution/distribution.git
synced 2025-08-20 07:45:33 +00:00
* Make copy poll max retry, a global driver max retry * Get support for etags in Azure * Fix storage driver tests * Fix auth mess and update docs * Refactor Azure client and enable Azure storage tests We use Azurite for integration testing which requires TLS, so we had to figure out how to skip TLS verification when running tests locally: this required updating testsuites Driver and constructor due to TestRedirectURL sending GET and HEAD requests to remote storage which in this case is Azurite. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
21 lines
490 B
Go
21 lines
490 B
Go
package inmemory
|
|
|
|
import (
|
|
"testing"
|
|
|
|
storagedriver "github.com/distribution/distribution/v3/registry/storage/driver"
|
|
"github.com/distribution/distribution/v3/registry/storage/driver/testsuites"
|
|
)
|
|
|
|
func newDriverConstructor() (storagedriver.StorageDriver, error) {
|
|
return New(), nil
|
|
}
|
|
|
|
func TestInMemoryDriverSuite(t *testing.T) {
|
|
testsuites.Driver(t, newDriverConstructor, false)
|
|
}
|
|
|
|
func BenchmarkInMemoryDriverSuite(b *testing.B) {
|
|
testsuites.BenchDriver(b, newDriverConstructor)
|
|
}
|