Skip to content

Commit e6ede22

Browse files
committed
[Test Runner] Updates perform_request_spec
Don't fail, log when methods are not implemented yet
1 parent b631150 commit e6ede22

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

elasticsearch-api/spec/unit/perform_request_spec.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
require 'spec_helper'
1918
require 'elastic-transport'
19+
require 'spec_helper'
20+
2021
require_relative File.expand_path('../../utils/thor/endpoint_spec', __dir__)
2122
require_relative File.expand_path('../../utils/thor/generator/files_helper', __dir__)
2223

@@ -28,8 +29,7 @@
2829
# TODO: Once the test suite is migrated to elasticsearch-specification, these should be removed
2930
spec.module_namespace.flatten.first == 'rollup' ||
3031
[
31-
'scroll', 'clear_scroll', 'connector.last_sync', 'knn_search',
32-
'indices.remove_block'
32+
'scroll', 'clear_scroll', 'connector.last_sync', 'knn_search'
3333
].include?(spec.endpoint_name)
3434

3535
# These are the path parts defined by the user in the method argument
@@ -86,6 +86,8 @@
8686
end
8787
end
8888
end
89+
rescue NoMethodError
90+
Logger.new($stdout).info("Method #{spec.method_name} not implemented yet")
8991
end
9092
end
9193
end

0 commit comments

Comments
 (0)