add mirror to daemon reload test for insecure registries

Signed-off-by: Nolan Miles <nolanpmiles@gmail.com>
This commit is contained in:
Nolan Miles 2023-05-17 20:49:40 -04:00
parent 405f4589a6
commit 3b15156e4d

View file

@ -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,
},