← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1076179] Re: 400 should be returned when invalid attributes are passed to Quantum API

 

** Changed in: quantum
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1076179

Title:
  400 should be returned when invalid attributes are passed to Quantum
  API

Status in OpenStack Quantum (virtual network service):
  Fix Released

Bug description:
  Issues like the one reported below apply to all Quantum entities, core and extended.
  This should be fixed soon.

  ------------

  When testing the updating the router with invalidate values,  the
  following case returns 200,

      def test_router_update_invalid_value(self):
          fmt = 'json'
          data = {'router': {'tenant_id': _uuid(),
                             'name': 'router1',
                             'admin_state_up': True}}
          req = self.new_create_request('routers', data, fmt)
          res = req.get_response(self.ext_api)
          router = self.deserialize(fmt, res)

          res = self._update('routers', router['router']['id'],
                             {'router': {}},
                             expected_code=exc.HTTPBadRequest.code)

          res = self._update('routers', router['router']['id'],
                             {'router': {'gibberish': 'anything'}},
                             expected_code=exc.HTTPBadRequest.code)

  Thanks,

  Jason

To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1076179/+subscriptions