File tree Expand file tree Collapse file tree
openstackclient/tests/functional/identity/v3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010# License for the specific language governing permissions and limitations
1111# under the License.
1212
13- import json
14-
1513from tempest .lib .common .utils import data_utils
1614
1715from openstackclient .tests .functional .identity .v3 import common
@@ -114,12 +112,14 @@ def test_project_show(self):
114112 self .assert_show_fields (items , self .PROJECT_FIELDS )
115113
116114 def test_project_show_with_parents_children (self ):
117- json_output = json . loads ( self .openstack (
115+ output = self .openstack (
118116 'project show '
119- '--parents --children -f json '
117+ '--parents --children '
120118 '--domain %(domain)s '
121119 '%(name)s' % {'domain' : self .domain_name ,
122- 'name' : self .project_name }))
120+ 'name' : self .project_name },
121+ parse_output = True ,
122+ )
123123 for attr_name in (self .PROJECT_FIELDS + ['parents' , 'subtree' ]):
124- self .assertIn (attr_name , json_output )
125- self .assertEqual (self .project_name , json_output .get ('name' ))
124+ self .assertIn (attr_name , output )
125+ self .assertEqual (self .project_name , output .get ('name' ))
You can’t perform that action at this time.
0 commit comments