Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Issei.M <issei.m7@gmail.com>
  • Loading branch information
issei-m committed Feb 21, 2025
1 parent c942373 commit 0d49657
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/unit/open_search/aws/sigv4_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@
expect(transport_double).to have_received(:perform_request).with('GET', '/', {}, '', signed_headers)
end

it 'excludes the `ignore` param to make a signature' do
output = client.perform_request('GET', '/', { ignore: 404 }, '', {})
expect(output).to eq(response)
expect(transport_double).to have_received(:perform_request).with('GET', '/', { ignore: 404 }, '', signed_headers)
end

it 'skips the opensearch verification' do
allow(client).to receive(:open_search_validation_request)
client.perform_request('GET', '/_stats', {}, '', {})
Expand Down

0 comments on commit 0d49657

Please sign in to comment.