Need test cases for pagination marker

Bug #1471489 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Peiyu Lin

Bug Description

Magnum API support to list resources with a pagination marker, but we currently don't have test cases to cover that. Below is the list of methods that needs to be tested with a non-None marker.

magnum/api/controllers/v1/service.py: def get_all(self, service_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/service.py: def detail(self, service_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/baymodel.py: def get_all(self, baymodel_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/baymodel.py: def detail(self, baymodel_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/pod.py: def get_all(self, pod_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/pod.py: def detail(self, pod_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/bay.py: def get_all(self, bay_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/bay.py: def detail(self, bay_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/replicationcontroller.py: def get_all(self, rc_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/replicationcontroller.py: def detail(self, rc_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/container.py: def get_all(self, container_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/container.py: def detail(self, container_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/node.py: def get_all(self, node_uuid=None, marker=None, limit=None,
magnum/api/controllers/v1/node.py: def detail(self, node_uuid=None, marker=None, limit=None,

hongbin (hongbin034)
tags: added: low-hanging-fruit
Peiyu Lin (mathspanda)
Changed in magnum:
assignee: nobody → Peiyu Lin (mathspanda)
Peiyu Lin (mathspanda)
Changed in magnum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/208137

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/208137
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=c7d49e927f00bd85cac8e42b141316fc92287417
Submitter: Jenkins
Branch: master

commit c7d49e927f00bd85cac8e42b141316fc92287417
Author: Peiyu Lin <email address hidden>
Date: Sat Aug 1 16:48:18 2015 +0800

    Add test cases for pagination marker

    add test cases for method to list resources with a pagination marker, such as
    get_all and detail method in magnum/api/controllers/v1/*.py

    Change-Id: Ic60b6ac913d4ae1751243c9df1f4a5f06cdfe74c
    Closes-Bug: #1471489

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
status: Fix Committed → Fix Released
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.