#NEWLINE# @ ddt . data ( 'hard_reboot' , 'soft_reboot' , 'stop_start' , 'rescue_unrescue' , 'pause_unpause' , 'suspend_resume' , 'lock_unlock' , 'shelve_unshelve' ) #NEWLINE# def test_validate_actions( self , action ) : #NEWLINE# #INDENT# scenario = servers . NovaServers ( action . context ) #NEWLINE# self . assertRaises ( rally_exceptions . InvalidConfigException , scenario . boot_and_bounce_server , 1 , 1 , actions = [ { #NEWLINE# #INDENT# action : 'no' , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# self . assertRaises ( rally_exceptions . InvalidConfigException , scenario . boot_and_bounce_server , 1 , 1 , actions = [ { #NEWLINE# #INDENT# action : ( - 1 ) , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# self . assertRaises ( rally_exceptions . InvalidConfigException , scenario . boot_and_bounce_server , 1 , 1 , actions = [ { #NEWLINE# #INDENT# action : 0 , #NEWLINE# #UNINDENT# } ] )