@@ -822,6 +822,8 @@ def test_image_list_long_option(self):
822822 'Visibility' ,
823823 'Protected' ,
824824 'Project' ,
825+ 'Hash Algorithm' ,
826+ 'Hash Value' ,
825827 'Tags' ,
826828 )
827829
@@ -830,14 +832,16 @@ def test_image_list_long_option(self):
830832 (
831833 self ._image .id ,
832834 self ._image .name ,
833- None ,
834- None ,
835- None ,
836- None ,
837- None ,
835+ self . _image . disk_format ,
836+ self . _image . container_format ,
837+ self . _image . size ,
838+ self . _image . checksum ,
839+ self . _image . status ,
838840 self ._image .visibility ,
839841 self ._image .is_protected ,
840842 self ._image .owner_id ,
843+ self ._image .hash_algo ,
844+ self ._image .hash_value ,
841845 format_columns .ListColumn (self ._image .tags ),
842846 ),
843847 )
@@ -1356,15 +1360,17 @@ def test_image_set_with_unexist_project(self):
13561360 exceptions .CommandError , self .cmd .take_action , parsed_args
13571361 )
13581362
1359- def test_image_set_bools1 (self ):
1363+ def test_image_set_bools_true (self ):
13601364 arglist = [
13611365 '--protected' ,
13621366 '--private' ,
1367+ '--hidden' ,
13631368 'graven' ,
13641369 ]
13651370 verifylist = [
13661371 ('is_protected' , True ),
13671372 ('visibility' , 'private' ),
1373+ ('is_hidden' , True ),
13681374 ('image' , 'graven' ),
13691375 ]
13701376 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
@@ -1374,22 +1380,25 @@ def test_image_set_bools1(self):
13741380 kwargs = {
13751381 'is_protected' : True ,
13761382 'visibility' : 'private' ,
1383+ 'is_hidden' : True ,
13771384 }
13781385 # ImageManager.update(image, **kwargs)
13791386 self .image_client .update_image .assert_called_with (
13801387 self ._image .id , ** kwargs
13811388 )
13821389 self .assertIsNone (result )
13831390
1384- def test_image_set_bools2 (self ):
1391+ def test_image_set_bools_false (self ):
13851392 arglist = [
13861393 '--unprotected' ,
13871394 '--public' ,
1395+ '--unhidden' ,
13881396 'graven' ,
13891397 ]
13901398 verifylist = [
13911399 ('is_protected' , False ),
13921400 ('visibility' , 'public' ),
1401+ ('is_hidden' , False ),
13931402 ('image' , 'graven' ),
13941403 ]
13951404 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
@@ -1399,6 +1408,7 @@ def test_image_set_bools2(self):
13991408 kwargs = {
14001409 'is_protected' : False ,
14011410 'visibility' : 'public' ,
1411+ 'is_hidden' : False ,
14021412 }
14031413 # ImageManager.update(image, **kwargs)
14041414 self .image_client .update_image .assert_called_with (
0 commit comments