File tree Expand file tree Collapse file tree
openstackclient/tests/functional/image/v2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414# under the License.
1515
1616from openstackclient .tests .functional .image import base
17+ from tempest .lib import exceptions
1718
1819
1920class InfoTests (base .BaseImageTests ):
@@ -28,3 +29,22 @@ def tearDown(self):
2829 def test_image_import_info (self ):
2930 output = self .openstack ('image import info' , parse_output = True )
3031 self .assertIsNotNone (output ['import-methods' ])
32+
33+ def test_image_stores_list (self ):
34+ try :
35+ output = self .openstack (
36+ 'image stores list' ,
37+ parse_output = True ,
38+ )
39+ except exceptions .CommandFailed as e :
40+ msg = str (e .stdout or '' ) + str (e .stderr or '' )
41+ if "Multi Backend support not enabled" in msg :
42+ self .skipTest ("Multi Backend support not enabled" )
43+ raise
44+
45+ self .assertIsInstance (output , list )
46+ if output :
47+ self .assert_table_structure (
48+ output ,
49+ ['ID' , 'Description' , 'Default' ],
50+ )
You can’t perform that action at this time.
0 commit comments