forked from TrueCloudLab/distribution
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:
parent
90ece48d77
commit
d2e16fc74a
1 changed files with 11 additions and 7 deletions
|
@ -52,14 +52,18 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
azureDriverConstructor := func() (storagedriver.StorageDriver, error) {
|
azureDriverConstructor := func() (storagedriver.StorageDriver, error) {
|
||||||
params := Parameters{
|
parameters := map[string]interface{}{
|
||||||
Container: container,
|
"container": container,
|
||||||
AccountName: accountName,
|
"accountname": accountName,
|
||||||
AccountKey: accountKey,
|
"accountkey": accountKey,
|
||||||
Realm: realm,
|
"realm": realm,
|
||||||
RootDirectory: rootDirectory,
|
"rootdirectory": rootDirectory,
|
||||||
}
|
}
|
||||||
return New(¶ms)
|
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
|
// Skip Azure storage driver tests if environment variable parameters are not provided
|
||||||
|
|
Loading…
Reference in a new issue