Added update segment functionality. Also added test cases that actually not covering the line of code but tested the update segment functionally. Partial-Implements: blueprint masakari-dashboard Change-Id: Ib0424ee076ff0e8cc8c3ea898d986d32cc195ed2