Profile list can not display the "type" column
Profile list can not display the "type" column Change-Id: I028bc9c5a28e8242e87deb077f24c4b141536918
This commit is contained in:
@@ -112,7 +112,7 @@ class TestProfileShow(TestProfile):
|
||||
|
||||
|
||||
class TestProfileList(TestProfile):
|
||||
columns = ['id', 'name', 'type', 'created_at']
|
||||
columns = ['id', 'name', 'type_name', 'created_at']
|
||||
data = {"profiles": [
|
||||
{
|
||||
"created_at": "2016-02-17T13:01:05",
|
||||
|
||||
@@ -119,7 +119,7 @@ class ShellTest(testtools.TestCase):
|
||||
service = mock.Mock()
|
||||
profiles = mock.Mock()
|
||||
service.profiles.return_value = profiles
|
||||
fields = ['id', 'name', 'type', 'created_at']
|
||||
fields = ['id', 'name', 'type_name', 'created_at']
|
||||
args = {
|
||||
'limit': 20,
|
||||
'marker': 'mark_id',
|
||||
|
||||
@@ -129,7 +129,7 @@ class ListProfile(command.Lister):
|
||||
|
||||
senlin_client = self.app.client_manager.clustering
|
||||
|
||||
columns = ['id', 'name', 'type', 'created_at']
|
||||
columns = ['id', 'name', 'type_name', 'created_at']
|
||||
queries = {
|
||||
'limit': parsed_args.limit,
|
||||
'marker': parsed_args.marker,
|
||||
|
||||
@@ -112,7 +112,7 @@ def do_profile_type_show(service, args):
|
||||
def do_profile_list(service, args=None):
|
||||
"""List profiles that meet the criteria."""
|
||||
show_deprecated('senlin profile-list', 'openstack cluster profile list')
|
||||
fields = ['id', 'name', 'type', 'created_at']
|
||||
fields = ['id', 'name', 'type_name', 'created_at']
|
||||
queries = {
|
||||
'limit': args.limit,
|
||||
'marker': args.marker,
|
||||
|
||||
Reference in New Issue
Block a user