registry/storage/driver/azure: fix driver parameters on tests

fixes "azure: no Host in request URL" tests failure, allowing azure
driver tests to run.

Signed-off-by: Flavian Missi <fmissi@redhat.com>
This commit is contained in:
Flavian Missi 2023-05-30 09:23:17 +02:00
parent 90ece48d77
commit d2e16fc74a

View file

@ -52,14 +52,18 @@ func init() {
}
azureDriverConstructor := func() (storagedriver.StorageDriver, error) {
params := Parameters{
Container: container,
AccountName: accountName,
AccountKey: accountKey,
Realm: realm,
RootDirectory: rootDirectory,
parameters := map[string]interface{}{
"container": container,
"accountname": accountName,
"accountkey": accountKey,
"realm": realm,
"rootdirectory": rootDirectory,
}
return New(&params)
params, err := NewParameters(parameters)
if err != nil {
return nil, err
}
return New(params)
}
// Skip Azure storage driver tests if environment variable parameters are not provided