We're updating the issue view to help you get more done. 

Add functions to count items on SM

Description

In the interfaces where we have has_, get_, list_all_*

Add a count_* function, that will be needed for testing conformance, also useful to test locally. And it is a minor addition to the interfaces.

For instance on tests we need to check we have 0 opts, instead of calling list_all_opts() and counting items in the result, we can use count_opts() directly. This simplifies test implementation (e.g. in cucumber, spock or whatever tool).

Environment

None

Change Description

None

Impact Analysis

None

Status

Assignee

Thomas Beale

Reporter

Pablo Pazos

Components

Priority

Minor