'Tests disabling a service with a reason and forcing it down is
reflected back in the response.'

def test_update_disabled_reason_and_forced_down(self):

    service = self.start_service('compute', 'fake-compute-host').service_ref
    resp = self.controller.update(self.req, service.uuid, body={'status': 'disabled', 'disabled_reason': 'maintenance', 'forced_down': 'yes'})
    expected_resp = {'service': {'status': 'disabled', 'state': 'up', 'binary': 'nova-compute', 'host': 'fake-compute-host', 'zone': 'nova', 'updated_at': mock.sentinel.updated_time, 'disabled_reason': 'maintenance', 'id': service.uuid, 'forced_down': True}}
    self.assertDictEqual(expected_resp, resp)
