Fix planner tests due to API changes.
Fix planner tests due to API changes.

Signed-off-by: Andrea Luzzardi <442ffe3ffbfd024afcf0b7f8b108d05bca3aae43@gmail.com>

yp-engineering/swarmkit,aaronlehmann/swarmkit,dperny/swarmkit-1,cheyang/swarmkit,aaronlehmann/swarmkit,allencloud/swarmkit,AliyunContainerService/swarmkit,Noyan759/swarmkit,runshenzhu/swarmkit,fate-grand-order/swarmkit,RenaudWasTaken/swarmkit,cheyang/swarmkit,sungwonh/swarmkit,jlhawn/swarmkit,elifa/swarmkit,vasil-yordanov/swarmkit,elifa/swarmkit,cezarsa/swarmkit,AliyunContainerService/swarmkit,alyyousuf7/swarmkit,Noyan759/swarmkit,yp-engineering/swarmkit,docker/swarmkit,deljuven/swarmkit,allencloud/swarmkit,fate-grand-order/swarmkit,RenaudWasTaken/swarmkit,yongtang/swarmkit,diogomonica/swarmkit,jlhawn/swarmkit,sungwonh/swarmkit,diogomonica/swarmkit,runshenzhu/swarmkit,alyyousuf7/swarmkit,cezarsa/swarmkit,dperny/swarmkit-1,docker/swarmkit,vasil-yordanov/swarmkit,yongtang/swarmkit,deljuven/swarmkit