func (*ConfigSuite) TestProxyConfigMap(c *gc.C) { defer makeFakeHome(c).Restore() cfg := newTestConfig(c, testing.Attrs{}) proxy := osenv.ProxySettings{ Http: "http proxy", Https: "https proxy", Ftp: "ftp proxy", NoProxy: "no proxy", } cfg, err := cfg.Apply(config.ProxyConfigMap(proxy)) c.Assert(err, gc.IsNil) c.Assert(cfg.ProxySettings(), gc.DeepEquals, proxy) // Apt proxy and proxy differ by the content of the no-proxy values. proxy.NoProxy = "" c.Assert(cfg.AptProxySettings(), gc.DeepEquals, proxy) }