From 3b15156e4d317b093ddcbb59e0ce75cadc6b97dc Mon Sep 17 00:00:00 2001 From: Nolan Miles Date: Wed, 17 May 2023 20:49:40 -0400 Subject: [PATCH] add mirror to daemon reload test for insecure registries Signed-off-by: Nolan Miles --- daemon/reload_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon/reload_test.go b/daemon/reload_test.go index 0d72f1dd4c..5e35bbad47 100644 --- a/daemon/reload_test.go +++ b/daemon/reload_test.go @@ -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, },