diff --git a/fixture/vcr_cassettes/error_on_wrong_input.json b/fixture/vcr_cassettes/error_on_wrong_input.json index 7c277db..e9007cc 100644 --- a/fixture/vcr_cassettes/error_on_wrong_input.json +++ b/fixture/vcr_cassettes/error_on_wrong_input.json @@ -3,7 +3,7 @@ "request": { "body": "{\"test\":false,\"name\":\"test.pdf\",\"document_url\":\"malformed://address\",\"document_type\":\"pdf\"}", "headers": { - "Authorization": "Basic aU40Tm9VTVoxTnJoaDN4UXBIME06" + "Authorization": "Basic [FILTERED]" }, "method": "post", "options": { diff --git a/fixture/vcr_cassettes/generate_pdf_from_string.json b/fixture/vcr_cassettes/generate_pdf_from_string.json index b63e770..060700c 100644 --- a/fixture/vcr_cassettes/generate_pdf_from_string.json +++ b/fixture/vcr_cassettes/generate_pdf_from_string.json @@ -3,7 +3,7 @@ "request": { "body": "{\"test\":false,\"name\":\"test.pdf\",\"document_type\":\"pdf\",\"document_content\":\"Hello\"}", "headers": { - "Authorization": "Basic aU40Tm9VTVoxTnJoaDN4UXBIME06" + "Authorization": "Basic [FILTERED]" }, "method": "post", "options": { diff --git a/fixture/vcr_cassettes/generate_pdf_from_url.json b/fixture/vcr_cassettes/generate_pdf_from_url.json index a48aff8..875fb3d 100644 --- a/fixture/vcr_cassettes/generate_pdf_from_url.json +++ b/fixture/vcr_cassettes/generate_pdf_from_url.json @@ -3,7 +3,7 @@ "request": { "body": "{\"test\":false,\"name\":\"test.pdf\",\"document_url\":\"https://google.com\",\"document_type\":\"pdf\"}", "headers": { - "Authorization": "Basic aU40Tm9VTVoxTnJoaDN4UXBIME06" + "Authorization": "Basic [FILTERED]" }, "method": "post", "options": { diff --git a/test/velociraptor_test.exs b/test/velociraptor_test.exs index 10b3070..697621d 100644 --- a/test/velociraptor_test.exs +++ b/test/velociraptor_test.exs @@ -2,6 +2,11 @@ defmodule VelociraptorTest do use ExUnit.Case, async: true use ExVCR.Mock, adapter: ExVCR.Adapter.Httpc + setup do + ExVCR.Config.filter_sensitive_data("Basic .*", "Basic [FILTERED]") + :ok + end + test "generates a PDF from a provided HTML string" do use_cassette "generate_pdf_from_string" do client = Velociraptor.new