Revert "Fix openstack cluster profile validate bug"

Like I21fe5dad0b401672fdde719b8d0adff5fef1e54d, this relies on features
from the SDK has not been released/integrated with upper-constraints.txt

This reverts commit 82771162c96f6ce82aa7deefcb3f2112f553b420.

Change-Id: Idf4be216ffb7ecb2632489754c830b9357f8173d
This commit is contained in:
Tony Breeds 2016-12-23 03:01:47 +00:00
parent 82771162c9
commit 130a522cad
2 changed files with 2 additions and 13 deletions

View File

@ -457,14 +457,3 @@ class TestProfileValidate(TestProfile):
parsed_args = self.check_parser(self.cmd, arglist, [])
self.cmd.take_action(parsed_args)
self.mock_client.validate_profile.assert_called_with(**self.defaults)
profile = self.mock_client.validate_profile(**self.defaults)
self.assertEqual(self.response['profile']['project'],
profile.project_id)
self.assertEqual(self.response['profile']['user'],
profile.user_id)
self.assertEqual(self.response['profile']['id'], profile.id)
self.assertEqual(self.response['profile']['metadata'],
profile.metadata)
self.assertEqual(self.response['profile']['name'], profile.name)
self.assertEqual(self.response['profile']['spec'], profile.spec)
self.assertEqual(self.response['profile']['type'], profile.type)

View File

@ -368,11 +368,11 @@ class ValidateProfile(command.ShowOne):
'id',
'metadata',
'name',
'project_id',
'project',
'spec',
'type',
'updated_at',
'user_id'
'user'
]
return columns, utils.get_dict_properties(profile.to_dict(), columns,
formatters=formatters)