Merge "resource: fix help string"
This commit is contained in:
commit
1bcc4da0e3
|
@ -20,6 +20,11 @@ class ResourceClientTest(base.ClientTestBase):
|
|||
RESOURCE_ID2 = str(uuid.uuid4())
|
||||
PROJECT_ID = str(uuid.uuid4())
|
||||
|
||||
def test_help(self):
|
||||
self.gnocchi("help", params="resource list")
|
||||
self.gnocchi("help", params="resource history")
|
||||
self.gnocchi("help", params="resource search")
|
||||
|
||||
def test_resource_scenario(self):
|
||||
# CREATE
|
||||
result = self.gnocchi(
|
||||
|
|
|
@ -36,14 +36,14 @@ class CliResourceList(lister.Lister):
|
|||
parser.add_argument("--history", action='store_true',
|
||||
help="Show history of the resources"),
|
||||
parser.add_argument("--limit", type=int, metavar="<LIMIT>",
|
||||
help=("Number of resources to return "
|
||||
"(Default is server default)"))
|
||||
help="Number of resources to return "
|
||||
"(Default is server default)")
|
||||
parser.add_argument("--marker", metavar="<MARKER>",
|
||||
help=("Last item of the previous listing. "
|
||||
"Return the next results after this value"))
|
||||
help="Last item of the previous listing. "
|
||||
"Return the next results after this value")
|
||||
parser.add_argument("--sort", action="append", metavar="<SORT>",
|
||||
help=("Sort of resource attribute ",
|
||||
"(example: user_id:desc-nullslast"))
|
||||
help="Sort of resource attribute "
|
||||
"(example: user_id:desc-nullslast")
|
||||
parser.add_argument("--type", "-t", dest="resource_type",
|
||||
default="generic", help="Type of resource")
|
||||
return parser
|
||||
|
|
Loading…
Reference in New Issue