#NEWLINE# def test_exclude( self ) : #NEWLINE# #INDENT# key = 'tag' #NEWLINE# value = 'value' #NEWLINE# at = 'exclude' #NEWLINE# self . write_config ( self . args [ 'configfile' ] , testvars . client_config . format ( host , port ) ) #NEWLINE# self . write_config ( self . args [ 'actionfile' ] , testvars . allocation_test . format ( key , value , at ) ) #NEWLINE# self . create_index ( 'my_index' ) #NEWLINE# self . create_index ( 'not_my_index' ) #NEWLINE# test = clicktest . CliRunner ( ) #NEWLINE# result = test . invoke ( curator . cli , [ '--config' , self . args [ 'configfile' ] , self . args [ 'actionfile' ] ] ) #NEWLINE# self . assertEquals ( value , self . client . indices . get_settings ( index = 'my_index' ) [ 'my_index' ] [ 'settings' ] [ 'index' ] [ 'routing' ] [ 'allocation' ] [ at ] [ key ] ) #NEWLINE# self . assertNotIn ( 'routing' , self . client . indices . get_settings ( index = 'not_my_index' ) [ 'not_my_index' ] [ 'settings' ] [ 'index' ] )