If paging is enabled in connector options, the fetch method will fail, when reading the object by reference.
The paging argument in Connector.get_object method should override Connector.paging attribute.
How It Was Fixed
Added paging=False argument to Connector's method get_object, when the fetch method is trying to get object by reference.
Changed paging value evaluation logic in get_object method. If the paging argument is specified, its value always will be used. Even if the paging attribute is specified in the Connector.
Closes #186.
Tests
Created e2e test to validate that fetch method explicitly disables paging, when reading object from the API by the ref.
Created unit-test to check if paging argument will override Connector.paging attribute when calling get_object method
Issue Description
If paging is enabled in connector options, the fetch method will fail, when reading the object by reference.
The
paging
argument inConnector.get_object
method should overrideConnector.paging
attribute.How It Was Fixed
Added
paging=False
argument toConnector
's methodget_object
, when thefetch
method is trying to get object by reference.Changed
paging
value evaluation logic inget_object
method. If thepaging
argument is specified, its value always will be used. Even if thepaging
attribute is specified in theConnector
.Closes #186.
Tests
Created e2e test to validate that
fetch
method explicitly disablespaging
, when reading object from the API by the ref.Created unit-test to check if paging argument will override
Connector.paging
attribute when callingget_object
methodReviewers
@anagha-infoblox, @somashekhar