Sha256: dd21f8d0234d9e3136aeb8a075905a877e94638c94d4d796e920c6cd34ee112c
Contents?: true
Size: 988 Bytes
Versions: 77
Compression:
Stored size: 988 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class SnapshotDeleteRepositoryTest < ::Test::Unit::TestCase context "Snapshot: Delete repository" do subject { FakeClient.new } should "perform correct request" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal 'DELETE', method assert_equal '_snapshot/foo', url assert_equal Hash.new, params assert_nil body true end.returns(FakeResponse.new) subject.snapshot.delete_repository :repository => 'foo' end should "perform the request for more indices" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal '_snapshot/foo,bar', url true end.returns(FakeResponse.new) subject.snapshot.delete_repository :repository => ['foo','bar'] end end end end end
Version data entries
77 entries across 77 versions & 6 rubygems