elasticsearch-api/api-spec-testing/test_file.rb
# Run the teardown tasks defined for a single test file.
#
# @example Run the teardown tasks.
#   test_file.teardown
#
# @param [ Elasticsearch::Client ] client The client to use to perform the teardown tasks.
#
# @return [ self ]
#
# @since 6.2.0
Run the teardown tasks defined for a single test file.
Run the teardown tasks defined for a single test file .
def teardown
        return unless @teardown
        actions = @teardown['teardown'].select { |action| action['do'] }.map { |action| Action.new(action['do']) }
        run_actions_and_retry(actions)
        self
      end
def teardown return unless @teardown actions = @teardown [ 'teardown' ] . select { | action | action [ 'do' ] } . map { | action | Action . new ( action [ 'do' ] ) } run_actions_and_retry ( actions ) self end
Run the teardown tasks defined for a single test file.
Run the teardown tasks defined for a single test file .
None
 self 
client The client to use to perform the teardown tasks.
client The client to use to perform the teardown tasks .
example
Run the teardown tasks. test_file.teardown
Run the teardown tasks . test_file . teardown
since
None