add mirror to daemon reload test for insecure registries
Signed-off-by: Nolan Miles <nolanpmiles@gmail.com>
This commit is contained in:
parent
405f4589a6
commit
3b15156e4d
1 changed files with 6 additions and 0 deletions
|
@ -238,13 +238,19 @@ func TestDaemonReloadInsecureRegistries(t *testing.T) {
|
|||
"docker3.example.com", // this will be newly added
|
||||
}
|
||||
|
||||
mirrors := []string{
|
||||
"https://mirror.test.example.com",
|
||||
}
|
||||
|
||||
valuesSets := make(map[string]interface{})
|
||||
valuesSets["insecure-registries"] = insecureRegistries
|
||||
valuesSets["registry-mirrors"] = mirrors
|
||||
|
||||
newConfig := &config.Config{
|
||||
CommonConfig: config.CommonConfig{
|
||||
ServiceOptions: registry.ServiceOptions{
|
||||
InsecureRegistries: insecureRegistries,
|
||||
Mirrors: mirrors,
|
||||
},
|
||||
ValuesSet: valuesSets,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue