Skip to content

Commit

Permalink
add mirror to daemon reload test for insecure registries
Browse files Browse the repository at this point in the history
Signed-off-by: Nolan Miles <nolanpmiles@gmail.com>
(cherry picked from commit 3b15156)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
miles-to-go authored and thaJeztah committed May 18, 2023
1 parent ea662c5 commit f9b886c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daemon/reload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit f9b886c

Please sign in to comment.