• Dmitry Shulyak's avatar
    Fix FakeNodeHandler Update behaviour · 0ddaa20b
    Dmitry Shulyak authored
    Two problems:
    1. Get is always using Existing nodes slice, and you will for sure miss any
       updated data
    2. Each Update duplicates node entry in UpdatedNodes slice
    
    For the 1st, try to find a node in UpdatedNodes slice (same as for the List).
    2nd - append only if there is no node with same name as updated, if there is
    just replace object.
    
    Change-Id: I9ef1cca2788ba946eee37fa1b037c124ad76074c
    0ddaa20b
test_utils.go 8.38 KB