diff --git a/tests/testthat/helper-vcr.R b/tests/testthat/helper-vcr.R index b2abf49..8e8f767 100644 --- a/tests/testthat/helper-vcr.R +++ b/tests/testthat/helper-vcr.R @@ -1,6 +1,12 @@ library("vcr") # *Required* as vcr is set up on loading invisible(vcr::vcr_configure( filter_sensitive_data = list("<<>>" = Sys.getenv('EBIRD_KEY')), + # Remove sensitive information about tester from cassettes + filter_sensitive_data_regex = list( + '"ip": "redacted"' = '"ip": "[0-9.]+"', + '"hostname": "redacted"' = '"hostname": "[^"]*"', + '"org": "redacted"' = '"org": "[^"]*"' + ), dir = vcr::vcr_test_path("fixtures") )) vcr::check_cassette_names()