#NEWLINE# def get_test_ssh_info( auth_type = 'password' , virt_type = 'virsh' ) : #NEWLINE# #INDENT# result = { #NEWLINE# #INDENT# 'ssh_address' : '1.2.3.4' , #NEWLINE# 'ssh_username' : 'admin' , #NEWLINE# 'ssh_port' : 22 , #NEWLINE# 'ssh_virt_type' : virt_type , #NEWLINE# #UNINDENT# } #NEWLINE# if ( 'password' == virt_type ) : #NEWLINE# #INDENT# result [ 'ssh_password' ] = 'fake' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'file' == auth_type ) : #NEWLINE# #INDENT# result [ 'ssh_key_filename' ] = '/not/real/file' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'key' == auth_type ) : #NEWLINE# #INDENT# result [ 'ssh_key_contents' ] = '--BEGIN PRIVATE ...blah' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'too_many' == auth_type ) : #NEWLINE# #INDENT# result [ 'ssh_password' ] = 'fake' #NEWLINE# result [ 'ssh_key_filename' ] = '/not/real/file' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return result