WIP: networker skeleton

worker: networker skeleton

This RP is a skeleton for the future networker based on StringsWorker

Continue of work from: https://github.com/juju/juju/pull/86
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11.07.2014 09:39, Vladislav Klyachin wrote:
> In worker/networker/networker_test.go:
> 
>> +		func(name string) bool { +			return
>> strings.Contains(interfacesWithAddress, "|"+name+"|") +		}) + +
>> // Path the command executor +
>> s.PatchValue(&networker.ExecuteCommands, +		func(commands
>> []string) error { +			s.executorCommands = commands +
>> close(s.executorHasFinished) +			return nil +		}) +
>> s.executorHasFinished = make(chan struct{}) + +	// Create and
>> setup networker. +	nw := networker.NewNetworker(s.networkerState,
>> agentConfig(s.machine.Tag().String())) +	defer func() {
>> c.Assert(worker.Stop(nw), gc.IsNil) }()
> 
> To use AssertStopped, NotifyWatcherC should support Stop()
> 
It does, check for example: *keyupdaterSuite.TestWatchAuthorisedKeys
> — Reply to this email directly or view it on GitHub 
> <https://github.com/juju/juju/pull/121/files#r14808589>.
> 


- -- 
Dimiter Naydenov <dimiter.naydenov@canonical.com>
juju-core team
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTv4h7AAoJENzxV2TbLzHwzF0H/0f70FK9WwiLBKVCDLhrm/TL
L4dWFlt2fGQoa0KUSy0P7CJh2tK/B0NTunLyx2K2FhWh2uj9bsq60AwM7I6WHh65
mFfagr35FUXFTcQnBjRX1fRvijIf8UVBhQDis1tnuKvcz6Hdr9a7TY94zDrqTeFn
4iKK7dgXVjKh2Mg76C9ncFyGRygO6RcYUWLwfqdB0PEsgJqirKJIAW5vvlR5x1/0
SRaDOQ1a0iMnhipUYDhY1mn5gcIvgV9lqGoxhqDpa+chU911JrsYYlT4f8SebHaN
q3o5wfHGRYqvnNs6OQ/Q5Z2IgrfhaduHgFIEF0eSOUNXRV9aKv4Rlf9/yeofFBc=
=dmMD
-----END PGP SIGNATURE-----