• Miek Gieben's avatar
    Fix stubzone retention (#198) · ad76aef5
    Miek Gieben authored
    Make the receiver a pointer so that the uptdateStubZones map update will
    retain the stubzones found, unlike the current case where the update
    will be applied and then promptly forgotten, because it is working on a
    copy.
    
    Add test/etcd_test.go to test a large part of the code. This didn't
    catch the chaos middleware hack though. The chaos middleware zones are
    now *not* automatically added. You have to take care of that by yourself
    (docs updates).
    
    When using debug queries and falling through to the next middleware in
    etcd, restore the original (with o-o.debug) query before passing it on.
    ad76aef5
multi_test.go 1.96 KB