api-spec-testing/test_file.rb
def clear_index_templates(client)
          client.indices.delete_template(name: '*')
          templates = client.indices.get_index_template
          templates['index_templates'].each do |template|
            client.indices.delete_index_template(name: template['name'])
          end
        end
# Prepare Elasticsearch for a single test file.
# This method deletes indices, roles, datafeeds, etc.
#
# @since 6.2.0
Prepare Elasticsearch for a single test file.
This method deletes indices, roles, datafeeds, etc.
Prepare Elasticsearch for a single test file . This method deletes indices roles datafeeds etc .
def clear_index_templates(client)
          client.indices.delete_template(name: '*')
          templates = client.indices.get_index_template
          templates['index_templates'].each do |template|
            client.indices.delete_index_template(name: template['name'])
          end
        end
def clear_index_templates ( client ) client . indices . delete_template ( name : '*' ) templates = client . indices . get_index_template templates [ 'index_templates' ] . each do | template | client . indices . delete_index_template ( name : template [ 'name' ] ) end end
Prepare Elasticsearch for a single test file.
Prepare Elasticsearch for a single test file .
client
since
None