Validation in V2 API

Bug #1012438 reported by dan wendlandt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
dan wendlandt

Bug Description

Need to validate input (required fields, etc.) in V2 API code.

dan wendlandt (danwent)
Changed in quantum:
status: New → In Progress
importance: Undecided → High
assignee: nobody → dan wendlandt (danwent)
milestone: none → folsom-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/8366
Committed: http://github.com/openstack/quantum/commit/44f66c79d225b651335b2c4c416d1d7ce5751527
Submitter: Jenkins
Branch: master

commit 44f66c79d225b651335b2c4c416d1d7ce5751527
Author: Dan Wendlandt <email address hidden>
Date: Wed Jun 13 10:41:32 2012 -0700

    API v2: mprove validation of post/put, rename few attributes

    bug #1012438

    Additional work for bp v2-api-melange-integration

    - rename few attributes:
      op_state -> status
      additional_routes -> additional_host_routes
      prefix -> cidr

    - expand request body validation to indicate whether fields can be
    specified during create and or update.
    - add test cases to validate defaults, and input validation.

    - update db_base_plugin_v2 to generate gateway_ip for subnet and mac
    for port when unspecified.

    - validate that tenant-id is only specified in req by admin users

    - automatically set tenant-id based on request.context.tenant_id if needed

    - enable port tests in test_db_plugin.py

    Change-Id: If7f5101e4974a6ef93ff8a1d945f8642dd21b16e

Changed in quantum:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-2 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.