api-spec-testing/test_file.rb
# 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_data_xpack(client)
          clear_roles(client)
          clear_users(client)
          clear_privileges(client)
          clear_datafeeds(client)
          clear_ml_jobs(client)
          clear_rollup_jobs(client)
          clear_tasks(client)
          clear_machine_learning_indices(client)
          create_x_pack_rest_user(client)
          clear_transforms(client)
          clear_datastreams(client)
          clear_indices_xpack(client)
          clear_index_templates(client)
          clear_snapshots_and_repositories(client)
        end
def clear_data_xpack ( client ) clear_roles ( client ) clear_users ( client ) clear_privileges ( client ) clear_datafeeds ( client ) clear_ml_jobs ( client ) clear_rollup_jobs ( client ) clear_tasks ( client ) clear_machine_learning_indices ( client ) create_x_pack_rest_user ( client ) clear_transforms ( client ) clear_datastreams ( client ) clear_indices_xpack ( client ) clear_index_templates ( client ) clear_snapshots_and_repositories ( client ) end
Prepare Elasticsearch for a single test file.
Prepare Elasticsearch for a single test file .
client
since
None