From 86c2eb507b98f05602c61a1fec1205d0ac38cc49 Mon Sep 17 00:00:00 2001 From: Dustin Decker Date: Tue, 15 Feb 2022 19:19:09 -0800 Subject: [PATCH] Adding detectors (#46) * rename secret * Add supporting docs and tooling for adding new detectors --- .gitattributes | 2 + Makefile | 3 + hack/docs/Adding_Detectors.md | 125 +++++++++++++++++ hack/generate/generate.go | 126 ++++++++++++++++++ hack/generate/test.sh | 16 +++ pkg/detectors/abbysale/abbysale_test.go | 2 +- pkg/detectors/abstract/abstract_test.go | 2 +- pkg/detectors/abuseipdb/abuseipdb_test.go | 2 +- pkg/detectors/accuweather/accuweather_test.go | 2 +- pkg/detectors/adafruitio/adafruitio_test.go | 2 +- pkg/detectors/adobeio/adobeio_test.go | 2 +- pkg/detectors/adzuna/adzuna_test.go | 2 +- pkg/detectors/agora/agora_test.go | 2 +- .../airbrakeprojectkey_test.go | 2 +- .../airbrakeuserkey/airbrakeuserkey_test.go | 2 +- pkg/detectors/airship/airship_test.go | 2 +- .../airtableapikey/airtableapikey_test.go | 2 +- pkg/detectors/airvisual/airvisual_test.go | 2 +- pkg/detectors/alconost/alconost_test.go | 2 +- pkg/detectors/alegra/alegra_test.go | 2 +- pkg/detectors/aletheiaapi/aletheiaapi_test.go | 2 +- .../algoliaadminkey/algoliaadminkey_test.go | 2 +- pkg/detectors/alibaba/alibaba_test.go | 2 +- pkg/detectors/alienvault/alienvault_test.go | 2 +- pkg/detectors/allsports/allsports_test.go | 2 +- pkg/detectors/amadeus/amadeus_test.go | 2 +- pkg/detectors/ambee/ambee_test.go | 2 +- .../amplitudeapikey/amplitudeapikey_test.go | 2 +- pkg/detectors/anypoint/anypoint_test.go | 2 +- pkg/detectors/apacta/apacta_test.go | 2 +- pkg/detectors/api2cart/api2cart_test.go | 2 +- pkg/detectors/apideck/apideck_test.go | 2 +- pkg/detectors/apiflash/apiflash_test.go | 2 +- pkg/detectors/apifonica/apifonica_test.go | 2 +- pkg/detectors/apify/apify_test.go | 2 +- pkg/detectors/apimatic/apimatic_test.go | 2 +- pkg/detectors/apiscience/apiscience_test.go | 2 +- pkg/detectors/apollo/apollo_test.go | 2 +- pkg/detectors/appcues/appcues_test.go | 2 +- pkg/detectors/appfollow/appfollow_test.go | 2 +- pkg/detectors/appsynergy/appsynergy_test.go | 2 +- pkg/detectors/apptivo/apptivo_test.go | 2 +- pkg/detectors/artifactory/artifactory_test.go | 2 +- pkg/detectors/artsy/artsy_test.go | 2 +- pkg/detectors/asanaoauth/asanaoauth_test.go | 2 +- .../asanapersonalaccesstoken_test.go | 2 +- pkg/detectors/assemblyai/assemblyai_test.go | 2 +- pkg/detectors/audd/audd_test.go | 2 +- .../auth0managementapitoken_test.go | 2 +- pkg/detectors/auth0oauth/auth0oauth_test.go | 2 +- pkg/detectors/autodesk/autodesk_test.go | 2 +- pkg/detectors/autoklose/autoklose_test.go | 2 +- pkg/detectors/autopilot/autopilot_test.go | 2 +- .../aviationstack/aviationstack_test.go | 2 +- pkg/detectors/aws/aws_test.go | 4 +- pkg/detectors/axonaut/axonaut_test.go | 2 +- pkg/detectors/aylien/aylien_test.go | 2 +- pkg/detectors/ayrshare/ayrshare_test.go | 2 +- pkg/detectors/azure/azure_test.go | 2 +- pkg/detectors/bannerbear/bannerbear_test.go | 2 +- pkg/detectors/baremetrics/baremetrics_test.go | 2 +- pkg/detectors/baseapiio/baseapiio_test.go | 2 +- pkg/detectors/beamer/beamer_test.go | 2 +- pkg/detectors/beebole/beebole_test.go | 2 +- pkg/detectors/besttime/besttime_test.go | 2 +- pkg/detectors/billomat/billomat_test.go | 2 +- pkg/detectors/bitbar/bitbar_test.go | 2 +- .../bitcoinaverage/bitcoinaverage_test.go | 2 +- pkg/detectors/bitfinex/bitfinex_test.go | 2 +- .../bitlyaccesstoken/bitlyaccesstoken_test.go | 2 +- pkg/detectors/bitmex/bitmex_test.go | 2 +- pkg/detectors/blablabus/blablabus_test.go | 2 +- pkg/detectors/blazemeter/blazemeter_test.go | 2 +- pkg/detectors/blitapp/blitapp_test.go | 2 +- pkg/detectors/blogger/blogger_test.go | 2 +- pkg/detectors/bombbomb/bombbomb_test.go | 2 +- pkg/detectors/brandfetch/brandfetch_test.go | 2 +- pkg/detectors/browshot/browshot_test.go | 2 +- pkg/detectors/buddyns/buddyns_test.go | 2 +- pkg/detectors/bugherd/bugherd_test.go | 2 +- pkg/detectors/bugsnag/bugsnag_test.go | 2 +- pkg/detectors/buildkite/buildkite_test.go | 2 +- pkg/detectors/bulbul/bulbul_test.go | 2 +- pkg/detectors/buttercms/buttercms_test.go | 2 +- pkg/detectors/caflou/caflou_test.go | 2 +- .../calendarific/calendarific_test.go | 2 +- .../calendlyapikey/calendlyapikey_test.go | 2 +- .../calorieninja/calorieninja_test.go | 2 +- pkg/detectors/campayn/campayn_test.go | 2 +- pkg/detectors/cannyio/cannyio_test.go | 2 +- pkg/detectors/capsulecrm/capsulecrm_test.go | 2 +- .../carboninterface/carboninterface_test.go | 2 +- pkg/detectors/cashboard/cashboard_test.go | 2 +- pkg/detectors/censys/censys_test.go | 2 +- .../centralstationcrm_test.go | 2 +- pkg/detectors/chatbot/chatbot_test.go | 2 +- pkg/detectors/checio/checio_test.go | 2 +- pkg/detectors/checklyhq/checklyhq_test.go | 2 +- pkg/detectors/checkout/checkout_test.go | 2 +- pkg/detectors/cicero/cicero_test.go | 2 +- pkg/detectors/circleci/circleci_test.go | 2 +- pkg/detectors/clarifai/clarifai_test.go | 2 +- pkg/detectors/clearbit/clearbit_test.go | 2 +- pkg/detectors/clickhelp/clickhelp_test.go | 2 +- .../clicksendsms/clicksendsms_test.go | 2 +- .../clickuppersonaltoken_test.go | 2 +- pkg/detectors/clinchpad/clinchpad_test.go | 2 +- pkg/detectors/clockify/clockify_test.go | 2 +- .../clockworksms/clockworksms_test.go | 2 +- pkg/detectors/closecrm/close_test.go | 2 +- .../cloudelements/cloudelements_test.go | 2 +- .../cloudflareapitoken_test.go | 2 +- .../cloudflarecakey/cloudflarecakey_test.go | 2 +- .../cloudflareglobalapikey_test.go | 2 +- .../cloudmersive/cloudmersive_test.go | 2 +- pkg/detectors/cloudplan/cloudplan_test.go | 2 +- pkg/detectors/cloverly/cloverly_test.go | 2 +- pkg/detectors/clustdoc/clustdoc_test.go | 2 +- pkg/detectors/codacy/codacy_test.go | 2 +- pkg/detectors/coinapi/coinapi_test.go | 2 +- pkg/detectors/coinbase/coinbase_test.go | 2 +- pkg/detectors/coinlayer/coinlayer_test.go | 2 +- pkg/detectors/coinlib/coinlib_test.go | 2 +- pkg/detectors/commercejs/commercejs_test.go | 2 +- pkg/detectors/commodities/commodities_test.go | 2 +- pkg/detectors/companyhub/companyhub_test.go | 2 +- pkg/detectors/confluent/confluent_test.go | 2 +- .../contentfulpersonalaccesstoken_test.go | 2 +- pkg/detectors/convertkit/convertkit_test.go | 2 +- pkg/detectors/copper/copper_test.go | 2 +- .../countrylayer/countrylayer_test.go | 2 +- pkg/detectors/courier/courier_test.go | 2 +- pkg/detectors/coveralls/coveralls_test.go | 2 +- pkg/detectors/crowdin/crowdin_test.go | 2 +- .../cryptocompare/cryptocompare_test.go | 2 +- .../currencycloud/currencycloud_test.go | 2 +- .../currencyfreaks/currencyfreaks_test.go | 2 +- .../currencylayer/currencylayer_test.go | 2 +- .../currencyscoop/currencyscoop_test.go | 2 +- pkg/detectors/currentsapi/currentsapi_test.go | 2 +- .../customerguru/customerguru_test.go | 2 +- pkg/detectors/customerio/customerio_test.go | 2 +- pkg/detectors/d7network/d7network_test.go | 2 +- pkg/detectors/dailyco/dailyco_test.go | 2 +- pkg/detectors/dandelion/dandelion_test.go | 2 +- .../datadogtoken/datadogtoken_test.go | 2 +- pkg/detectors/datafire/datafire_test.go | 2 +- pkg/detectors/datagov/datagov_test.go | 2 +- pkg/detectors/debounce/debounce_test.go | 2 +- pkg/detectors/deepai/deepai_test.go | 2 +- pkg/detectors/deepgram/deepgram_test.go | 2 +- pkg/detectors/delighted/delighted_test.go | 2 +- pkg/detectors/deputy/deputy_test.go | 2 +- .../detectlanguage/detectlanguage_test.go | 2 +- pkg/detectors/dfuse/dfuse_test.go | 2 +- .../digitaloceantoken_test.go | 2 +- .../discordbottoken/discordbottoken_test.go | 2 +- .../discordwebhook/discordwebhook_test.go | 2 +- pkg/detectors/ditto/ditto_test.go | 2 +- pkg/detectors/dnscheck/dnscheck_test.go | 2 +- pkg/detectors/documo/documo_test.go | 2 +- pkg/detectors/doppler/doppler_test.go | 2 +- pkg/detectors/dotmailer/dotmailer_test.go | 2 +- pkg/detectors/dovico/dovico_test.go | 2 +- pkg/detectors/dronahq/dronahq_test.go | 2 +- pkg/detectors/droneci/droneci_test.go | 2 +- pkg/detectors/dropbox/dropbox_test.go | 2 +- pkg/detectors/dwolla/dwolla_test.go | 2 +- pkg/detectors/dynalist/dynalist_test.go | 2 +- pkg/detectors/dyspatch/dyspatch_test.go | 2 +- .../eagleeyenetworks/eagleeyenetworks_test.go | 2 +- pkg/detectors/easyinsight/easyinsight_test.go | 2 +- pkg/detectors/edamam/edamam_test.go | 2 +- pkg/detectors/edenai/edenai_test.go | 2 +- .../elasticemail/elasticemail_test.go | 2 +- pkg/detectors/enigma/enigma_test.go | 2 +- pkg/detectors/ethplorer/ethplorer_test.go | 2 +- pkg/detectors/etsyapikey/etsyapikey_test.go | 2 +- pkg/detectors/everhour/everhour_test.go | 2 +- .../exchangerateapi/exchangerateapi_test.go | 2 +- .../exchangeratesapi/exchangeratesapi_test.go | 2 +- .../facebookoauth/facebookoauth_test.go | 2 +- .../faceplusplus/faceplusplus_test.go | 2 +- pkg/detectors/fakejson/fakejson_test.go | 2 +- pkg/detectors/fastforex/fastforex_test.go | 2 +- .../fastlypersonaltoken_test.go | 2 +- pkg/detectors/feedier/feedier_test.go | 2 +- pkg/detectors/fetchrss/fetchrss_test.go | 2 +- .../figmapersonalaccesstoken_test.go | 2 +- pkg/detectors/fileio/fileio_test.go | 2 +- pkg/detectors/finage/finage_test.go | 2 +- .../financialmodelingprep_test.go | 2 +- pkg/detectors/findl/findl_test.go | 2 +- pkg/detectors/finnhub/finnhub_test.go | 2 +- pkg/detectors/fixerio/fixerio_test.go | 2 +- pkg/detectors/flatio/flatio_test.go | 2 +- pkg/detectors/fleetbase/fleetbase_test.go | 2 +- pkg/detectors/flickr/flickr_test.go | 2 +- pkg/detectors/flightapi/flightapi_test.go | 2 +- pkg/detectors/float/float_test.go | 2 +- pkg/detectors/flowflu/flowflu_test.go | 2 +- pkg/detectors/flutterwave/flutterwave_test.go | 2 +- pkg/detectors/fmfw/fmfw_test.go | 2 +- pkg/detectors/foursquare/foursquare_test.go | 2 +- pkg/detectors/frameio/frameio_test.go | 2 +- pkg/detectors/freshbooks/freshbooks_test.go | 2 +- pkg/detectors/freshdesk/freshdesk_test.go | 2 +- pkg/detectors/front/front_test.go | 2 +- pkg/detectors/fulcrum/fulcrum_test.go | 2 +- pkg/detectors/fullstory/fullstory_test.go | 2 +- pkg/detectors/fusebill/fusebill_test.go | 2 +- pkg/detectors/fxmarket/fxmarket_test.go | 2 +- pkg/detectors/gcp/gcp_test.go | 2 +- pkg/detectors/geckoboard/geckoboard_test.go | 2 +- pkg/detectors/gengo/gengo_test.go | 2 +- pkg/detectors/geoapify/geoapify_test.go | 2 +- pkg/detectors/geocode/geocode_test.go | 2 +- pkg/detectors/geocodify/geocodify_test.go | 2 +- pkg/detectors/geocodio/geocodio_test.go | 2 +- pkg/detectors/geoipifi/geoipifi_test.go | 2 +- pkg/detectors/getemail/getemail_test.go | 2 +- pkg/detectors/getemails/getemails_test.go | 2 +- pkg/detectors/getgeoapi/getgeoapi_test.go | 2 +- pkg/detectors/getgist/getgist_test.go | 2 +- pkg/detectors/getsandbox/getsandbox_test.go | 2 +- pkg/detectors/github/github_test.go | 2 +- pkg/detectors/github_old/github_old_test.go | 2 +- pkg/detectors/githubapp/githubapp_test.go | 2 +- pkg/detectors/gitlab/gitlab_test.go | 2 +- pkg/detectors/gitlabv2/gitlab_test.go | 2 +- pkg/detectors/gitter/gitter_test.go | 2 +- pkg/detectors/glassnode/glassnode_test.go | 2 +- pkg/detectors/gocardless/gocardless_test.go | 2 +- pkg/detectors/goodday/goodday_test.go | 2 +- pkg/detectors/graphcms/graphcms_test.go | 2 +- pkg/detectors/graphhopper/graphhopper_test.go | 2 +- pkg/detectors/groovehq/groovehq_test.go | 2 +- pkg/detectors/guardianapi/guardianapi_test.go | 2 +- pkg/detectors/guru/guru_test.go | 2 +- pkg/detectors/gyazo/gyazo_test.go | 2 +- pkg/detectors/happi/happi_test.go | 2 +- pkg/detectors/happyscribe/happyscribe_test.go | 2 +- pkg/detectors/harvest/harvest_test.go | 2 +- pkg/detectors/hellosign/hellosign_test.go | 2 +- pkg/detectors/helpcrunch/helpcrunch_test.go | 2 +- pkg/detectors/helpscout/helpscout_test.go | 2 +- pkg/detectors/hereapi/hereapi_test.go | 2 +- pkg/detectors/heroku/heroku_test.go | 2 +- pkg/detectors/hive/hive_test.go | 2 +- pkg/detectors/hiveage/hiveage_test.go | 2 +- pkg/detectors/holidayapi/holidayapi_test.go | 2 +- pkg/detectors/host/host_test.go | 2 +- pkg/detectors/html2pdf/html2pdf_test.go | 2 +- .../hubspotapikey/hubspotapikey_test.go | 2 +- pkg/detectors/humanity/humanity_test.go | 2 +- pkg/detectors/hunter/hunter_test.go | 2 +- pkg/detectors/hypertrack/hypertrack_test.go | 2 +- .../ibmclouduserkey/ibmclouduserkey_test.go | 2 +- pkg/detectors/iconfinder/iconfinder_test.go | 2 +- pkg/detectors/iexcloud/iexcloud_test.go | 2 +- pkg/detectors/imagekit/imagekit_test.go | 2 +- pkg/detectors/imagga/imagga_test.go | 2 +- pkg/detectors/impala/impala_test.go | 2 +- pkg/detectors/insightly/insightly_test.go | 2 +- pkg/detectors/integromat/integromat_test.go | 2 +- pkg/detectors/intercom/intercom_test.go | 2 +- pkg/detectors/intrinio/intrinio_test.go | 2 +- .../invoiceocean/invoiceocean_test.go | 2 +- pkg/detectors/ipapi/ipapi_test.go | 2 +- .../ipgeolocation/ipgeolocation_test.go | 2 +- pkg/detectors/ipify/ipify_test.go | 2 +- pkg/detectors/ipinfodb/ipinfodb_test.go | 2 +- pkg/detectors/ipquality/ipquality_test.go | 2 +- pkg/detectors/ipstack/ipstack_test.go | 2 +- pkg/detectors/jiratoken/jiratoken_test.go | 2 +- pkg/detectors/jotform/jotform_test.go | 2 +- pkg/detectors/jumpcloud/jumpcloud_test.go | 2 +- pkg/detectors/juro/juro_test.go | 2 +- pkg/detectors/kanban/kanban_test.go | 2 +- pkg/detectors/karmacrm/karmacrm_test.go | 2 +- pkg/detectors/keenio/keenio_test.go | 2 +- pkg/detectors/kickbox/kickbox_test.go | 2 +- pkg/detectors/kontent/kontent_test.go | 2 +- pkg/detectors/kraken/kraken_test.go | 2 +- pkg/detectors/kylas/kylas_test.go | 2 +- .../languagelayer/languagelayer_test.go | 2 +- pkg/detectors/lastfm/lastfm_test.go | 2 +- .../launchdarkly/launchdarkly_test.go | 2 +- pkg/detectors/leadfeeder/leadfeeder_test.go | 2 +- .../lessannoyingcrm/lessannoyingcrm_test.go | 2 +- pkg/detectors/lexigram/lexigram_test.go | 2 +- pkg/detectors/linearapi/linearapi_test.go | 2 +- .../linemessaging/linemessaging_test.go | 2 +- pkg/detectors/linenotify/linenotify_test.go | 2 +- pkg/detectors/linkpreview/linkpreview_test.go | 2 +- pkg/detectors/liveagent/liveagent_test.go | 2 +- pkg/detectors/lob/lob_test.go | 2 +- pkg/detectors/locationiq/locationiq_test.go | 2 +- pkg/detectors/loginradius/loginradius_test.go | 2 +- .../lokalisetoken/lokalisetoken_test.go | 2 +- pkg/detectors/loyverse/loyverse_test.go | 2 +- pkg/detectors/luno/luno_test.go | 2 +- pkg/detectors/m3o/m3o_test.go | 2 +- pkg/detectors/macaddress/macaddress_test.go | 2 +- pkg/detectors/magnetic/magnetic_test.go | 2 +- .../mailboxlayer/mailboxlayer_test.go | 2 +- pkg/detectors/mailchimp/mailchimp_test.go | 2 +- pkg/detectors/mailerlite/mailerlite_test.go | 2 +- pkg/detectors/mailgun/mailgun_test.go | 2 +- .../mailjetbasicauth/mailjetbasicauth_test.go | 2 +- pkg/detectors/mailjetsms/mailjetsms_test.go | 2 +- pkg/detectors/mailmodo/mailmodo_test.go | 2 +- pkg/detectors/mailsac/mailsac_test.go | 2 +- pkg/detectors/mandrill/mandrill_test.go | 2 +- pkg/detectors/manifest/manifest_test.go | 2 +- pkg/detectors/mapbox/mapbox_test.go | 2 +- pkg/detectors/mapquest/mapquest_test.go | 2 +- pkg/detectors/marketstack/marketstack_test.go | 2 +- .../mattermostpersonaltoken_test.go | 2 +- pkg/detectors/mavenlink/mavenlink_test.go | 2 +- .../maxmindlicense/maxmindlicense_test.go | 2 +- .../meaningcloud/meaningcloud_test.go | 2 +- pkg/detectors/mediastack/mediastack_test.go | 2 +- pkg/detectors/meistertask/meistertask_test.go | 2 +- pkg/detectors/mesibo/mesibo_test.go | 2 +- pkg/detectors/messagebird/messagebird_test.go | 2 +- pkg/detectors/metrilo/metrilo_test.go | 2 +- .../microsoftteamswebhook_test.go | 2 +- pkg/detectors/mindmeister/mindmeister_test.go | 2 +- pkg/detectors/mite/mite_test.go | 2 +- pkg/detectors/mixmax/mixmax_test.go | 2 +- pkg/detectors/mixpanel/mixpanel_test.go | 2 +- pkg/detectors/monday/monday_test.go | 2 +- pkg/detectors/moonclerk/moonclerk_test.go | 2 +- pkg/detectors/moosend/moosend_test.go | 2 +- pkg/detectors/mrticktock/mrticktock_test.go | 2 +- .../myfreshworks/myfreshworks_test.go | 2 +- pkg/detectors/myintervals/myintervals_test.go | 2 +- .../nasdaqdatalink/nasdaqdatalink_test.go | 2 +- pkg/detectors/nethunt/nethunt_test.go | 2 +- pkg/detectors/netlify/netlify_test.go | 2 +- pkg/detectors/neutrinoapi/neutrinoapi_test.go | 2 +- .../newrelicpersonalapikey_test.go | 2 +- pkg/detectors/newsapi/newsapi_test.go | 2 +- pkg/detectors/newscatcher/newscatcher_test.go | 2 +- pkg/detectors/nexmoapikey/nexmoapikey_test.go | 2 +- pkg/detectors/nftport/nftport_test.go | 2 +- pkg/detectors/nicereply/nicereply_test.go | 2 +- pkg/detectors/nimble/nimble_test.go | 2 +- pkg/detectors/nitro/nitro_test.go | 2 +- pkg/detectors/noticeable/noticeable_test.go | 2 +- pkg/detectors/notion/notion_test.go | 2 +- pkg/detectors/numverify/numverify_test.go | 2 +- pkg/detectors/nutritionix/nutritionix_test.go | 2 +- pkg/detectors/nylas/nylas_test.go | 2 +- pkg/detectors/nytimes/nytimes_test.go | 2 +- pkg/detectors/oanda/oanda_test.go | 2 +- pkg/detectors/okta/okta_test.go | 2 +- pkg/detectors/omnisend/omnisend_test.go | 2 +- pkg/detectors/onedesk/onedesk_test.go | 2 +- pkg/detectors/onelogin/onelogin_test.go | 2 +- pkg/detectors/onepagecrm/onepagecrm_test.go | 2 +- pkg/detectors/onwaterio/onwaterio_test.go | 2 +- pkg/detectors/oopspam/oopspam_test.go | 2 +- .../opencagedata/opencagedata_test.go | 2 +- pkg/detectors/opengraphr/opengraphr_test.go | 2 +- pkg/detectors/openuv/openuv_test.go | 2 +- pkg/detectors/openweather/openweather_test.go | 2 +- pkg/detectors/optimizely/optimizely_test.go | 2 +- pkg/detectors/owlbot/owlbot_test.go | 2 +- .../pagerdutyapikey/pagerdutyapikey_test.go | 2 +- pkg/detectors/pandadoc/pandadoc_test.go | 2 +- .../paralleldots/paralleldots_test.go | 2 +- .../partnerstack/partnerstack_test.go | 2 +- pkg/detectors/passbase/passbase_test.go | 2 +- pkg/detectors/pastebin/pastebin_test.go | 2 +- pkg/detectors/paymoapp/paymoapp_test.go | 2 +- pkg/detectors/paymongo/paymongo_test.go | 2 +- pkg/detectors/paypaloauth/paypaloauth_test.go | 2 +- pkg/detectors/paystack/paystack_test.go | 2 +- pkg/detectors/pdflayer/pdflayer_test.go | 2 +- pkg/detectors/pdfshift/pdfshift_test.go | 2 +- .../peopledatalabs/peopledatalabs_test.go | 2 +- pkg/detectors/pepipost/pepipost_test.go | 2 +- pkg/detectors/pipedrive/pipedrive_test.go | 2 +- .../pivotaltracker/pivotaltracker_test.go | 2 +- pkg/detectors/pixabay/pixabay_test.go | 2 +- pkg/detectors/plaidkey/plaidkey_test.go | 2 +- pkg/detectors/planyo/planyo_test.go | 2 +- pkg/detectors/plivo/plivo_test.go | 2 +- pkg/detectors/poloniex/poloniex_test.go | 2 +- pkg/detectors/polygon/polygon_test.go | 2 +- .../positionstack/positionstack_test.go | 2 +- pkg/detectors/postageapp/postageapp_test.go | 2 +- pkg/detectors/posthog/posthog_test.go | 2 +- pkg/detectors/postman/postman_test.go | 2 +- pkg/detectors/postmark/postmark_test.go | 2 +- pkg/detectors/powrbot/powrbot_test.go | 2 +- pkg/detectors/privatekey/privatekey_test.go | 2 +- pkg/detectors/prospectcrm/prospectcrm_test.go | 2 +- pkg/detectors/prospectio/prospectio_test.go | 2 +- pkg/detectors/protocolsio/protocolsio_test.go | 2 +- pkg/detectors/proxycrawl/proxycrawl_test.go | 2 +- .../pubnubpublishkey/pubnubpublishkey_test.go | 2 +- .../pubnubsubscriptionkey_test.go | 2 +- pkg/detectors/purestake/purestake_test.go | 2 +- .../pushbulletapikey/pushbulletapikey_test.go | 2 +- .../pusherchannelkey/pusherchannelkey_test.go | 2 +- pkg/detectors/qualaroo/qualaroo_test.go | 2 +- pkg/detectors/qubole/qubole_test.go | 2 +- .../quickmetrics/quickmetrics_test.go | 2 +- pkg/detectors/rapidapi/rapidapi_test.go | 2 +- pkg/detectors/raven/raven_test.go | 2 +- pkg/detectors/rawg/rawg_test.go | 2 +- pkg/detectors/razorpay/razorpay_test.go | 2 +- pkg/detectors/readme/readme_test.go | 2 +- .../reallysimplesystems_test.go | 2 +- pkg/detectors/rebrandly/rebrandly_test.go | 2 +- pkg/detectors/refiner/refiner_test.go | 2 +- pkg/detectors/restpack/restpack_test.go | 2 +- .../restpackhtmltopdfapi_test.go | 2 +- .../restpackscreenshotapi_test.go | 2 +- pkg/detectors/rev/rev_test.go | 2 +- pkg/detectors/revampcrm/revampcrm_test.go | 2 +- pkg/detectors/ringcentral/ringcentral_test.go | 2 +- pkg/detectors/ritekit/ritekit_test.go | 2 +- pkg/detectors/roaring/roaring_test.go | 2 +- pkg/detectors/rocketreach/rocketreach_test.go | 2 +- pkg/detectors/roninapp/roninapp_test.go | 2 +- pkg/detectors/route4me/route4me_test.go | 2 +- pkg/detectors/rubygems/rubygems_test.go | 2 +- pkg/detectors/runrunit/runrunit_test.go | 2 +- pkg/detectors/salesblink/salesblink_test.go | 2 +- pkg/detectors/salescookie/salescookie_test.go | 2 +- pkg/detectors/salesflare/salesflare_test.go | 2 +- .../satismeterprojectkey_test.go | 2 +- .../satismeterwritekey_test.go | 2 +- pkg/detectors/saucelabs/saucelabs_test.go | 2 +- pkg/detectors/scalewaykey/scalewaykey_test.go | 2 +- pkg/detectors/scrapeowl/scrapeowl_test.go | 2 +- pkg/detectors/scraperapi/scraperapi_test.go | 2 +- pkg/detectors/scraperbox/scraperbox_test.go | 2 +- pkg/detectors/scrapersite/scrapersite_test.go | 2 +- pkg/detectors/scrapestack/scrapestack_test.go | 2 +- pkg/detectors/scrapfly/scrapfly_test.go | 2 +- pkg/detectors/scrapingant/scrapingant_test.go | 2 +- pkg/detectors/scrapingbee/scrapingbee_test.go | 2 +- .../screenshotapi/screenshotapi_test.go | 2 +- .../screenshotlayer/screenshotlayer_test.go | 2 +- .../securitytrails/securitytrails_test.go | 2 +- .../segmentapikey/segmentapikey_test.go | 2 +- pkg/detectors/selectpdf/selectpdf_test.go | 2 +- pkg/detectors/semaphore/semaphore_test.go | 2 +- pkg/detectors/sendgrid/sendgrid_test.go | 2 +- .../sendinbluev2/sendinbluev2_test.go | 2 +- pkg/detectors/sentiment/sentiment_test.go | 2 +- pkg/detectors/sentrytoken/sentrytoken_test.go | 2 +- pkg/detectors/serphouse/serphouse_test.go | 2 +- pkg/detectors/serpstack/serpstack_test.go | 2 +- pkg/detectors/sheety/sheety_test.go | 2 +- pkg/detectors/sherpadesk/sherpadesk_test.go | 2 +- pkg/detectors/shipday/shipday_test.go | 2 +- pkg/detectors/shodankey/shodankey_test.go | 2 +- pkg/detectors/shortcut/shortcut_test.go | 2 +- pkg/detectors/shotstack/shotstack_test.go | 2 +- .../shutterstock/shutterstock_test.go | 2 +- .../shutterstockoauth_test.go | 2 +- pkg/detectors/signalwire/signalwire_test.go | 2 +- pkg/detectors/signaturit/signaturit_test.go | 2 +- .../signupgenius/signupgenius_test.go | 2 +- pkg/detectors/sigopt/sigopt_test.go | 2 +- pkg/detectors/simplesat/simplesat_test.go | 2 +- pkg/detectors/simplynoted/simplynoted_test.go | 2 +- pkg/detectors/simvoly/simvoly_test.go | 2 +- .../sinchmessage/sinchmessage_test.go | 2 +- pkg/detectors/siteleaf/siteleaf_test.go | 2 +- pkg/detectors/skrappio/skrappio_test.go | 2 +- pkg/detectors/skybiometry/skybiometry_test.go | 2 +- pkg/detectors/slack/slack_test.go | 2 +- .../slackwebhook/slackwebhook_test.go | 2 +- pkg/detectors/smartsheets/smartsheets_test.go | 2 +- .../smartystreets/smartystreets_test.go | 2 +- pkg/detectors/smooch/smooch_test.go | 2 +- pkg/detectors/snipcart/snipcart_test.go | 2 +- pkg/detectors/snykkey/snykkey_test.go | 2 +- pkg/detectors/sparkpost/sparkpost_test.go | 2 +- .../splunkobservabilitytoken_test.go | 2 +- pkg/detectors/spoonacular/spoonacular_test.go | 2 +- pkg/detectors/sportsmonk/sportsmonk_test.go | 2 +- pkg/detectors/spotifykey/spotifykey_test.go | 2 +- pkg/detectors/square/square_test.go | 2 +- pkg/detectors/squareapp/squareapp_test.go | 2 +- pkg/detectors/squarespace/squarespace_test.go | 2 +- pkg/detectors/squareup/squareup_test.go | 2 +- pkg/detectors/sslmate/sslmate_test.go | 2 +- pkg/detectors/stitchdata/stitchdata_test.go | 2 +- pkg/detectors/stockdata/stockdata_test.go | 2 +- pkg/detectors/storecove/storecove_test.go | 2 +- pkg/detectors/stormglass/stormglass_test.go | 2 +- pkg/detectors/storyblok/storyblok_test.go | 2 +- pkg/detectors/storychief/storychief_test.go | 2 +- pkg/detectors/strava/strava_test.go | 2 +- pkg/detectors/streak/streak_test.go | 2 +- pkg/detectors/stripe/stripe_test.go | 2 +- pkg/detectors/stytch/stytch_test.go | 2 +- .../sumologickey/sumologickey_test.go | 2 +- .../surveyanyplace/surveyanyplace_test.go | 2 +- pkg/detectors/surveybot/surveybot_test.go | 2 +- .../surveysparrow/surveysparrow_test.go | 2 +- pkg/detectors/survicate/survicate_test.go | 2 +- pkg/detectors/swell/swell_test.go | 2 +- pkg/detectors/swiftype/swiftype_test.go | 2 +- pkg/detectors/tatumio/tatumio_test.go | 2 +- pkg/detectors/taxjar/taxjar_test.go | 2 +- pkg/detectors/teamgate/teamgate_test.go | 2 +- .../technicalanalysisapi_test.go | 2 +- .../telegrambottoken/telegrambottoken_test.go | 2 +- pkg/detectors/telnyx/telnyx_test.go | 2 +- .../terraformcloudpersonaltoken_test.go | 2 +- pkg/detectors/text2data/text2data_test.go | 2 +- pkg/detectors/textmagic/textmagic_test.go | 2 +- pkg/detectors/thinkific/thinkific_test.go | 2 +- .../thousandeyes/thousandeyes_test.go | 2 +- .../ticketmaster/ticketmaster_test.go | 2 +- pkg/detectors/tiingo/tiingo_test.go | 2 +- pkg/detectors/timezoneapi/timezoneapi_test.go | 2 +- pkg/detectors/tly/tly_test.go | 2 +- pkg/detectors/tmetric/tmetric_test.go | 2 +- pkg/detectors/todoist/todoist_test.go | 2 +- pkg/detectors/toggltrack/toggltrack_test.go | 2 +- pkg/detectors/tomorrowio/tomorrowio_test.go | 2 +- pkg/detectors/tomtom/tomtom_test.go | 2 +- pkg/detectors/tradier/tradier_test.go | 2 +- .../travelpayouts/travelpayouts_test.go | 2 +- pkg/detectors/travisci/travisci_test.go | 2 +- .../trelloapikey/trelloapikey_test.go | 2 +- pkg/detectors/tru/tru_test.go | 2 +- pkg/detectors/twelvedata/twelvedata_test.go | 2 +- pkg/detectors/twilio/twilio_test.go | 2 +- pkg/detectors/tyntec/tyntec_test.go | 2 +- pkg/detectors/typeform/typeform_test.go | 2 +- pkg/detectors/ubidots/ubidots_test.go | 2 +- pkg/detectors/unifyid/unifyid_test.go | 2 +- pkg/detectors/unplugg/unplugg_test.go | 2 +- pkg/detectors/unsplash/unsplash_test.go | 2 +- pkg/detectors/upcdatabase/upcdatabase_test.go | 2 +- pkg/detectors/uplead/uplead_test.go | 2 +- pkg/detectors/upwave/upwave_test.go | 2 +- pkg/detectors/uri/uri_test.go | 2 +- pkg/detectors/urlscan/urlscan_test.go | 2 +- pkg/detectors/user/user_test.go | 2 +- pkg/detectors/userstack/userstack_test.go | 2 +- pkg/detectors/vatlayer/vatlayer_test.go | 2 +- pkg/detectors/vercel/vercel_test.go | 2 +- pkg/detectors/verifier/verifier_test.go | 2 +- pkg/detectors/verimail/verimail_test.go | 2 +- pkg/detectors/veriphone/veriphone_test.go | 2 +- pkg/detectors/versioneye/versioneye_test.go | 2 +- pkg/detectors/viewneo/viewneo_test.go | 2 +- pkg/detectors/virustotal/virustotal_test.go | 2 +- .../visualcrossing/visualcrossing_test.go | 2 +- pkg/detectors/voicegain/voicegain_test.go | 2 +- pkg/detectors/vouchery/vouchery_test.go | 2 +- pkg/detectors/vpnapi/vpnapi_test.go | 2 +- pkg/detectors/vultrapikey/vultrapikey_test.go | 2 +- pkg/detectors/vyte/vyte_test.go | 2 +- pkg/detectors/walkscore/walkscore_test.go | 2 +- pkg/detectors/weatherbit/weatherbit_test.go | 2 +- .../weatherstack/weatherstack_test.go | 2 +- pkg/detectors/webex/webex_test.go | 2 +- pkg/detectors/webflow/webflow_test.go | 2 +- pkg/detectors/webscraper/webscraper_test.go | 2 +- pkg/detectors/webscraping/webscraping_test.go | 2 +- pkg/detectors/wepay/wepay_test.go | 2 +- pkg/detectors/whoxy/whoxy_test.go | 2 +- pkg/detectors/worksnaps/worksnaps_test.go | 2 +- pkg/detectors/workstack/workstack_test.go | 2 +- .../worldcoinindex/worldcoinindex_test.go | 2 +- .../worldweather/worldweather_test.go | 2 +- pkg/detectors/wrike/wrike_test.go | 2 +- pkg/detectors/yandex/yandex_test.go | 2 +- .../youneedabudget/youneedabudget_test.go | 2 +- pkg/detectors/yousign/yousign_test.go | 2 +- .../youtubeapikey/youtubeapikey_test.go | 2 +- .../zapierwebhook/zapierwebhook_test.go | 2 +- pkg/detectors/zendeskapi/zendeskapi_test.go | 2 +- pkg/detectors/zenscrape/zenscrape_test.go | 2 +- pkg/detectors/zenserp/zenserp_test.go | 2 +- pkg/detectors/zeplin/zeplin_test.go | 2 +- pkg/detectors/zerobounce/zerobounce_test.go | 2 +- pkg/detectors/zipapi/zipapi_test.go | 2 +- pkg/detectors/zipbooks/zipbooks_test.go | 2 +- pkg/detectors/zipcodeapi/zipcodeapi_test.go | 2 +- .../zonkafeedback/zonkafeedback_test.go | 2 +- scripts/test_changed_detectors.sh | 17 +++ 595 files changed, 879 insertions(+), 590 deletions(-) create mode 100644 .gitattributes create mode 100644 hack/docs/Adding_Detectors.md create mode 100644 hack/generate/generate.go create mode 100755 hack/generate/test.sh create mode 100755 scripts/test_changed_detectors.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..10d9fcbaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +*.go text eol=lf +*.md text eol=lf \ No newline at end of file diff --git a/Makefile b/Makefile index 1d9a1d55f..c5860346c 100644 --- a/Makefile +++ b/Makefile @@ -43,3 +43,6 @@ run-debug: protos: docker run -u "$(shell id -u)" -v "$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))":/pwd "${PROTOS_IMAGE}" bash -c "cd /pwd; /pwd/scripts/gen_proto.sh" + +protos-windows: + docker run -v "$(shell cygpath -w $(shell pwd))":/pwd "${PROTOS_IMAGE}" bash -c "cd /pwd; ./scripts/gen_proto.sh" diff --git a/hack/docs/Adding_Detectors.md b/hack/docs/Adding_Detectors.md new file mode 100644 index 000000000..556fb4f5a --- /dev/null +++ b/hack/docs/Adding_Detectors.md @@ -0,0 +1,125 @@ +# Secret Detectors + +Secret Detectors have these two major functions: + +1. Given some bytes, extract possible secrets, typically using a regex. +2. Validate the secrets against the target API, typically using a HTTP client. + +The purpose of Secret Detectors is to discover secrets with exceptionally high signal. High rates of false positives are not accepted. + +## Table of Contents + +- [Secret Detectors](#secret-detectors) + - [Table of Contents](#table-of-contents) + - [Getting Started](#getting-started) + - [Sourcing Guidelines](#sourcing-guidelines) + - [Development Guidelines](#development-guidelines) + - [Development Dependencies](#development-dependencies) + - [Creating a new Secret Scanner](#creating-a-new-secret-detector) + - [Addendum](#addendum) + - [Managing Test Secrets](#managing-test-secrets) + - [Setting up Google Cloud SDK](#setting-up-google-cloud-sdk) + +## Getting Started + +### Sourcing Guidelines + +We are interested in detectors for services that meet at least one of these criteria +- host data (they store any sort of data provided) +- have paid services (having a free or trial tier is okay though) + +If you think that something should be included outside of these guidelines, please let us know. + +### Development Guidelines + +- When reasonable, favor using the `net/http` library to make requests instead of bringing in another library. +- Use the [`common.SaneHttpClient`](pkg/common/http.go) for the `http.Client` whenever possible. +- We recommend an editor with gopls integration (such as Vscode with Go plugin) for benefits like easily running tests, autocompletion, linting, type checking, etc. + +### Development Dependencies + +- A GitLab account +- A Google account +- [Google Cloud SDK installed](#setting-up-google-cloud-sdk) +- Go 1.16 +- Make + +### Creating a new Secret Scanner + +1. Identify the Secret Scanner name from the [proto/secrets.proto](proto/secrets.proto) `DetectorType` enum. + +2. Generate the SecretScanner + + ```bash + go run hack/generate/generate.go detector + ``` + +3. Complete the secret detector. + + The previous step templated a boilerplate + some example code as a package in the `pkg/secrets` folder for you to work on. + The secret detector can be completed with these general steps: + + 1. Add the test secret to GCP Secrets. See [managing test secrets](#managing-test-secrets) + 2. Update the pattern regex and keywords. Try iterating with [regex101.com](http://regex101.com/). + 3. Update the verifier code to use a non-destructive API call that can determine whether the secret is valid or not. + 4. Update the tests with these test cases at minimum: + 1. Found and verified (using a credential loaded from GCP Secrets) + 2. Found and unverified + 3. Not found + 4. Any false positive cases that you come across + 5. Create a merge request for review. CI tests must be passing. + +## Addendum + +### Managing Test Secrets + +Do not embed test credentials in the test code. Instead, use GCP Secrets Manager. + +1. Access the latest secret version for modification. + + Note: `/tmp/s` is a valid path on Linux. You will need to change that for Windows or OSX, otherwise you will see an error. On Windows you will also need to install [WSL](https://docs.microsoft.com/en-us/windows/wsl/install). + + ```bash + gcloud secrets versions access --project thog-contractor-tests --secret detectors3 latest > /tmp/s + ``` + +2. Add the secret that you need for testing. + + The command above saved it to `/tmp/s`. + + The format is standard env file format, + + ```bash + SECRET_TYPE_ONE=value + SECRET_TYPE_ONE_INACTIVE=v@lue + ``` + +3. Update the secret version with your modification. + + ```bash + gcloud secrets versions add --project thog-contractor-tests detectors3 --data-file /tmp/s + ``` + +4. Access the secret value as shown in the [example code](pkg/secrets/heroku/heroku_test.go). + +### Setting up Google Cloud SDK + +1. Install the Google Cloud SDK: https://cloud.google.com/sdk/docs/install +2. Authenticate with `gcloud auth login --update-adc` using your Google account + +### Adding Protos in Windows + +1. Install Ubuntu App in Microsoft Store https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6. +2. Install Docker Desktop https://www.docker.com/products/docker-desktop. Enable WSL integration to Ubuntu. In Docker app, go to Settings->Resources->WSL INTEGRATION->enable Ubuntu. +3. Open Ubuntu cli and install `dos2unix`. + ```bash + sudo apt install dos2unix + ``` +4. Identify the `trufflehog` local directory and convert `scripts/gen_proto.sh` file in Unix format. + ```bash + dos2unix ./scripts/gen_proto.sh + ``` +5. Open [proto/secrets.proto](proto/secrets.proto) file and add new detectors then save it. Make sure Docker is running and run this in Ubuntu command line. + ```bash + make protos + ``` diff --git a/hack/generate/generate.go b/hack/generate/generate.go new file mode 100644 index 000000000..a95251da7 --- /dev/null +++ b/hack/generate/generate.go @@ -0,0 +1,126 @@ +package main + +import ( + "io/ioutil" + "log" + "os" + "path/filepath" + "strings" + "text/template" + + "github.com/go-errors/errors" + "gopkg.in/alecthomas/kingpin.v2" +) + +var ( + app = kingpin.New("generate", "Generate is used to write new features.") + kind = app.Arg("kind", "Kind of thing to generate.").Required().Enum("detector") + name = app.Arg("name", "Name of the Source/Detector to generate.").Required().String() + nameTitle, nameLower, nameUpper string +) + +func main() { + log.SetFlags(log.Lmsgprefix) + log.SetPrefix("😲 [generate] ") + + kingpin.MustParse(app.Parse(os.Args[1:])) + nameTitle = strings.Title(*name) + nameLower = strings.ToLower(*name) + nameUpper = strings.ToUpper(*name) + + switch *kind { + case "detector": + mustWriteTemplates([]templateJob{ + { + TemplatePath: "pkg/detectors/heroku/heroku.go", + WritePath: filepath.Join(folderPath(), nameLower+".go"), + ReplaceString: []string{"heroku"}, + }, + { + TemplatePath: "pkg/detectors/heroku/heroku_test.go", + WritePath: filepath.Join(folderPath(), nameLower+"_test.go"), + ReplaceString: []string{"heroku"}, + }, + }) + // case "source": + // mustWriteTemplates([]templateJob{ + // { + // TemplatePath: "pkg/sources/filesystem/filesystem.go", + // WritePath: filepath.Join(folderPath(), nameLower+".go"), + // ReplaceString: []string{"filesystem"}, + // }, + // { + // TemplatePath: "pkg/sources/filesystem/filesystem_test.go", + // WritePath: filepath.Join(folderPath(), nameLower+"_test.go"), + // ReplaceString: []string{"filesystem"}, + // }, + // }) + } +} + +type templateJob struct { + TemplatePath string + WritePath string + ReplaceString []string +} + +func mustWriteTemplates(jobs []templateJob) { + log.Printf("Generating %s %s\n", strings.Title(*kind), nameTitle) + + // Make the folder. + log.Printf("Creating folder %s\n", folderPath()) + err := makeFolder(folderPath()) + if err != nil { + log.Fatal(err) + } + + // Write the files from templates. + for _, job := range jobs { + tmplBytes, err := ioutil.ReadFile(job.TemplatePath) + if err != nil { + log.Fatal(err) + } + tmplRaw := string(tmplBytes) + + for _, rplString := range job.ReplaceString { + tmplRaw = strings.ReplaceAll(tmplRaw, strings.ToLower(rplString), "<<.NameLower>>") + tmplRaw = strings.ReplaceAll(tmplRaw, strings.Title(rplString), "<<.NameTitle>>") + tmplRaw = strings.ReplaceAll(tmplRaw, strings.ToUpper(rplString), "<<.NameUpper>>") + } + + tmpl := template.Must(template.New("main").Delims("<<", ">>").Parse(tmplRaw)) + + log.Printf("Writing file %s\n", job.WritePath) + f, err := os.OpenFile(job.WritePath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644) + if err != nil { + log.Fatal(err) + } + tmpl.Execute(f, templateData{ + NameTitle: nameTitle, + NameLower: nameLower, + NameUpper: nameUpper, + }) + } +} + +type templateData struct { + NameTitle string + NameLower string + NameUpper string +} + +func folderPath() string { + return filepath.Join("pkg/", *kind+"s", nameLower) +} + +func makeFolder(path string) error { + _, err := os.Stat(path) + if os.IsNotExist(err) { + err := os.MkdirAll(path, 0755) + if err != nil { + return errors.New(err) + } + return nil + } + return errors.Errorf("%s %s already exists", *kind, *name) +} diff --git a/hack/generate/test.sh b/hack/generate/test.sh new file mode 100755 index 000000000..6cb01a48c --- /dev/null +++ b/hack/generate/test.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -eu + +function cleanup { + rm -rf pkg/detectors/test +} +trap cleanup EXIT + +export CGO_ENABLED=0 + +export FORCE_PASS_DIFF=true + +echo "████████████ Testing generate Detector" +go run hack/generate/generate.go detector Test +go test ./pkg/detectors/test -benchmem -bench . +echo "" diff --git a/pkg/detectors/abbysale/abbysale_test.go b/pkg/detectors/abbysale/abbysale_test.go index f8315a5bb..4a690a183 100644 --- a/pkg/detectors/abbysale/abbysale_test.go +++ b/pkg/detectors/abbysale/abbysale_test.go @@ -16,7 +16,7 @@ import ( func TestAbbysale_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/abstract/abstract_test.go b/pkg/detectors/abstract/abstract_test.go index 5a156d28e..7a701e592 100644 --- a/pkg/detectors/abstract/abstract_test.go +++ b/pkg/detectors/abstract/abstract_test.go @@ -16,7 +16,7 @@ import ( func TestAbstract_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/abuseipdb/abuseipdb_test.go b/pkg/detectors/abuseipdb/abuseipdb_test.go index 8fdc8bc75..e1024e429 100644 --- a/pkg/detectors/abuseipdb/abuseipdb_test.go +++ b/pkg/detectors/abuseipdb/abuseipdb_test.go @@ -16,7 +16,7 @@ import ( func TestAbuseIPDB_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/accuweather/accuweather_test.go b/pkg/detectors/accuweather/accuweather_test.go index 3328b93b3..faa3f8554 100644 --- a/pkg/detectors/accuweather/accuweather_test.go +++ b/pkg/detectors/accuweather/accuweather_test.go @@ -16,7 +16,7 @@ import ( func TestAccuweather_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/adafruitio/adafruitio_test.go b/pkg/detectors/adafruitio/adafruitio_test.go index 0c2c3e732..201bffb5c 100644 --- a/pkg/detectors/adafruitio/adafruitio_test.go +++ b/pkg/detectors/adafruitio/adafruitio_test.go @@ -16,7 +16,7 @@ import ( func TestAdafruitIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/adobeio/adobeio_test.go b/pkg/detectors/adobeio/adobeio_test.go index a49c42617..92957669f 100644 --- a/pkg/detectors/adobeio/adobeio_test.go +++ b/pkg/detectors/adobeio/adobeio_test.go @@ -16,7 +16,7 @@ import ( func TestAdobeIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/adzuna/adzuna_test.go b/pkg/detectors/adzuna/adzuna_test.go index bf7c46f07..f4db9d834 100644 --- a/pkg/detectors/adzuna/adzuna_test.go +++ b/pkg/detectors/adzuna/adzuna_test.go @@ -16,7 +16,7 @@ import ( func TestAdzuna_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/agora/agora_test.go b/pkg/detectors/agora/agora_test.go index eabda0ffc..d6c9691c0 100644 --- a/pkg/detectors/agora/agora_test.go +++ b/pkg/detectors/agora/agora_test.go @@ -16,7 +16,7 @@ import ( func TestAgora_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey_test.go b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey_test.go index 01ccc75f7..2f6e5d193 100644 --- a/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey_test.go +++ b/pkg/detectors/airbrakeprojectkey/airbrakeprojectkey_test.go @@ -16,7 +16,7 @@ import ( func TestAirbrakeProjectKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/airbrakeuserkey/airbrakeuserkey_test.go b/pkg/detectors/airbrakeuserkey/airbrakeuserkey_test.go index 924c416d8..3625e1b7f 100644 --- a/pkg/detectors/airbrakeuserkey/airbrakeuserkey_test.go +++ b/pkg/detectors/airbrakeuserkey/airbrakeuserkey_test.go @@ -16,7 +16,7 @@ import ( func TestAirbrakeUserKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/airship/airship_test.go b/pkg/detectors/airship/airship_test.go index 4ccd3d7f9..dba5a57f5 100644 --- a/pkg/detectors/airship/airship_test.go +++ b/pkg/detectors/airship/airship_test.go @@ -16,7 +16,7 @@ import ( func TestAirship_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/airtableapikey/airtableapikey_test.go b/pkg/detectors/airtableapikey/airtableapikey_test.go index 36e9f40ae..ec81ae905 100644 --- a/pkg/detectors/airtableapikey/airtableapikey_test.go +++ b/pkg/detectors/airtableapikey/airtableapikey_test.go @@ -16,7 +16,7 @@ import ( func TestAirtableApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/airvisual/airvisual_test.go b/pkg/detectors/airvisual/airvisual_test.go index 737b5357e..5d9db652f 100644 --- a/pkg/detectors/airvisual/airvisual_test.go +++ b/pkg/detectors/airvisual/airvisual_test.go @@ -16,7 +16,7 @@ import ( func TestAirVisual_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/alconost/alconost_test.go b/pkg/detectors/alconost/alconost_test.go index 9ab880650..4d0f0102d 100644 --- a/pkg/detectors/alconost/alconost_test.go +++ b/pkg/detectors/alconost/alconost_test.go @@ -16,7 +16,7 @@ import ( func TestAlconost_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/alegra/alegra_test.go b/pkg/detectors/alegra/alegra_test.go index 8ec87eabc..4c96c7c3c 100644 --- a/pkg/detectors/alegra/alegra_test.go +++ b/pkg/detectors/alegra/alegra_test.go @@ -16,7 +16,7 @@ import ( func TestAlegra_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/aletheiaapi/aletheiaapi_test.go b/pkg/detectors/aletheiaapi/aletheiaapi_test.go index 8134aa79c..61d4c143e 100644 --- a/pkg/detectors/aletheiaapi/aletheiaapi_test.go +++ b/pkg/detectors/aletheiaapi/aletheiaapi_test.go @@ -16,7 +16,7 @@ import ( func TestAletheiaApi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/algoliaadminkey/algoliaadminkey_test.go b/pkg/detectors/algoliaadminkey/algoliaadminkey_test.go index ed15f73ea..8d4030778 100644 --- a/pkg/detectors/algoliaadminkey/algoliaadminkey_test.go +++ b/pkg/detectors/algoliaadminkey/algoliaadminkey_test.go @@ -16,7 +16,7 @@ import ( func TestAlgoliaAdminKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/alibaba/alibaba_test.go b/pkg/detectors/alibaba/alibaba_test.go index cd003aeef..8a5478e60 100644 --- a/pkg/detectors/alibaba/alibaba_test.go +++ b/pkg/detectors/alibaba/alibaba_test.go @@ -15,7 +15,7 @@ import ( func TestAlibaba_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/alienvault/alienvault_test.go b/pkg/detectors/alienvault/alienvault_test.go index 6e1da563f..a15949c36 100644 --- a/pkg/detectors/alienvault/alienvault_test.go +++ b/pkg/detectors/alienvault/alienvault_test.go @@ -16,7 +16,7 @@ import ( func TestAlienVault_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/allsports/allsports_test.go b/pkg/detectors/allsports/allsports_test.go index 0b46bd67d..831c8fb98 100644 --- a/pkg/detectors/allsports/allsports_test.go +++ b/pkg/detectors/allsports/allsports_test.go @@ -16,7 +16,7 @@ import ( func TestAllsports_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/amadeus/amadeus_test.go b/pkg/detectors/amadeus/amadeus_test.go index 3dff545b5..6c58e20a1 100644 --- a/pkg/detectors/amadeus/amadeus_test.go +++ b/pkg/detectors/amadeus/amadeus_test.go @@ -16,7 +16,7 @@ import ( func TestAmadeus_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ambee/ambee_test.go b/pkg/detectors/ambee/ambee_test.go index 826cf6095..792328643 100644 --- a/pkg/detectors/ambee/ambee_test.go +++ b/pkg/detectors/ambee/ambee_test.go @@ -16,7 +16,7 @@ import ( func TestAmbee_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/amplitudeapikey/amplitudeapikey_test.go b/pkg/detectors/amplitudeapikey/amplitudeapikey_test.go index 99ad3b932..67df8af1f 100644 --- a/pkg/detectors/amplitudeapikey/amplitudeapikey_test.go +++ b/pkg/detectors/amplitudeapikey/amplitudeapikey_test.go @@ -16,7 +16,7 @@ import ( func TestAmplitudeApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/anypoint/anypoint_test.go b/pkg/detectors/anypoint/anypoint_test.go index d1c609dc8..911badc26 100644 --- a/pkg/detectors/anypoint/anypoint_test.go +++ b/pkg/detectors/anypoint/anypoint_test.go @@ -16,7 +16,7 @@ import ( func TestAnypoint_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/apacta/apacta_test.go b/pkg/detectors/apacta/apacta_test.go index fd9b729b9..355c808c3 100644 --- a/pkg/detectors/apacta/apacta_test.go +++ b/pkg/detectors/apacta/apacta_test.go @@ -16,7 +16,7 @@ import ( func TestApacta_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/api2cart/api2cart_test.go b/pkg/detectors/api2cart/api2cart_test.go index a9d6b8829..7d3c1e5d3 100644 --- a/pkg/detectors/api2cart/api2cart_test.go +++ b/pkg/detectors/api2cart/api2cart_test.go @@ -16,7 +16,7 @@ import ( func TestApi2Cart_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/apideck/apideck_test.go b/pkg/detectors/apideck/apideck_test.go index d6a2513ab..7498514bb 100644 --- a/pkg/detectors/apideck/apideck_test.go +++ b/pkg/detectors/apideck/apideck_test.go @@ -16,7 +16,7 @@ import ( func TestApiDeck_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/apiflash/apiflash_test.go b/pkg/detectors/apiflash/apiflash_test.go index 5e8f405e6..b17cb458c 100644 --- a/pkg/detectors/apiflash/apiflash_test.go +++ b/pkg/detectors/apiflash/apiflash_test.go @@ -16,7 +16,7 @@ import ( func TestApiflash_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/apifonica/apifonica_test.go b/pkg/detectors/apifonica/apifonica_test.go index 7419f0420..3ea378080 100644 --- a/pkg/detectors/apifonica/apifonica_test.go +++ b/pkg/detectors/apifonica/apifonica_test.go @@ -16,7 +16,7 @@ import ( func TestApifonica_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/apify/apify_test.go b/pkg/detectors/apify/apify_test.go index 2734103e2..a9227f7d4 100644 --- a/pkg/detectors/apify/apify_test.go +++ b/pkg/detectors/apify/apify_test.go @@ -16,7 +16,7 @@ import ( func TestApify_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/apimatic/apimatic_test.go b/pkg/detectors/apimatic/apimatic_test.go index 139ebdb78..759e1e8ed 100644 --- a/pkg/detectors/apimatic/apimatic_test.go +++ b/pkg/detectors/apimatic/apimatic_test.go @@ -16,7 +16,7 @@ import ( func TestAPIMatic_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/apiscience/apiscience_test.go b/pkg/detectors/apiscience/apiscience_test.go index b237c1620..6b4e6d6cf 100644 --- a/pkg/detectors/apiscience/apiscience_test.go +++ b/pkg/detectors/apiscience/apiscience_test.go @@ -16,7 +16,7 @@ import ( func TestApiScience_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/apollo/apollo_test.go b/pkg/detectors/apollo/apollo_test.go index 1da2c234c..1ccb5ffa7 100644 --- a/pkg/detectors/apollo/apollo_test.go +++ b/pkg/detectors/apollo/apollo_test.go @@ -16,7 +16,7 @@ import ( func TestApollo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/appcues/appcues_test.go b/pkg/detectors/appcues/appcues_test.go index 8251891a7..ba2b4122d 100644 --- a/pkg/detectors/appcues/appcues_test.go +++ b/pkg/detectors/appcues/appcues_test.go @@ -16,7 +16,7 @@ import ( func TestAppcues_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/appfollow/appfollow_test.go b/pkg/detectors/appfollow/appfollow_test.go index 32a4e6d77..7c9d13bf7 100644 --- a/pkg/detectors/appfollow/appfollow_test.go +++ b/pkg/detectors/appfollow/appfollow_test.go @@ -16,7 +16,7 @@ import ( func TestAppfollow_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/appsynergy/appsynergy_test.go b/pkg/detectors/appsynergy/appsynergy_test.go index 4c72f895d..97c404fca 100644 --- a/pkg/detectors/appsynergy/appsynergy_test.go +++ b/pkg/detectors/appsynergy/appsynergy_test.go @@ -16,7 +16,7 @@ import ( func TestAppSynergy_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/apptivo/apptivo_test.go b/pkg/detectors/apptivo/apptivo_test.go index 6ad381e23..c7dfbdb24 100644 --- a/pkg/detectors/apptivo/apptivo_test.go +++ b/pkg/detectors/apptivo/apptivo_test.go @@ -16,7 +16,7 @@ import ( func TestApptivo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/artifactory/artifactory_test.go b/pkg/detectors/artifactory/artifactory_test.go index 2323c60db..a3ee58b9c 100644 --- a/pkg/detectors/artifactory/artifactory_test.go +++ b/pkg/detectors/artifactory/artifactory_test.go @@ -16,7 +16,7 @@ import ( func TestArtifactory_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/artsy/artsy_test.go b/pkg/detectors/artsy/artsy_test.go index 2175d9fbd..b03bc7417 100644 --- a/pkg/detectors/artsy/artsy_test.go +++ b/pkg/detectors/artsy/artsy_test.go @@ -16,7 +16,7 @@ import ( func TestArtsy_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/asanaoauth/asanaoauth_test.go b/pkg/detectors/asanaoauth/asanaoauth_test.go index aec60aba1..6ebc212df 100644 --- a/pkg/detectors/asanaoauth/asanaoauth_test.go +++ b/pkg/detectors/asanaoauth/asanaoauth_test.go @@ -16,7 +16,7 @@ import ( func TestAsanaOauth_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken_test.go b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken_test.go index 9bf2c5a0f..b07c81a25 100644 --- a/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken_test.go +++ b/pkg/detectors/asanapersonalaccesstoken/asanapersonalaccesstoken_test.go @@ -16,7 +16,7 @@ import ( func TestAsanaPersonalAccessToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/assemblyai/assemblyai_test.go b/pkg/detectors/assemblyai/assemblyai_test.go index b50926cbd..6ba70c205 100644 --- a/pkg/detectors/assemblyai/assemblyai_test.go +++ b/pkg/detectors/assemblyai/assemblyai_test.go @@ -16,7 +16,7 @@ import ( func TestAssemblyai_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/audd/audd_test.go b/pkg/detectors/audd/audd_test.go index 2ba6b8da5..c92b2de3d 100644 --- a/pkg/detectors/audd/audd_test.go +++ b/pkg/detectors/audd/audd_test.go @@ -16,7 +16,7 @@ import ( func TestAudd_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/auth0managementapitoken/auth0managementapitoken_test.go b/pkg/detectors/auth0managementapitoken/auth0managementapitoken_test.go index 4ae21c7bf..e901aae23 100644 --- a/pkg/detectors/auth0managementapitoken/auth0managementapitoken_test.go +++ b/pkg/detectors/auth0managementapitoken/auth0managementapitoken_test.go @@ -16,7 +16,7 @@ import ( func TestAuth0ManagementApiToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/auth0oauth/auth0oauth_test.go b/pkg/detectors/auth0oauth/auth0oauth_test.go index e4276e048..316c19296 100644 --- a/pkg/detectors/auth0oauth/auth0oauth_test.go +++ b/pkg/detectors/auth0oauth/auth0oauth_test.go @@ -16,7 +16,7 @@ import ( func TestAuth0oauth_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/autodesk/autodesk_test.go b/pkg/detectors/autodesk/autodesk_test.go index 6922c198c..f5eea59b0 100644 --- a/pkg/detectors/autodesk/autodesk_test.go +++ b/pkg/detectors/autodesk/autodesk_test.go @@ -16,7 +16,7 @@ import ( func TestAutodesk_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/autoklose/autoklose_test.go b/pkg/detectors/autoklose/autoklose_test.go index 707045b2f..77363f924 100644 --- a/pkg/detectors/autoklose/autoklose_test.go +++ b/pkg/detectors/autoklose/autoklose_test.go @@ -16,7 +16,7 @@ import ( func TestAutoklose_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/autopilot/autopilot_test.go b/pkg/detectors/autopilot/autopilot_test.go index cf6a87fe4..cd8dd6a3e 100644 --- a/pkg/detectors/autopilot/autopilot_test.go +++ b/pkg/detectors/autopilot/autopilot_test.go @@ -16,7 +16,7 @@ import ( func TestAutoPilot_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/aviationstack/aviationstack_test.go b/pkg/detectors/aviationstack/aviationstack_test.go index 9cc5603b0..32c0674b0 100644 --- a/pkg/detectors/aviationstack/aviationstack_test.go +++ b/pkg/detectors/aviationstack/aviationstack_test.go @@ -16,7 +16,7 @@ import ( func TestAviationStack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/aws/aws_test.go b/pkg/detectors/aws/aws_test.go index d1c5f067d..8649104ab 100644 --- a/pkg/detectors/aws/aws_test.go +++ b/pkg/detectors/aws/aws_test.go @@ -18,7 +18,7 @@ func TestScanner_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } @@ -117,7 +117,7 @@ func BenchmarkFromData(benchmark *testing.B) { func Test_callerIdentity(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/axonaut/axonaut_test.go b/pkg/detectors/axonaut/axonaut_test.go index 776cb103b..78e1af1af 100644 --- a/pkg/detectors/axonaut/axonaut_test.go +++ b/pkg/detectors/axonaut/axonaut_test.go @@ -16,7 +16,7 @@ import ( func TestAxonaut_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/aylien/aylien_test.go b/pkg/detectors/aylien/aylien_test.go index c12cde2eb..b266b92d6 100644 --- a/pkg/detectors/aylien/aylien_test.go +++ b/pkg/detectors/aylien/aylien_test.go @@ -16,7 +16,7 @@ import ( func TestAylien_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ayrshare/ayrshare_test.go b/pkg/detectors/ayrshare/ayrshare_test.go index 0dad962a3..45ef7f7ea 100644 --- a/pkg/detectors/ayrshare/ayrshare_test.go +++ b/pkg/detectors/ayrshare/ayrshare_test.go @@ -16,7 +16,7 @@ import ( func TestAyrshare_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/azure/azure_test.go b/pkg/detectors/azure/azure_test.go index 8a1d2b62b..1bd0c076b 100644 --- a/pkg/detectors/azure/azure_test.go +++ b/pkg/detectors/azure/azure_test.go @@ -15,7 +15,7 @@ import ( func TestAzure_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/bannerbear/bannerbear_test.go b/pkg/detectors/bannerbear/bannerbear_test.go index 8f0dc35f2..e3426be2a 100644 --- a/pkg/detectors/bannerbear/bannerbear_test.go +++ b/pkg/detectors/bannerbear/bannerbear_test.go @@ -16,7 +16,7 @@ import ( func TestBannerbear_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/baremetrics/baremetrics_test.go b/pkg/detectors/baremetrics/baremetrics_test.go index cf8f9b95f..1ce9d16ab 100644 --- a/pkg/detectors/baremetrics/baremetrics_test.go +++ b/pkg/detectors/baremetrics/baremetrics_test.go @@ -16,7 +16,7 @@ import ( func TestBaremetrics_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/baseapiio/baseapiio_test.go b/pkg/detectors/baseapiio/baseapiio_test.go index cd4e671d1..454c0b5cb 100644 --- a/pkg/detectors/baseapiio/baseapiio_test.go +++ b/pkg/detectors/baseapiio/baseapiio_test.go @@ -16,7 +16,7 @@ import ( func TestBaseApiIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/beamer/beamer_test.go b/pkg/detectors/beamer/beamer_test.go index 59794f9e1..e32f8dbcc 100644 --- a/pkg/detectors/beamer/beamer_test.go +++ b/pkg/detectors/beamer/beamer_test.go @@ -16,7 +16,7 @@ import ( func TestBeamer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/beebole/beebole_test.go b/pkg/detectors/beebole/beebole_test.go index 6046f7111..d7d6d1673 100644 --- a/pkg/detectors/beebole/beebole_test.go +++ b/pkg/detectors/beebole/beebole_test.go @@ -16,7 +16,7 @@ import ( func TestBeebole_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/besttime/besttime_test.go b/pkg/detectors/besttime/besttime_test.go index 78cd4a23b..2d1243bc9 100644 --- a/pkg/detectors/besttime/besttime_test.go +++ b/pkg/detectors/besttime/besttime_test.go @@ -16,7 +16,7 @@ import ( func TestBesttime_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/billomat/billomat_test.go b/pkg/detectors/billomat/billomat_test.go index 8c5c527a6..95118b813 100644 --- a/pkg/detectors/billomat/billomat_test.go +++ b/pkg/detectors/billomat/billomat_test.go @@ -16,7 +16,7 @@ import ( func TestBillomat_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/bitbar/bitbar_test.go b/pkg/detectors/bitbar/bitbar_test.go index 81e046499..9477cbcc7 100644 --- a/pkg/detectors/bitbar/bitbar_test.go +++ b/pkg/detectors/bitbar/bitbar_test.go @@ -16,7 +16,7 @@ import ( func TestBitbar_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/bitcoinaverage/bitcoinaverage_test.go b/pkg/detectors/bitcoinaverage/bitcoinaverage_test.go index 75cd8b984..f649eb127 100644 --- a/pkg/detectors/bitcoinaverage/bitcoinaverage_test.go +++ b/pkg/detectors/bitcoinaverage/bitcoinaverage_test.go @@ -16,7 +16,7 @@ import ( func TestBitcoinAverage_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/bitfinex/bitfinex_test.go b/pkg/detectors/bitfinex/bitfinex_test.go index cc4f00bf1..bcea6b2ba 100644 --- a/pkg/detectors/bitfinex/bitfinex_test.go +++ b/pkg/detectors/bitfinex/bitfinex_test.go @@ -16,7 +16,7 @@ import ( func TestBitfinex_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken_test.go b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken_test.go index e6e72376d..0255117d7 100644 --- a/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken_test.go +++ b/pkg/detectors/bitlyaccesstoken/bitlyaccesstoken_test.go @@ -16,7 +16,7 @@ import ( func TestBitLyAccessToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/bitmex/bitmex_test.go b/pkg/detectors/bitmex/bitmex_test.go index dd3fa3f97..95b91559c 100644 --- a/pkg/detectors/bitmex/bitmex_test.go +++ b/pkg/detectors/bitmex/bitmex_test.go @@ -16,7 +16,7 @@ import ( func TestBitmex_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/blablabus/blablabus_test.go b/pkg/detectors/blablabus/blablabus_test.go index ff1b7ee3c..e20e5708d 100644 --- a/pkg/detectors/blablabus/blablabus_test.go +++ b/pkg/detectors/blablabus/blablabus_test.go @@ -16,7 +16,7 @@ import ( func TestBlablabus_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/blazemeter/blazemeter_test.go b/pkg/detectors/blazemeter/blazemeter_test.go index 3d527695a..8e39effc6 100644 --- a/pkg/detectors/blazemeter/blazemeter_test.go +++ b/pkg/detectors/blazemeter/blazemeter_test.go @@ -16,7 +16,7 @@ import ( func TestBlazemeter_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/blitapp/blitapp_test.go b/pkg/detectors/blitapp/blitapp_test.go index c4a488cc2..2550859f8 100644 --- a/pkg/detectors/blitapp/blitapp_test.go +++ b/pkg/detectors/blitapp/blitapp_test.go @@ -16,7 +16,7 @@ import ( func TestBlitApp_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/blogger/blogger_test.go b/pkg/detectors/blogger/blogger_test.go index 7807e49a3..7c4db95f7 100644 --- a/pkg/detectors/blogger/blogger_test.go +++ b/pkg/detectors/blogger/blogger_test.go @@ -16,7 +16,7 @@ import ( func TestBlogger_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/bombbomb/bombbomb_test.go b/pkg/detectors/bombbomb/bombbomb_test.go index 0ff68b548..02f932516 100644 --- a/pkg/detectors/bombbomb/bombbomb_test.go +++ b/pkg/detectors/bombbomb/bombbomb_test.go @@ -16,7 +16,7 @@ import ( func TestBombBomb_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/brandfetch/brandfetch_test.go b/pkg/detectors/brandfetch/brandfetch_test.go index 2b58f5a46..79d64bba2 100644 --- a/pkg/detectors/brandfetch/brandfetch_test.go +++ b/pkg/detectors/brandfetch/brandfetch_test.go @@ -16,7 +16,7 @@ import ( func TestBrandfetch_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/browshot/browshot_test.go b/pkg/detectors/browshot/browshot_test.go index a051101e4..864ca27da 100644 --- a/pkg/detectors/browshot/browshot_test.go +++ b/pkg/detectors/browshot/browshot_test.go @@ -16,7 +16,7 @@ import ( func TestBrowshot_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/buddyns/buddyns_test.go b/pkg/detectors/buddyns/buddyns_test.go index 73bf5713b..cb7824a5d 100644 --- a/pkg/detectors/buddyns/buddyns_test.go +++ b/pkg/detectors/buddyns/buddyns_test.go @@ -16,7 +16,7 @@ import ( func TestBuddyns_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/bugherd/bugherd_test.go b/pkg/detectors/bugherd/bugherd_test.go index 3e886dde5..9bf4fb90b 100644 --- a/pkg/detectors/bugherd/bugherd_test.go +++ b/pkg/detectors/bugherd/bugherd_test.go @@ -16,7 +16,7 @@ import ( func TestBugherd_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/bugsnag/bugsnag_test.go b/pkg/detectors/bugsnag/bugsnag_test.go index 5d605373d..4c071206c 100644 --- a/pkg/detectors/bugsnag/bugsnag_test.go +++ b/pkg/detectors/bugsnag/bugsnag_test.go @@ -16,7 +16,7 @@ import ( func TestBugsnag_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/buildkite/buildkite_test.go b/pkg/detectors/buildkite/buildkite_test.go index 3d6242ea9..e9d55006c 100644 --- a/pkg/detectors/buildkite/buildkite_test.go +++ b/pkg/detectors/buildkite/buildkite_test.go @@ -16,7 +16,7 @@ import ( func TestBuildkite_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/bulbul/bulbul_test.go b/pkg/detectors/bulbul/bulbul_test.go index 741cb4bdb..8713a62a7 100644 --- a/pkg/detectors/bulbul/bulbul_test.go +++ b/pkg/detectors/bulbul/bulbul_test.go @@ -16,7 +16,7 @@ import ( func TestBulbul_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/buttercms/buttercms_test.go b/pkg/detectors/buttercms/buttercms_test.go index e533620f2..438a9dbbe 100644 --- a/pkg/detectors/buttercms/buttercms_test.go +++ b/pkg/detectors/buttercms/buttercms_test.go @@ -16,7 +16,7 @@ import ( func TestButterCMS_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/caflou/caflou_test.go b/pkg/detectors/caflou/caflou_test.go index 4bf450635..4907f7dc5 100644 --- a/pkg/detectors/caflou/caflou_test.go +++ b/pkg/detectors/caflou/caflou_test.go @@ -16,7 +16,7 @@ import ( func TestCaflou_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/calendarific/calendarific_test.go b/pkg/detectors/calendarific/calendarific_test.go index 1e251c7d8..0e9ef7fa8 100644 --- a/pkg/detectors/calendarific/calendarific_test.go +++ b/pkg/detectors/calendarific/calendarific_test.go @@ -16,7 +16,7 @@ import ( func TestCalendarific_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/calendlyapikey/calendlyapikey_test.go b/pkg/detectors/calendlyapikey/calendlyapikey_test.go index 331e8e04a..2b2e73d7f 100644 --- a/pkg/detectors/calendlyapikey/calendlyapikey_test.go +++ b/pkg/detectors/calendlyapikey/calendlyapikey_test.go @@ -16,7 +16,7 @@ import ( func TestCalendlyApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/calorieninja/calorieninja_test.go b/pkg/detectors/calorieninja/calorieninja_test.go index b0ee779c3..ccc8c89b1 100644 --- a/pkg/detectors/calorieninja/calorieninja_test.go +++ b/pkg/detectors/calorieninja/calorieninja_test.go @@ -16,7 +16,7 @@ import ( func TestCalorieninja_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/campayn/campayn_test.go b/pkg/detectors/campayn/campayn_test.go index 4b8d8b0a0..834294211 100644 --- a/pkg/detectors/campayn/campayn_test.go +++ b/pkg/detectors/campayn/campayn_test.go @@ -16,7 +16,7 @@ import ( func TestCampayn_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cannyio/cannyio_test.go b/pkg/detectors/cannyio/cannyio_test.go index d27586806..4a01c841a 100644 --- a/pkg/detectors/cannyio/cannyio_test.go +++ b/pkg/detectors/cannyio/cannyio_test.go @@ -16,7 +16,7 @@ import ( func TestCannyIo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/capsulecrm/capsulecrm_test.go b/pkg/detectors/capsulecrm/capsulecrm_test.go index 25adc3745..5aa01aa6c 100644 --- a/pkg/detectors/capsulecrm/capsulecrm_test.go +++ b/pkg/detectors/capsulecrm/capsulecrm_test.go @@ -16,7 +16,7 @@ import ( func TestCapsuleCRM_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/carboninterface/carboninterface_test.go b/pkg/detectors/carboninterface/carboninterface_test.go index 824d88953..5b9b12fdb 100644 --- a/pkg/detectors/carboninterface/carboninterface_test.go +++ b/pkg/detectors/carboninterface/carboninterface_test.go @@ -16,7 +16,7 @@ import ( func TestCarbonInterface_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cashboard/cashboard_test.go b/pkg/detectors/cashboard/cashboard_test.go index 83315542c..f2ba3025a 100644 --- a/pkg/detectors/cashboard/cashboard_test.go +++ b/pkg/detectors/cashboard/cashboard_test.go @@ -16,7 +16,7 @@ import ( func TestCashboard_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/censys/censys_test.go b/pkg/detectors/censys/censys_test.go index 19e1995be..d1d88c60a 100644 --- a/pkg/detectors/censys/censys_test.go +++ b/pkg/detectors/censys/censys_test.go @@ -16,7 +16,7 @@ import ( func TestCensys_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/centralstationcrm/centralstationcrm_test.go b/pkg/detectors/centralstationcrm/centralstationcrm_test.go index 2e79402e1..b06497dd3 100644 --- a/pkg/detectors/centralstationcrm/centralstationcrm_test.go +++ b/pkg/detectors/centralstationcrm/centralstationcrm_test.go @@ -16,7 +16,7 @@ import ( func TestCentralStationCRM_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/chatbot/chatbot_test.go b/pkg/detectors/chatbot/chatbot_test.go index 9ff1675e2..9d8128007 100644 --- a/pkg/detectors/chatbot/chatbot_test.go +++ b/pkg/detectors/chatbot/chatbot_test.go @@ -16,7 +16,7 @@ import ( func TestChatbot_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/checio/checio_test.go b/pkg/detectors/checio/checio_test.go index 76093e0e4..d7bf53403 100644 --- a/pkg/detectors/checio/checio_test.go +++ b/pkg/detectors/checio/checio_test.go @@ -16,7 +16,7 @@ import ( func TestChecIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/checklyhq/checklyhq_test.go b/pkg/detectors/checklyhq/checklyhq_test.go index 901cbf9e2..64d659011 100644 --- a/pkg/detectors/checklyhq/checklyhq_test.go +++ b/pkg/detectors/checklyhq/checklyhq_test.go @@ -16,7 +16,7 @@ import ( func TestChecklyHQ_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/checkout/checkout_test.go b/pkg/detectors/checkout/checkout_test.go index 72358b776..6b81efa34 100644 --- a/pkg/detectors/checkout/checkout_test.go +++ b/pkg/detectors/checkout/checkout_test.go @@ -16,7 +16,7 @@ import ( func TestCheckout_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cicero/cicero_test.go b/pkg/detectors/cicero/cicero_test.go index 0a3bbd609..211482f57 100644 --- a/pkg/detectors/cicero/cicero_test.go +++ b/pkg/detectors/cicero/cicero_test.go @@ -16,7 +16,7 @@ import ( func TestCicero_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/circleci/circleci_test.go b/pkg/detectors/circleci/circleci_test.go index 19b6c37cb..318541b04 100644 --- a/pkg/detectors/circleci/circleci_test.go +++ b/pkg/detectors/circleci/circleci_test.go @@ -16,7 +16,7 @@ import ( func TestCircleCI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/clarifai/clarifai_test.go b/pkg/detectors/clarifai/clarifai_test.go index e55b5c7f3..5fde7b34a 100644 --- a/pkg/detectors/clarifai/clarifai_test.go +++ b/pkg/detectors/clarifai/clarifai_test.go @@ -16,7 +16,7 @@ import ( func TestClarifai_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/clearbit/clearbit_test.go b/pkg/detectors/clearbit/clearbit_test.go index abed9608e..15010185e 100644 --- a/pkg/detectors/clearbit/clearbit_test.go +++ b/pkg/detectors/clearbit/clearbit_test.go @@ -16,7 +16,7 @@ import ( func TestClearbit_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/clickhelp/clickhelp_test.go b/pkg/detectors/clickhelp/clickhelp_test.go index 41109e9cc..ec79a058a 100644 --- a/pkg/detectors/clickhelp/clickhelp_test.go +++ b/pkg/detectors/clickhelp/clickhelp_test.go @@ -16,7 +16,7 @@ import ( func TestClickhelp_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/clicksendsms/clicksendsms_test.go b/pkg/detectors/clicksendsms/clicksendsms_test.go index 9f70ed59c..f852b6408 100644 --- a/pkg/detectors/clicksendsms/clicksendsms_test.go +++ b/pkg/detectors/clicksendsms/clicksendsms_test.go @@ -16,7 +16,7 @@ import ( func TestClickSendsms_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken_test.go b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken_test.go index 16861de50..d77bc6ec6 100644 --- a/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken_test.go +++ b/pkg/detectors/clickuppersonaltoken/clickuppersonaltoken_test.go @@ -16,7 +16,7 @@ import ( func TestClickupPersonalToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/clinchpad/clinchpad_test.go b/pkg/detectors/clinchpad/clinchpad_test.go index 3c94a288e..ce5335df5 100644 --- a/pkg/detectors/clinchpad/clinchpad_test.go +++ b/pkg/detectors/clinchpad/clinchpad_test.go @@ -16,7 +16,7 @@ import ( func TestClinchpad_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/clockify/clockify_test.go b/pkg/detectors/clockify/clockify_test.go index ce8d635b6..82c8f060f 100644 --- a/pkg/detectors/clockify/clockify_test.go +++ b/pkg/detectors/clockify/clockify_test.go @@ -16,7 +16,7 @@ import ( func TestClockify_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/clockworksms/clockworksms_test.go b/pkg/detectors/clockworksms/clockworksms_test.go index 9d143b8ef..d58c975f9 100644 --- a/pkg/detectors/clockworksms/clockworksms_test.go +++ b/pkg/detectors/clockworksms/clockworksms_test.go @@ -16,7 +16,7 @@ import ( func TestClockworksms_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/closecrm/close_test.go b/pkg/detectors/closecrm/close_test.go index 76d3005d6..00fc109c2 100644 --- a/pkg/detectors/closecrm/close_test.go +++ b/pkg/detectors/closecrm/close_test.go @@ -16,7 +16,7 @@ import ( func TestClose_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cloudelements/cloudelements_test.go b/pkg/detectors/cloudelements/cloudelements_test.go index 8d2d9df0a..788cfd0af 100644 --- a/pkg/detectors/cloudelements/cloudelements_test.go +++ b/pkg/detectors/cloudelements/cloudelements_test.go @@ -16,7 +16,7 @@ import ( func TestCloudElements_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cloudflareapitoken/cloudflareapitoken_test.go b/pkg/detectors/cloudflareapitoken/cloudflareapitoken_test.go index 86386dc2b..4a9259982 100644 --- a/pkg/detectors/cloudflareapitoken/cloudflareapitoken_test.go +++ b/pkg/detectors/cloudflareapitoken/cloudflareapitoken_test.go @@ -16,7 +16,7 @@ import ( func TestCloudflareApiToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cloudflarecakey/cloudflarecakey_test.go b/pkg/detectors/cloudflarecakey/cloudflarecakey_test.go index 8d91c0b7c..502951c16 100644 --- a/pkg/detectors/cloudflarecakey/cloudflarecakey_test.go +++ b/pkg/detectors/cloudflarecakey/cloudflarecakey_test.go @@ -16,7 +16,7 @@ import ( func TestCloudflareCaKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey_test.go b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey_test.go index ea43d6557..7a511fb27 100644 --- a/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey_test.go +++ b/pkg/detectors/cloudflareglobalapikey/cloudflareglobalapikey_test.go @@ -16,7 +16,7 @@ import ( func TestCloudflareGlobalApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cloudmersive/cloudmersive_test.go b/pkg/detectors/cloudmersive/cloudmersive_test.go index cae6f3a68..9c6051418 100644 --- a/pkg/detectors/cloudmersive/cloudmersive_test.go +++ b/pkg/detectors/cloudmersive/cloudmersive_test.go @@ -16,7 +16,7 @@ import ( func TestCloudmersive_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cloudplan/cloudplan_test.go b/pkg/detectors/cloudplan/cloudplan_test.go index 036020184..7676c121d 100644 --- a/pkg/detectors/cloudplan/cloudplan_test.go +++ b/pkg/detectors/cloudplan/cloudplan_test.go @@ -16,7 +16,7 @@ import ( func TestCloudplan_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cloverly/cloverly_test.go b/pkg/detectors/cloverly/cloverly_test.go index f237e024f..0004907c4 100644 --- a/pkg/detectors/cloverly/cloverly_test.go +++ b/pkg/detectors/cloverly/cloverly_test.go @@ -16,7 +16,7 @@ import ( func TestCloverly_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/clustdoc/clustdoc_test.go b/pkg/detectors/clustdoc/clustdoc_test.go index 69488a2e6..3bab2ec44 100644 --- a/pkg/detectors/clustdoc/clustdoc_test.go +++ b/pkg/detectors/clustdoc/clustdoc_test.go @@ -16,7 +16,7 @@ import ( func TestClustDoc_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/codacy/codacy_test.go b/pkg/detectors/codacy/codacy_test.go index c53243abd..ad59e5c6e 100644 --- a/pkg/detectors/codacy/codacy_test.go +++ b/pkg/detectors/codacy/codacy_test.go @@ -16,7 +16,7 @@ import ( func TestCodacy_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/coinapi/coinapi_test.go b/pkg/detectors/coinapi/coinapi_test.go index 91d7a1684..daeef625b 100644 --- a/pkg/detectors/coinapi/coinapi_test.go +++ b/pkg/detectors/coinapi/coinapi_test.go @@ -16,7 +16,7 @@ import ( func TestCoinApi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/coinbase/coinbase_test.go b/pkg/detectors/coinbase/coinbase_test.go index d37c224cc..0dfcdc310 100644 --- a/pkg/detectors/coinbase/coinbase_test.go +++ b/pkg/detectors/coinbase/coinbase_test.go @@ -16,7 +16,7 @@ package coinbase // func TestCoinbase_FromChunk(t *testing.T) { // ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) // defer cancel() -// testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") +// testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") // if err != nil { // t.Fatalf("could not get test secrets from GCP: %s", err) // } diff --git a/pkg/detectors/coinlayer/coinlayer_test.go b/pkg/detectors/coinlayer/coinlayer_test.go index 29e2dec6c..c47149dfe 100644 --- a/pkg/detectors/coinlayer/coinlayer_test.go +++ b/pkg/detectors/coinlayer/coinlayer_test.go @@ -16,7 +16,7 @@ import ( func TestCoinlayer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/coinlib/coinlib_test.go b/pkg/detectors/coinlib/coinlib_test.go index 041974205..2a2515836 100644 --- a/pkg/detectors/coinlib/coinlib_test.go +++ b/pkg/detectors/coinlib/coinlib_test.go @@ -16,7 +16,7 @@ import ( func TestCoinlib_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/commercejs/commercejs_test.go b/pkg/detectors/commercejs/commercejs_test.go index c58f84a4e..41164334a 100644 --- a/pkg/detectors/commercejs/commercejs_test.go +++ b/pkg/detectors/commercejs/commercejs_test.go @@ -16,7 +16,7 @@ import ( func TestCommerceJS_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/commodities/commodities_test.go b/pkg/detectors/commodities/commodities_test.go index 659bff106..3e4a16f45 100644 --- a/pkg/detectors/commodities/commodities_test.go +++ b/pkg/detectors/commodities/commodities_test.go @@ -16,7 +16,7 @@ import ( func TestCommodities_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/companyhub/companyhub_test.go b/pkg/detectors/companyhub/companyhub_test.go index 508b1768a..cd8546295 100644 --- a/pkg/detectors/companyhub/companyhub_test.go +++ b/pkg/detectors/companyhub/companyhub_test.go @@ -16,7 +16,7 @@ import ( func TestCompanyHub_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/confluent/confluent_test.go b/pkg/detectors/confluent/confluent_test.go index 34c26c919..67f85bc84 100644 --- a/pkg/detectors/confluent/confluent_test.go +++ b/pkg/detectors/confluent/confluent_test.go @@ -16,7 +16,7 @@ import ( func TestConfluent_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken_test.go b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken_test.go index fc80f82cd..5932bb641 100644 --- a/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken_test.go +++ b/pkg/detectors/contentfulpersonalaccesstoken/contentfulpersonalaccesstoken_test.go @@ -16,7 +16,7 @@ import ( func TestContentfulPersonalAccessToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/convertkit/convertkit_test.go b/pkg/detectors/convertkit/convertkit_test.go index 54c90f0d0..ae9125170 100644 --- a/pkg/detectors/convertkit/convertkit_test.go +++ b/pkg/detectors/convertkit/convertkit_test.go @@ -16,7 +16,7 @@ import ( func TestConvertkit_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/copper/copper_test.go b/pkg/detectors/copper/copper_test.go index 6d6eacb7d..d739e4443 100644 --- a/pkg/detectors/copper/copper_test.go +++ b/pkg/detectors/copper/copper_test.go @@ -16,7 +16,7 @@ import ( func TestCopper_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/countrylayer/countrylayer_test.go b/pkg/detectors/countrylayer/countrylayer_test.go index 962e98d3b..65f3ef37f 100644 --- a/pkg/detectors/countrylayer/countrylayer_test.go +++ b/pkg/detectors/countrylayer/countrylayer_test.go @@ -16,7 +16,7 @@ import ( func TestCountryLayer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/courier/courier_test.go b/pkg/detectors/courier/courier_test.go index 110fceb2b..d4b4f2b79 100644 --- a/pkg/detectors/courier/courier_test.go +++ b/pkg/detectors/courier/courier_test.go @@ -16,7 +16,7 @@ import ( func TestCourier_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/coveralls/coveralls_test.go b/pkg/detectors/coveralls/coveralls_test.go index 5191f85c9..f3d4714cc 100644 --- a/pkg/detectors/coveralls/coveralls_test.go +++ b/pkg/detectors/coveralls/coveralls_test.go @@ -16,7 +16,7 @@ import ( func TestCoveralls_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/crowdin/crowdin_test.go b/pkg/detectors/crowdin/crowdin_test.go index 5a6b23826..5f7640c34 100644 --- a/pkg/detectors/crowdin/crowdin_test.go +++ b/pkg/detectors/crowdin/crowdin_test.go @@ -16,7 +16,7 @@ import ( func TestCrowdin_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/cryptocompare/cryptocompare_test.go b/pkg/detectors/cryptocompare/cryptocompare_test.go index 9bd41d56a..e4ce05098 100644 --- a/pkg/detectors/cryptocompare/cryptocompare_test.go +++ b/pkg/detectors/cryptocompare/cryptocompare_test.go @@ -16,7 +16,7 @@ import ( func TestCryptoCompare_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/currencycloud/currencycloud_test.go b/pkg/detectors/currencycloud/currencycloud_test.go index fa40834b4..9054d0433 100644 --- a/pkg/detectors/currencycloud/currencycloud_test.go +++ b/pkg/detectors/currencycloud/currencycloud_test.go @@ -16,7 +16,7 @@ import ( func TestCurrencycloud_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/currencyfreaks/currencyfreaks_test.go b/pkg/detectors/currencyfreaks/currencyfreaks_test.go index a47d83881..027b62261 100644 --- a/pkg/detectors/currencyfreaks/currencyfreaks_test.go +++ b/pkg/detectors/currencyfreaks/currencyfreaks_test.go @@ -16,7 +16,7 @@ import ( func TestCurrencyfreaks_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/currencylayer/currencylayer_test.go b/pkg/detectors/currencylayer/currencylayer_test.go index fa16673e2..ca20b3a79 100644 --- a/pkg/detectors/currencylayer/currencylayer_test.go +++ b/pkg/detectors/currencylayer/currencylayer_test.go @@ -16,7 +16,7 @@ import ( func TestCurrencylayer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/currencyscoop/currencyscoop_test.go b/pkg/detectors/currencyscoop/currencyscoop_test.go index 494430d0d..296b8fd6c 100644 --- a/pkg/detectors/currencyscoop/currencyscoop_test.go +++ b/pkg/detectors/currencyscoop/currencyscoop_test.go @@ -16,7 +16,7 @@ import ( func TestCurrencyscoop_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/currentsapi/currentsapi_test.go b/pkg/detectors/currentsapi/currentsapi_test.go index 0b15dd73a..dcabcfd04 100644 --- a/pkg/detectors/currentsapi/currentsapi_test.go +++ b/pkg/detectors/currentsapi/currentsapi_test.go @@ -16,7 +16,7 @@ import ( func TestCurrentsAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/customerguru/customerguru_test.go b/pkg/detectors/customerguru/customerguru_test.go index cd4b8761e..e540575bf 100644 --- a/pkg/detectors/customerguru/customerguru_test.go +++ b/pkg/detectors/customerguru/customerguru_test.go @@ -16,7 +16,7 @@ import ( func TestCustomerGuru_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/customerio/customerio_test.go b/pkg/detectors/customerio/customerio_test.go index 4e90856b1..27947ed76 100644 --- a/pkg/detectors/customerio/customerio_test.go +++ b/pkg/detectors/customerio/customerio_test.go @@ -16,7 +16,7 @@ import ( func TestCustomerIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/d7network/d7network_test.go b/pkg/detectors/d7network/d7network_test.go index 5dde6e81b..e9745099f 100644 --- a/pkg/detectors/d7network/d7network_test.go +++ b/pkg/detectors/d7network/d7network_test.go @@ -16,7 +16,7 @@ import ( func TestD7Network_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dailyco/dailyco_test.go b/pkg/detectors/dailyco/dailyco_test.go index a2bda465c..b2d0984d6 100644 --- a/pkg/detectors/dailyco/dailyco_test.go +++ b/pkg/detectors/dailyco/dailyco_test.go @@ -16,7 +16,7 @@ import ( func TestDailyCO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dandelion/dandelion_test.go b/pkg/detectors/dandelion/dandelion_test.go index 5ed9870dc..5732f00af 100644 --- a/pkg/detectors/dandelion/dandelion_test.go +++ b/pkg/detectors/dandelion/dandelion_test.go @@ -16,7 +16,7 @@ import ( func TestDandelion_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/datadogtoken/datadogtoken_test.go b/pkg/detectors/datadogtoken/datadogtoken_test.go index fa5b55a58..827fa3222 100644 --- a/pkg/detectors/datadogtoken/datadogtoken_test.go +++ b/pkg/detectors/datadogtoken/datadogtoken_test.go @@ -16,7 +16,7 @@ import ( func TestDatadogToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/datafire/datafire_test.go b/pkg/detectors/datafire/datafire_test.go index a1463d567..dea252ed1 100644 --- a/pkg/detectors/datafire/datafire_test.go +++ b/pkg/detectors/datafire/datafire_test.go @@ -16,7 +16,7 @@ import ( func TestDataFire_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/datagov/datagov_test.go b/pkg/detectors/datagov/datagov_test.go index c4850ce67..982916094 100644 --- a/pkg/detectors/datagov/datagov_test.go +++ b/pkg/detectors/datagov/datagov_test.go @@ -16,7 +16,7 @@ import ( func TestDataGov_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/debounce/debounce_test.go b/pkg/detectors/debounce/debounce_test.go index a70500078..d2b955a37 100644 --- a/pkg/detectors/debounce/debounce_test.go +++ b/pkg/detectors/debounce/debounce_test.go @@ -16,7 +16,7 @@ import ( func TestDebounce_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/deepai/deepai_test.go b/pkg/detectors/deepai/deepai_test.go index 4ed1b3250..2c9c387b5 100644 --- a/pkg/detectors/deepai/deepai_test.go +++ b/pkg/detectors/deepai/deepai_test.go @@ -16,7 +16,7 @@ import ( func TestDeepAI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/deepgram/deepgram_test.go b/pkg/detectors/deepgram/deepgram_test.go index 848ab764d..ea4d93da0 100644 --- a/pkg/detectors/deepgram/deepgram_test.go +++ b/pkg/detectors/deepgram/deepgram_test.go @@ -16,7 +16,7 @@ import ( func TestDeepgram_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/delighted/delighted_test.go b/pkg/detectors/delighted/delighted_test.go index 5c0e88cac..fd1d1bc8b 100644 --- a/pkg/detectors/delighted/delighted_test.go +++ b/pkg/detectors/delighted/delighted_test.go @@ -16,7 +16,7 @@ import ( func TestDelighted_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/deputy/deputy_test.go b/pkg/detectors/deputy/deputy_test.go index 2cd29edb1..17d11e657 100644 --- a/pkg/detectors/deputy/deputy_test.go +++ b/pkg/detectors/deputy/deputy_test.go @@ -16,7 +16,7 @@ import ( func TestDeputy_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/detectlanguage/detectlanguage_test.go b/pkg/detectors/detectlanguage/detectlanguage_test.go index 958734136..873fa57de 100644 --- a/pkg/detectors/detectlanguage/detectlanguage_test.go +++ b/pkg/detectors/detectlanguage/detectlanguage_test.go @@ -16,7 +16,7 @@ import ( func TestDetectLanguage_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dfuse/dfuse_test.go b/pkg/detectors/dfuse/dfuse_test.go index b1ed5c949..b5d129bf6 100644 --- a/pkg/detectors/dfuse/dfuse_test.go +++ b/pkg/detectors/dfuse/dfuse_test.go @@ -16,7 +16,7 @@ import ( func TestDfuse_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/digitaloceantoken/digitaloceantoken_test.go b/pkg/detectors/digitaloceantoken/digitaloceantoken_test.go index 1e26ba4df..0267a8129 100644 --- a/pkg/detectors/digitaloceantoken/digitaloceantoken_test.go +++ b/pkg/detectors/digitaloceantoken/digitaloceantoken_test.go @@ -16,7 +16,7 @@ import ( func TestDigitalOceanToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/discordbottoken/discordbottoken_test.go b/pkg/detectors/discordbottoken/discordbottoken_test.go index e58b29b8a..7c98ded0a 100644 --- a/pkg/detectors/discordbottoken/discordbottoken_test.go +++ b/pkg/detectors/discordbottoken/discordbottoken_test.go @@ -16,7 +16,7 @@ import ( func TestDiscordBotToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/discordwebhook/discordwebhook_test.go b/pkg/detectors/discordwebhook/discordwebhook_test.go index 896d675d8..96d5d858c 100644 --- a/pkg/detectors/discordwebhook/discordwebhook_test.go +++ b/pkg/detectors/discordwebhook/discordwebhook_test.go @@ -16,7 +16,7 @@ import ( func TestDiscordWebhook_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ditto/ditto_test.go b/pkg/detectors/ditto/ditto_test.go index f63f8d72f..565cedda9 100644 --- a/pkg/detectors/ditto/ditto_test.go +++ b/pkg/detectors/ditto/ditto_test.go @@ -16,7 +16,7 @@ import ( func TestDitto_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dnscheck/dnscheck_test.go b/pkg/detectors/dnscheck/dnscheck_test.go index 87343bf99..f04e747ba 100644 --- a/pkg/detectors/dnscheck/dnscheck_test.go +++ b/pkg/detectors/dnscheck/dnscheck_test.go @@ -16,7 +16,7 @@ import ( func TestDnscheck_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/documo/documo_test.go b/pkg/detectors/documo/documo_test.go index f86ce717b..3e13a0c07 100644 --- a/pkg/detectors/documo/documo_test.go +++ b/pkg/detectors/documo/documo_test.go @@ -16,7 +16,7 @@ import ( func TestDocumo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/doppler/doppler_test.go b/pkg/detectors/doppler/doppler_test.go index 224a82732..ccfe96391 100644 --- a/pkg/detectors/doppler/doppler_test.go +++ b/pkg/detectors/doppler/doppler_test.go @@ -16,7 +16,7 @@ import ( func TestDoppler_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dotmailer/dotmailer_test.go b/pkg/detectors/dotmailer/dotmailer_test.go index 51260f839..92d8cb003 100644 --- a/pkg/detectors/dotmailer/dotmailer_test.go +++ b/pkg/detectors/dotmailer/dotmailer_test.go @@ -16,7 +16,7 @@ import ( func TestDotmailer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dovico/dovico_test.go b/pkg/detectors/dovico/dovico_test.go index 3c518511b..6a6dee66e 100644 --- a/pkg/detectors/dovico/dovico_test.go +++ b/pkg/detectors/dovico/dovico_test.go @@ -16,7 +16,7 @@ import ( func TestDovico_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dronahq/dronahq_test.go b/pkg/detectors/dronahq/dronahq_test.go index 73b3b03d5..e33f0f064 100644 --- a/pkg/detectors/dronahq/dronahq_test.go +++ b/pkg/detectors/dronahq/dronahq_test.go @@ -16,7 +16,7 @@ import ( func TestDronaHQ_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/droneci/droneci_test.go b/pkg/detectors/droneci/droneci_test.go index faa2b7bf4..6e5a9cda4 100644 --- a/pkg/detectors/droneci/droneci_test.go +++ b/pkg/detectors/droneci/droneci_test.go @@ -16,7 +16,7 @@ import ( func TestDroneCI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dropbox/dropbox_test.go b/pkg/detectors/dropbox/dropbox_test.go index dafcff22d..4397b0627 100644 --- a/pkg/detectors/dropbox/dropbox_test.go +++ b/pkg/detectors/dropbox/dropbox_test.go @@ -15,7 +15,7 @@ import ( func TestDropbox_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dwolla/dwolla_test.go b/pkg/detectors/dwolla/dwolla_test.go index 8ee678093..adec8a192 100644 --- a/pkg/detectors/dwolla/dwolla_test.go +++ b/pkg/detectors/dwolla/dwolla_test.go @@ -16,7 +16,7 @@ import ( func TestDwolla_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dynalist/dynalist_test.go b/pkg/detectors/dynalist/dynalist_test.go index aa0178bf6..4391b99fe 100644 --- a/pkg/detectors/dynalist/dynalist_test.go +++ b/pkg/detectors/dynalist/dynalist_test.go @@ -16,7 +16,7 @@ import ( func TestDynalist_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/dyspatch/dyspatch_test.go b/pkg/detectors/dyspatch/dyspatch_test.go index f2789a5e2..5b4e8aba5 100644 --- a/pkg/detectors/dyspatch/dyspatch_test.go +++ b/pkg/detectors/dyspatch/dyspatch_test.go @@ -16,7 +16,7 @@ import ( func TestDyspatch_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/eagleeyenetworks/eagleeyenetworks_test.go b/pkg/detectors/eagleeyenetworks/eagleeyenetworks_test.go index 7fe57ecf2..e13645c78 100644 --- a/pkg/detectors/eagleeyenetworks/eagleeyenetworks_test.go +++ b/pkg/detectors/eagleeyenetworks/eagleeyenetworks_test.go @@ -16,7 +16,7 @@ import ( func TestEagleEyeNetworks_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/easyinsight/easyinsight_test.go b/pkg/detectors/easyinsight/easyinsight_test.go index 36134b813..ff35a66ba 100644 --- a/pkg/detectors/easyinsight/easyinsight_test.go +++ b/pkg/detectors/easyinsight/easyinsight_test.go @@ -16,7 +16,7 @@ import ( func TestEasyInsight_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/edamam/edamam_test.go b/pkg/detectors/edamam/edamam_test.go index ffbd4f292..1910eda43 100644 --- a/pkg/detectors/edamam/edamam_test.go +++ b/pkg/detectors/edamam/edamam_test.go @@ -16,7 +16,7 @@ import ( func TestEdamam_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/edenai/edenai_test.go b/pkg/detectors/edenai/edenai_test.go index 272c7108e..306a59801 100644 --- a/pkg/detectors/edenai/edenai_test.go +++ b/pkg/detectors/edenai/edenai_test.go @@ -16,7 +16,7 @@ import ( func TestEdenAI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/elasticemail/elasticemail_test.go b/pkg/detectors/elasticemail/elasticemail_test.go index 94a035e07..59e728816 100644 --- a/pkg/detectors/elasticemail/elasticemail_test.go +++ b/pkg/detectors/elasticemail/elasticemail_test.go @@ -16,7 +16,7 @@ import ( func TestElasticEmail_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/enigma/enigma_test.go b/pkg/detectors/enigma/enigma_test.go index c2cb6e374..e53814707 100644 --- a/pkg/detectors/enigma/enigma_test.go +++ b/pkg/detectors/enigma/enigma_test.go @@ -16,7 +16,7 @@ import ( func TestEnigma_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ethplorer/ethplorer_test.go b/pkg/detectors/ethplorer/ethplorer_test.go index df48b3725..be15bc63a 100644 --- a/pkg/detectors/ethplorer/ethplorer_test.go +++ b/pkg/detectors/ethplorer/ethplorer_test.go @@ -16,7 +16,7 @@ import ( func TestEthplorer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/etsyapikey/etsyapikey_test.go b/pkg/detectors/etsyapikey/etsyapikey_test.go index debbb8046..aaa6b598e 100644 --- a/pkg/detectors/etsyapikey/etsyapikey_test.go +++ b/pkg/detectors/etsyapikey/etsyapikey_test.go @@ -16,7 +16,7 @@ import ( func TestEtsyApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/everhour/everhour_test.go b/pkg/detectors/everhour/everhour_test.go index 871d35158..3f9146db8 100644 --- a/pkg/detectors/everhour/everhour_test.go +++ b/pkg/detectors/everhour/everhour_test.go @@ -16,7 +16,7 @@ import ( func TestEverhour_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/exchangerateapi/exchangerateapi_test.go b/pkg/detectors/exchangerateapi/exchangerateapi_test.go index a097ca2ee..0b3d07f72 100644 --- a/pkg/detectors/exchangerateapi/exchangerateapi_test.go +++ b/pkg/detectors/exchangerateapi/exchangerateapi_test.go @@ -16,7 +16,7 @@ import ( func TestExchangeRateAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/exchangeratesapi/exchangeratesapi_test.go b/pkg/detectors/exchangeratesapi/exchangeratesapi_test.go index 5dcc818cc..31c360557 100644 --- a/pkg/detectors/exchangeratesapi/exchangeratesapi_test.go +++ b/pkg/detectors/exchangeratesapi/exchangeratesapi_test.go @@ -16,7 +16,7 @@ import ( func TestExchangeRatesAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/facebookoauth/facebookoauth_test.go b/pkg/detectors/facebookoauth/facebookoauth_test.go index 921a51159..1eb04e278 100644 --- a/pkg/detectors/facebookoauth/facebookoauth_test.go +++ b/pkg/detectors/facebookoauth/facebookoauth_test.go @@ -16,7 +16,7 @@ import ( func TestFacebookOAuth_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/faceplusplus/faceplusplus_test.go b/pkg/detectors/faceplusplus/faceplusplus_test.go index 1f34b3f93..45d2021bc 100644 --- a/pkg/detectors/faceplusplus/faceplusplus_test.go +++ b/pkg/detectors/faceplusplus/faceplusplus_test.go @@ -16,7 +16,7 @@ import ( func TestFaceplusplus_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fakejson/fakejson_test.go b/pkg/detectors/fakejson/fakejson_test.go index b9b92e54c..f4a07fd08 100644 --- a/pkg/detectors/fakejson/fakejson_test.go +++ b/pkg/detectors/fakejson/fakejson_test.go @@ -16,7 +16,7 @@ import ( func TestFakeJSON_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fastforex/fastforex_test.go b/pkg/detectors/fastforex/fastforex_test.go index b7d20a815..d8f5b1d4b 100644 --- a/pkg/detectors/fastforex/fastforex_test.go +++ b/pkg/detectors/fastforex/fastforex_test.go @@ -16,7 +16,7 @@ import ( func TestFastForex_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken_test.go b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken_test.go index 3f7d1f7bc..1f9a89d25 100644 --- a/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken_test.go +++ b/pkg/detectors/fastlypersonaltoken/fastlypersonaltoken_test.go @@ -16,7 +16,7 @@ import ( func TestFastlyPersonalToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/feedier/feedier_test.go b/pkg/detectors/feedier/feedier_test.go index c266039fc..be04bc259 100644 --- a/pkg/detectors/feedier/feedier_test.go +++ b/pkg/detectors/feedier/feedier_test.go @@ -16,7 +16,7 @@ import ( func TestFeedier_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fetchrss/fetchrss_test.go b/pkg/detectors/fetchrss/fetchrss_test.go index bf89de580..5847dc5a5 100644 --- a/pkg/detectors/fetchrss/fetchrss_test.go +++ b/pkg/detectors/fetchrss/fetchrss_test.go @@ -16,7 +16,7 @@ import ( func TestFetchrss_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken_test.go b/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken_test.go index a4c60a59d..17d80f317 100644 --- a/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken_test.go +++ b/pkg/detectors/figmapersonalaccesstoken/figmapersonalaccesstoken_test.go @@ -16,7 +16,7 @@ import ( func TestFigmaPersonalAccessToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fileio/fileio_test.go b/pkg/detectors/fileio/fileio_test.go index 7516f177d..7192e56d1 100644 --- a/pkg/detectors/fileio/fileio_test.go +++ b/pkg/detectors/fileio/fileio_test.go @@ -16,7 +16,7 @@ import ( func TestFileIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/finage/finage_test.go b/pkg/detectors/finage/finage_test.go index 31a2a4a16..bb02b70f7 100644 --- a/pkg/detectors/finage/finage_test.go +++ b/pkg/detectors/finage/finage_test.go @@ -16,7 +16,7 @@ import ( func TestFinage_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/financialmodelingprep/financialmodelingprep_test.go b/pkg/detectors/financialmodelingprep/financialmodelingprep_test.go index 6bd187489..09592a9d2 100644 --- a/pkg/detectors/financialmodelingprep/financialmodelingprep_test.go +++ b/pkg/detectors/financialmodelingprep/financialmodelingprep_test.go @@ -16,7 +16,7 @@ import ( func TestFinancialModelingPrep_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/findl/findl_test.go b/pkg/detectors/findl/findl_test.go index aa9dfddd5..1f91ff1d9 100644 --- a/pkg/detectors/findl/findl_test.go +++ b/pkg/detectors/findl/findl_test.go @@ -16,7 +16,7 @@ import ( func TestFindl_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/finnhub/finnhub_test.go b/pkg/detectors/finnhub/finnhub_test.go index 0d8a71d00..3293cbc8b 100644 --- a/pkg/detectors/finnhub/finnhub_test.go +++ b/pkg/detectors/finnhub/finnhub_test.go @@ -16,7 +16,7 @@ import ( func TestFinnhub_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fixerio/fixerio_test.go b/pkg/detectors/fixerio/fixerio_test.go index f5ec5578c..8aee18c8f 100644 --- a/pkg/detectors/fixerio/fixerio_test.go +++ b/pkg/detectors/fixerio/fixerio_test.go @@ -16,7 +16,7 @@ import ( func TestFixerIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/flatio/flatio_test.go b/pkg/detectors/flatio/flatio_test.go index a1dda97f1..99936929c 100644 --- a/pkg/detectors/flatio/flatio_test.go +++ b/pkg/detectors/flatio/flatio_test.go @@ -16,7 +16,7 @@ import ( func TestFlatIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fleetbase/fleetbase_test.go b/pkg/detectors/fleetbase/fleetbase_test.go index 10f4adc78..e1cef9915 100644 --- a/pkg/detectors/fleetbase/fleetbase_test.go +++ b/pkg/detectors/fleetbase/fleetbase_test.go @@ -16,7 +16,7 @@ import ( func TestFleetbase_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/flickr/flickr_test.go b/pkg/detectors/flickr/flickr_test.go index d875367d6..a93c057d5 100644 --- a/pkg/detectors/flickr/flickr_test.go +++ b/pkg/detectors/flickr/flickr_test.go @@ -16,7 +16,7 @@ import ( func TestFlickr_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/flightapi/flightapi_test.go b/pkg/detectors/flightapi/flightapi_test.go index 9423f99b3..b8bb1183f 100644 --- a/pkg/detectors/flightapi/flightapi_test.go +++ b/pkg/detectors/flightapi/flightapi_test.go @@ -16,7 +16,7 @@ import ( func TestFlightApi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/float/float_test.go b/pkg/detectors/float/float_test.go index c902fe7be..e45eefdd8 100644 --- a/pkg/detectors/float/float_test.go +++ b/pkg/detectors/float/float_test.go @@ -16,7 +16,7 @@ import ( func TestFloat_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/flowflu/flowflu_test.go b/pkg/detectors/flowflu/flowflu_test.go index 61bd930bf..b524e2011 100644 --- a/pkg/detectors/flowflu/flowflu_test.go +++ b/pkg/detectors/flowflu/flowflu_test.go @@ -16,7 +16,7 @@ import ( func TestFlowFlu_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/flutterwave/flutterwave_test.go b/pkg/detectors/flutterwave/flutterwave_test.go index 39832026a..319dfcd88 100644 --- a/pkg/detectors/flutterwave/flutterwave_test.go +++ b/pkg/detectors/flutterwave/flutterwave_test.go @@ -16,7 +16,7 @@ import ( func TestFlutterwave_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fmfw/fmfw_test.go b/pkg/detectors/fmfw/fmfw_test.go index 30e63ed27..b14db22f9 100644 --- a/pkg/detectors/fmfw/fmfw_test.go +++ b/pkg/detectors/fmfw/fmfw_test.go @@ -16,7 +16,7 @@ import ( func TestFmfw_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/foursquare/foursquare_test.go b/pkg/detectors/foursquare/foursquare_test.go index 7333d13c2..c8fae9f07 100644 --- a/pkg/detectors/foursquare/foursquare_test.go +++ b/pkg/detectors/foursquare/foursquare_test.go @@ -16,7 +16,7 @@ import ( func TestFoursquare_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/frameio/frameio_test.go b/pkg/detectors/frameio/frameio_test.go index 76b0a45fb..da8d44929 100644 --- a/pkg/detectors/frameio/frameio_test.go +++ b/pkg/detectors/frameio/frameio_test.go @@ -16,7 +16,7 @@ import ( func TestFrameio_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/freshbooks/freshbooks_test.go b/pkg/detectors/freshbooks/freshbooks_test.go index 74ae64b78..53c41c5dc 100644 --- a/pkg/detectors/freshbooks/freshbooks_test.go +++ b/pkg/detectors/freshbooks/freshbooks_test.go @@ -16,7 +16,7 @@ import ( func TestFreshbooks_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/freshdesk/freshdesk_test.go b/pkg/detectors/freshdesk/freshdesk_test.go index 339a1ef15..d2029e534 100644 --- a/pkg/detectors/freshdesk/freshdesk_test.go +++ b/pkg/detectors/freshdesk/freshdesk_test.go @@ -16,7 +16,7 @@ import ( func TestFreshdesk_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/front/front_test.go b/pkg/detectors/front/front_test.go index bbdda80d6..d59a2614a 100644 --- a/pkg/detectors/front/front_test.go +++ b/pkg/detectors/front/front_test.go @@ -16,7 +16,7 @@ import ( func TestFront_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fulcrum/fulcrum_test.go b/pkg/detectors/fulcrum/fulcrum_test.go index 806987f32..096058ffa 100644 --- a/pkg/detectors/fulcrum/fulcrum_test.go +++ b/pkg/detectors/fulcrum/fulcrum_test.go @@ -16,7 +16,7 @@ import ( func TestFulcrum_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fullstory/fullstory_test.go b/pkg/detectors/fullstory/fullstory_test.go index 8a300136a..9e7bd91c0 100644 --- a/pkg/detectors/fullstory/fullstory_test.go +++ b/pkg/detectors/fullstory/fullstory_test.go @@ -16,7 +16,7 @@ import ( func TestFullstory_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fusebill/fusebill_test.go b/pkg/detectors/fusebill/fusebill_test.go index e2a8d3db6..d1312f3a3 100644 --- a/pkg/detectors/fusebill/fusebill_test.go +++ b/pkg/detectors/fusebill/fusebill_test.go @@ -16,7 +16,7 @@ import ( func TestFusebill_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/fxmarket/fxmarket_test.go b/pkg/detectors/fxmarket/fxmarket_test.go index 033bef66f..0cf7b98a6 100644 --- a/pkg/detectors/fxmarket/fxmarket_test.go +++ b/pkg/detectors/fxmarket/fxmarket_test.go @@ -16,7 +16,7 @@ import ( func TestFxmarket_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/gcp/gcp_test.go b/pkg/detectors/gcp/gcp_test.go index ba341cdfe..4fefb6cda 100644 --- a/pkg/detectors/gcp/gcp_test.go +++ b/pkg/detectors/gcp/gcp_test.go @@ -15,7 +15,7 @@ import ( func TestGCP_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/geckoboard/geckoboard_test.go b/pkg/detectors/geckoboard/geckoboard_test.go index c552a828c..6e40dd8d5 100644 --- a/pkg/detectors/geckoboard/geckoboard_test.go +++ b/pkg/detectors/geckoboard/geckoboard_test.go @@ -16,7 +16,7 @@ import ( func TestGeckoboard_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/gengo/gengo_test.go b/pkg/detectors/gengo/gengo_test.go index 56ce74f42..64073ddb1 100644 --- a/pkg/detectors/gengo/gengo_test.go +++ b/pkg/detectors/gengo/gengo_test.go @@ -16,7 +16,7 @@ import ( func TestGengo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/geoapify/geoapify_test.go b/pkg/detectors/geoapify/geoapify_test.go index 89c1d7110..675f1392f 100644 --- a/pkg/detectors/geoapify/geoapify_test.go +++ b/pkg/detectors/geoapify/geoapify_test.go @@ -16,7 +16,7 @@ import ( func TestGeoapify_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/geocode/geocode_test.go b/pkg/detectors/geocode/geocode_test.go index bca500529..98e04c8f7 100644 --- a/pkg/detectors/geocode/geocode_test.go +++ b/pkg/detectors/geocode/geocode_test.go @@ -16,7 +16,7 @@ import ( func TestGeocode_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/geocodify/geocodify_test.go b/pkg/detectors/geocodify/geocodify_test.go index 3184d7d63..b062fc0f5 100644 --- a/pkg/detectors/geocodify/geocodify_test.go +++ b/pkg/detectors/geocodify/geocodify_test.go @@ -16,7 +16,7 @@ import ( func TestGeocodify_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/geocodio/geocodio_test.go b/pkg/detectors/geocodio/geocodio_test.go index f9328b1c3..bf9c4c922 100644 --- a/pkg/detectors/geocodio/geocodio_test.go +++ b/pkg/detectors/geocodio/geocodio_test.go @@ -16,7 +16,7 @@ import ( func TestGeocodio_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/geoipifi/geoipifi_test.go b/pkg/detectors/geoipifi/geoipifi_test.go index 4db7c7603..4e0d4295d 100644 --- a/pkg/detectors/geoipifi/geoipifi_test.go +++ b/pkg/detectors/geoipifi/geoipifi_test.go @@ -16,7 +16,7 @@ import ( func TestGeoIpifi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/getemail/getemail_test.go b/pkg/detectors/getemail/getemail_test.go index ad624025a..60c842d81 100644 --- a/pkg/detectors/getemail/getemail_test.go +++ b/pkg/detectors/getemail/getemail_test.go @@ -16,7 +16,7 @@ import ( func TestGetEmail_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/getemails/getemails_test.go b/pkg/detectors/getemails/getemails_test.go index d8e8bb155..93ea53fb0 100644 --- a/pkg/detectors/getemails/getemails_test.go +++ b/pkg/detectors/getemails/getemails_test.go @@ -16,7 +16,7 @@ import ( func TestGetEmails_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/getgeoapi/getgeoapi_test.go b/pkg/detectors/getgeoapi/getgeoapi_test.go index ab8c08490..3bfed7956 100644 --- a/pkg/detectors/getgeoapi/getgeoapi_test.go +++ b/pkg/detectors/getgeoapi/getgeoapi_test.go @@ -16,7 +16,7 @@ import ( func TestGetgeoapi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/getgist/getgist_test.go b/pkg/detectors/getgist/getgist_test.go index 10d5fbfc2..70f0c3c7f 100644 --- a/pkg/detectors/getgist/getgist_test.go +++ b/pkg/detectors/getgist/getgist_test.go @@ -16,7 +16,7 @@ import ( func TestGetgist_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/getsandbox/getsandbox_test.go b/pkg/detectors/getsandbox/getsandbox_test.go index 22af687d8..ea8493653 100644 --- a/pkg/detectors/getsandbox/getsandbox_test.go +++ b/pkg/detectors/getsandbox/getsandbox_test.go @@ -16,7 +16,7 @@ import ( func TestGetSandbox_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/github/github_test.go b/pkg/detectors/github/github_test.go index cb63878ad..4b410c5e0 100644 --- a/pkg/detectors/github/github_test.go +++ b/pkg/detectors/github/github_test.go @@ -15,7 +15,7 @@ import ( func TestGitHub_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/github_old/github_old_test.go b/pkg/detectors/github_old/github_old_test.go index 160bdc34d..2653c7568 100644 --- a/pkg/detectors/github_old/github_old_test.go +++ b/pkg/detectors/github_old/github_old_test.go @@ -15,7 +15,7 @@ import ( func TestGitHub_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/githubapp/githubapp_test.go b/pkg/detectors/githubapp/githubapp_test.go index dd9494b78..17374746b 100644 --- a/pkg/detectors/githubapp/githubapp_test.go +++ b/pkg/detectors/githubapp/githubapp_test.go @@ -17,7 +17,7 @@ import ( func TestGitHubApp_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/gitlab/gitlab_test.go b/pkg/detectors/gitlab/gitlab_test.go index b1faa6338..a06ed5f37 100644 --- a/pkg/detectors/gitlab/gitlab_test.go +++ b/pkg/detectors/gitlab/gitlab_test.go @@ -15,7 +15,7 @@ import ( func TestGitlab_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/gitlabv2/gitlab_test.go b/pkg/detectors/gitlabv2/gitlab_test.go index 48eb95fe1..36f8e21b0 100644 --- a/pkg/detectors/gitlabv2/gitlab_test.go +++ b/pkg/detectors/gitlabv2/gitlab_test.go @@ -15,7 +15,7 @@ import ( func TestGitlab_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/gitter/gitter_test.go b/pkg/detectors/gitter/gitter_test.go index 496dcc400..40cb8de70 100644 --- a/pkg/detectors/gitter/gitter_test.go +++ b/pkg/detectors/gitter/gitter_test.go @@ -16,7 +16,7 @@ import ( func TestGitter_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/glassnode/glassnode_test.go b/pkg/detectors/glassnode/glassnode_test.go index 59d94e574..d3b6690a0 100644 --- a/pkg/detectors/glassnode/glassnode_test.go +++ b/pkg/detectors/glassnode/glassnode_test.go @@ -16,7 +16,7 @@ import ( func TestGlassnode_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/gocardless/gocardless_test.go b/pkg/detectors/gocardless/gocardless_test.go index cd366f0c1..096325fe6 100644 --- a/pkg/detectors/gocardless/gocardless_test.go +++ b/pkg/detectors/gocardless/gocardless_test.go @@ -16,7 +16,7 @@ import ( func TestGoCardless_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/goodday/goodday_test.go b/pkg/detectors/goodday/goodday_test.go index 87ed1556b..e0178909c 100644 --- a/pkg/detectors/goodday/goodday_test.go +++ b/pkg/detectors/goodday/goodday_test.go @@ -16,7 +16,7 @@ import ( func TestGoodDay_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/graphcms/graphcms_test.go b/pkg/detectors/graphcms/graphcms_test.go index 31583c602..57afbe82e 100644 --- a/pkg/detectors/graphcms/graphcms_test.go +++ b/pkg/detectors/graphcms/graphcms_test.go @@ -16,7 +16,7 @@ import ( func TestGraphCMS_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/graphhopper/graphhopper_test.go b/pkg/detectors/graphhopper/graphhopper_test.go index f2304cc34..02d743f8c 100644 --- a/pkg/detectors/graphhopper/graphhopper_test.go +++ b/pkg/detectors/graphhopper/graphhopper_test.go @@ -16,7 +16,7 @@ import ( func TestGraphhopper_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/groovehq/groovehq_test.go b/pkg/detectors/groovehq/groovehq_test.go index 38a19a161..01352fa9e 100644 --- a/pkg/detectors/groovehq/groovehq_test.go +++ b/pkg/detectors/groovehq/groovehq_test.go @@ -16,7 +16,7 @@ import ( func TestGroovehq_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/guardianapi/guardianapi_test.go b/pkg/detectors/guardianapi/guardianapi_test.go index c855a2633..2dd0740fd 100644 --- a/pkg/detectors/guardianapi/guardianapi_test.go +++ b/pkg/detectors/guardianapi/guardianapi_test.go @@ -16,7 +16,7 @@ import ( func TestGuardianapi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/guru/guru_test.go b/pkg/detectors/guru/guru_test.go index a07206b6f..7c7098f0c 100644 --- a/pkg/detectors/guru/guru_test.go +++ b/pkg/detectors/guru/guru_test.go @@ -16,7 +16,7 @@ import ( func TestGuru_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/gyazo/gyazo_test.go b/pkg/detectors/gyazo/gyazo_test.go index 0979fbd3d..1f55ab391 100644 --- a/pkg/detectors/gyazo/gyazo_test.go +++ b/pkg/detectors/gyazo/gyazo_test.go @@ -16,7 +16,7 @@ import ( func TestGyazo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/happi/happi_test.go b/pkg/detectors/happi/happi_test.go index c97ee966b..585e24c31 100644 --- a/pkg/detectors/happi/happi_test.go +++ b/pkg/detectors/happi/happi_test.go @@ -16,7 +16,7 @@ import ( func TestHappi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/happyscribe/happyscribe_test.go b/pkg/detectors/happyscribe/happyscribe_test.go index 06c2b2a83..9e0918493 100644 --- a/pkg/detectors/happyscribe/happyscribe_test.go +++ b/pkg/detectors/happyscribe/happyscribe_test.go @@ -16,7 +16,7 @@ import ( func TestHappyscribe_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/harvest/harvest_test.go b/pkg/detectors/harvest/harvest_test.go index e462fdf06..6857bf863 100644 --- a/pkg/detectors/harvest/harvest_test.go +++ b/pkg/detectors/harvest/harvest_test.go @@ -16,7 +16,7 @@ import ( func TestHarvest_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/hellosign/hellosign_test.go b/pkg/detectors/hellosign/hellosign_test.go index 07619cfd7..d3b485bfa 100644 --- a/pkg/detectors/hellosign/hellosign_test.go +++ b/pkg/detectors/hellosign/hellosign_test.go @@ -16,7 +16,7 @@ import ( func TestHelloSign_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/helpcrunch/helpcrunch_test.go b/pkg/detectors/helpcrunch/helpcrunch_test.go index 4f8639d62..15afdf78a 100644 --- a/pkg/detectors/helpcrunch/helpcrunch_test.go +++ b/pkg/detectors/helpcrunch/helpcrunch_test.go @@ -16,7 +16,7 @@ import ( func TestHelpCrunch_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/helpscout/helpscout_test.go b/pkg/detectors/helpscout/helpscout_test.go index c32d69b55..c426f2134 100644 --- a/pkg/detectors/helpscout/helpscout_test.go +++ b/pkg/detectors/helpscout/helpscout_test.go @@ -16,7 +16,7 @@ import ( func TestHelpscout_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/hereapi/hereapi_test.go b/pkg/detectors/hereapi/hereapi_test.go index 2dbcc8a52..ee6d36032 100644 --- a/pkg/detectors/hereapi/hereapi_test.go +++ b/pkg/detectors/hereapi/hereapi_test.go @@ -16,7 +16,7 @@ import ( func TestHereAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/heroku/heroku_test.go b/pkg/detectors/heroku/heroku_test.go index 021395ce8..00215bb85 100644 --- a/pkg/detectors/heroku/heroku_test.go +++ b/pkg/detectors/heroku/heroku_test.go @@ -16,7 +16,7 @@ import ( func TestHeroku_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/hive/hive_test.go b/pkg/detectors/hive/hive_test.go index bfa6a152b..e00ba520c 100644 --- a/pkg/detectors/hive/hive_test.go +++ b/pkg/detectors/hive/hive_test.go @@ -16,7 +16,7 @@ import ( func TestHive_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/hiveage/hiveage_test.go b/pkg/detectors/hiveage/hiveage_test.go index db81a60ab..b1f634279 100644 --- a/pkg/detectors/hiveage/hiveage_test.go +++ b/pkg/detectors/hiveage/hiveage_test.go @@ -16,7 +16,7 @@ import ( func TestHiveage_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/holidayapi/holidayapi_test.go b/pkg/detectors/holidayapi/holidayapi_test.go index 786ef2754..71ca22b5d 100644 --- a/pkg/detectors/holidayapi/holidayapi_test.go +++ b/pkg/detectors/holidayapi/holidayapi_test.go @@ -16,7 +16,7 @@ import ( func TestHolidayAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/host/host_test.go b/pkg/detectors/host/host_test.go index ec07b1dfb..06a138274 100644 --- a/pkg/detectors/host/host_test.go +++ b/pkg/detectors/host/host_test.go @@ -16,7 +16,7 @@ import ( func TestHost_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/html2pdf/html2pdf_test.go b/pkg/detectors/html2pdf/html2pdf_test.go index af72eb9ed..cf55a6979 100644 --- a/pkg/detectors/html2pdf/html2pdf_test.go +++ b/pkg/detectors/html2pdf/html2pdf_test.go @@ -16,7 +16,7 @@ import ( func TestHtml2Pdf_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/hubspotapikey/hubspotapikey_test.go b/pkg/detectors/hubspotapikey/hubspotapikey_test.go index d4379b730..a144e1945 100644 --- a/pkg/detectors/hubspotapikey/hubspotapikey_test.go +++ b/pkg/detectors/hubspotapikey/hubspotapikey_test.go @@ -16,7 +16,7 @@ import ( func TestHubSpotApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/humanity/humanity_test.go b/pkg/detectors/humanity/humanity_test.go index fe6aab424..1f4d23bc9 100644 --- a/pkg/detectors/humanity/humanity_test.go +++ b/pkg/detectors/humanity/humanity_test.go @@ -16,7 +16,7 @@ import ( func TestHumanity_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/hunter/hunter_test.go b/pkg/detectors/hunter/hunter_test.go index b32243ead..5acb69bf5 100644 --- a/pkg/detectors/hunter/hunter_test.go +++ b/pkg/detectors/hunter/hunter_test.go @@ -16,7 +16,7 @@ import ( func TestHunter_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/hypertrack/hypertrack_test.go b/pkg/detectors/hypertrack/hypertrack_test.go index e8d3697ce..530cf9567 100644 --- a/pkg/detectors/hypertrack/hypertrack_test.go +++ b/pkg/detectors/hypertrack/hypertrack_test.go @@ -16,7 +16,7 @@ import ( func TestHypertrack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ibmclouduserkey/ibmclouduserkey_test.go b/pkg/detectors/ibmclouduserkey/ibmclouduserkey_test.go index 53923c9bc..6da48b467 100644 --- a/pkg/detectors/ibmclouduserkey/ibmclouduserkey_test.go +++ b/pkg/detectors/ibmclouduserkey/ibmclouduserkey_test.go @@ -16,7 +16,7 @@ import ( func TestIbmCloudUserKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/iconfinder/iconfinder_test.go b/pkg/detectors/iconfinder/iconfinder_test.go index c291419b2..b75a38725 100644 --- a/pkg/detectors/iconfinder/iconfinder_test.go +++ b/pkg/detectors/iconfinder/iconfinder_test.go @@ -16,7 +16,7 @@ import ( func TestIconFinder_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/iexcloud/iexcloud_test.go b/pkg/detectors/iexcloud/iexcloud_test.go index 045381141..f67c29bf4 100644 --- a/pkg/detectors/iexcloud/iexcloud_test.go +++ b/pkg/detectors/iexcloud/iexcloud_test.go @@ -16,7 +16,7 @@ import ( func TestIexcloud_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/imagekit/imagekit_test.go b/pkg/detectors/imagekit/imagekit_test.go index 2bca5f7f0..79674f18e 100644 --- a/pkg/detectors/imagekit/imagekit_test.go +++ b/pkg/detectors/imagekit/imagekit_test.go @@ -16,7 +16,7 @@ import ( func TestImagekit_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/imagga/imagga_test.go b/pkg/detectors/imagga/imagga_test.go index 7d97730b3..87ed75bde 100644 --- a/pkg/detectors/imagga/imagga_test.go +++ b/pkg/detectors/imagga/imagga_test.go @@ -16,7 +16,7 @@ import ( func TestImagga_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/impala/impala_test.go b/pkg/detectors/impala/impala_test.go index b519cd4ea..f3eca0c4e 100644 --- a/pkg/detectors/impala/impala_test.go +++ b/pkg/detectors/impala/impala_test.go @@ -16,7 +16,7 @@ import ( func TestImpala_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/insightly/insightly_test.go b/pkg/detectors/insightly/insightly_test.go index 98d5b71b1..04a085250 100644 --- a/pkg/detectors/insightly/insightly_test.go +++ b/pkg/detectors/insightly/insightly_test.go @@ -16,7 +16,7 @@ import ( func TestInsightly_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/integromat/integromat_test.go b/pkg/detectors/integromat/integromat_test.go index 39ae6c21f..cc98ccc90 100644 --- a/pkg/detectors/integromat/integromat_test.go +++ b/pkg/detectors/integromat/integromat_test.go @@ -16,7 +16,7 @@ import ( func TestIntegromat_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/intercom/intercom_test.go b/pkg/detectors/intercom/intercom_test.go index 3f022f948..d3bb45530 100644 --- a/pkg/detectors/intercom/intercom_test.go +++ b/pkg/detectors/intercom/intercom_test.go @@ -16,7 +16,7 @@ import ( func TestInterCom_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/intrinio/intrinio_test.go b/pkg/detectors/intrinio/intrinio_test.go index 173c5d4a5..e1e4ba84d 100644 --- a/pkg/detectors/intrinio/intrinio_test.go +++ b/pkg/detectors/intrinio/intrinio_test.go @@ -16,7 +16,7 @@ import ( func TestIntrinio_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/invoiceocean/invoiceocean_test.go b/pkg/detectors/invoiceocean/invoiceocean_test.go index 05c20c01e..9b8dc20fe 100644 --- a/pkg/detectors/invoiceocean/invoiceocean_test.go +++ b/pkg/detectors/invoiceocean/invoiceocean_test.go @@ -16,7 +16,7 @@ import ( func TestInvoiceocean_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ipapi/ipapi_test.go b/pkg/detectors/ipapi/ipapi_test.go index 5008ed67f..52f1957fc 100644 --- a/pkg/detectors/ipapi/ipapi_test.go +++ b/pkg/detectors/ipapi/ipapi_test.go @@ -16,7 +16,7 @@ import ( func TestIpapi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ipgeolocation/ipgeolocation_test.go b/pkg/detectors/ipgeolocation/ipgeolocation_test.go index 7d2291998..05129a094 100644 --- a/pkg/detectors/ipgeolocation/ipgeolocation_test.go +++ b/pkg/detectors/ipgeolocation/ipgeolocation_test.go @@ -16,7 +16,7 @@ import ( func TestIPGeolocation_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ipify/ipify_test.go b/pkg/detectors/ipify/ipify_test.go index fc32a60d9..720095228 100644 --- a/pkg/detectors/ipify/ipify_test.go +++ b/pkg/detectors/ipify/ipify_test.go @@ -16,7 +16,7 @@ import ( func TestIpify_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ipinfodb/ipinfodb_test.go b/pkg/detectors/ipinfodb/ipinfodb_test.go index fade2f1cc..1226d4bc8 100644 --- a/pkg/detectors/ipinfodb/ipinfodb_test.go +++ b/pkg/detectors/ipinfodb/ipinfodb_test.go @@ -16,7 +16,7 @@ import ( func TestIPinfoDB_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ipquality/ipquality_test.go b/pkg/detectors/ipquality/ipquality_test.go index e08cfe285..e476603ed 100644 --- a/pkg/detectors/ipquality/ipquality_test.go +++ b/pkg/detectors/ipquality/ipquality_test.go @@ -16,7 +16,7 @@ import ( func TestIpquality_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ipstack/ipstack_test.go b/pkg/detectors/ipstack/ipstack_test.go index cb7333f51..a250c5dfe 100644 --- a/pkg/detectors/ipstack/ipstack_test.go +++ b/pkg/detectors/ipstack/ipstack_test.go @@ -16,7 +16,7 @@ import ( func TestIpStack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/jiratoken/jiratoken_test.go b/pkg/detectors/jiratoken/jiratoken_test.go index ecf13aeab..3efdf58a4 100644 --- a/pkg/detectors/jiratoken/jiratoken_test.go +++ b/pkg/detectors/jiratoken/jiratoken_test.go @@ -16,7 +16,7 @@ import ( func TestJiraToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/jotform/jotform_test.go b/pkg/detectors/jotform/jotform_test.go index 3e48b73ac..6b124869d 100644 --- a/pkg/detectors/jotform/jotform_test.go +++ b/pkg/detectors/jotform/jotform_test.go @@ -16,7 +16,7 @@ import ( func TestJotform_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/jumpcloud/jumpcloud_test.go b/pkg/detectors/jumpcloud/jumpcloud_test.go index 639374ae9..0a72d86a3 100644 --- a/pkg/detectors/jumpcloud/jumpcloud_test.go +++ b/pkg/detectors/jumpcloud/jumpcloud_test.go @@ -16,7 +16,7 @@ import ( func TestJumpcloud_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/juro/juro_test.go b/pkg/detectors/juro/juro_test.go index 28309b507..9d6f0cc14 100644 --- a/pkg/detectors/juro/juro_test.go +++ b/pkg/detectors/juro/juro_test.go @@ -16,7 +16,7 @@ import ( func TestJuro_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/kanban/kanban_test.go b/pkg/detectors/kanban/kanban_test.go index 3e27d46ca..9a249cad0 100644 --- a/pkg/detectors/kanban/kanban_test.go +++ b/pkg/detectors/kanban/kanban_test.go @@ -16,7 +16,7 @@ import ( func TestKanban_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/karmacrm/karmacrm_test.go b/pkg/detectors/karmacrm/karmacrm_test.go index f568cab56..469c44d4a 100644 --- a/pkg/detectors/karmacrm/karmacrm_test.go +++ b/pkg/detectors/karmacrm/karmacrm_test.go @@ -16,7 +16,7 @@ import ( func TestKarmaCRM_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/keenio/keenio_test.go b/pkg/detectors/keenio/keenio_test.go index 11dab9e90..0bc24c843 100644 --- a/pkg/detectors/keenio/keenio_test.go +++ b/pkg/detectors/keenio/keenio_test.go @@ -16,7 +16,7 @@ import ( func TestKeenIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/kickbox/kickbox_test.go b/pkg/detectors/kickbox/kickbox_test.go index 00ca4e604..62500dc36 100644 --- a/pkg/detectors/kickbox/kickbox_test.go +++ b/pkg/detectors/kickbox/kickbox_test.go @@ -16,7 +16,7 @@ import ( func TestKickbox_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/kontent/kontent_test.go b/pkg/detectors/kontent/kontent_test.go index 446554033..c770e2570 100644 --- a/pkg/detectors/kontent/kontent_test.go +++ b/pkg/detectors/kontent/kontent_test.go @@ -16,7 +16,7 @@ import ( func TestKontent_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/kraken/kraken_test.go b/pkg/detectors/kraken/kraken_test.go index b6aa2cf77..eeae50f33 100644 --- a/pkg/detectors/kraken/kraken_test.go +++ b/pkg/detectors/kraken/kraken_test.go @@ -16,7 +16,7 @@ import ( func TestKraken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/kylas/kylas_test.go b/pkg/detectors/kylas/kylas_test.go index 9ee349f5f..9fa4c69a5 100644 --- a/pkg/detectors/kylas/kylas_test.go +++ b/pkg/detectors/kylas/kylas_test.go @@ -16,7 +16,7 @@ import ( func TestKylas_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/languagelayer/languagelayer_test.go b/pkg/detectors/languagelayer/languagelayer_test.go index 2d8adb65a..a72982c00 100644 --- a/pkg/detectors/languagelayer/languagelayer_test.go +++ b/pkg/detectors/languagelayer/languagelayer_test.go @@ -16,7 +16,7 @@ import ( func TestLanguageLayer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/lastfm/lastfm_test.go b/pkg/detectors/lastfm/lastfm_test.go index 6ea31284b..dc18f9a67 100644 --- a/pkg/detectors/lastfm/lastfm_test.go +++ b/pkg/detectors/lastfm/lastfm_test.go @@ -16,7 +16,7 @@ import ( func TestLastfm_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/launchdarkly/launchdarkly_test.go b/pkg/detectors/launchdarkly/launchdarkly_test.go index 70f5a1646..4efe5f763 100644 --- a/pkg/detectors/launchdarkly/launchdarkly_test.go +++ b/pkg/detectors/launchdarkly/launchdarkly_test.go @@ -16,7 +16,7 @@ import ( func TestLaunchDarkly_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/leadfeeder/leadfeeder_test.go b/pkg/detectors/leadfeeder/leadfeeder_test.go index b6595cdf6..20ed5143d 100644 --- a/pkg/detectors/leadfeeder/leadfeeder_test.go +++ b/pkg/detectors/leadfeeder/leadfeeder_test.go @@ -16,7 +16,7 @@ import ( func TestLeadfeeder_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/lessannoyingcrm/lessannoyingcrm_test.go b/pkg/detectors/lessannoyingcrm/lessannoyingcrm_test.go index 2a7ebcbe1..294530f48 100644 --- a/pkg/detectors/lessannoyingcrm/lessannoyingcrm_test.go +++ b/pkg/detectors/lessannoyingcrm/lessannoyingcrm_test.go @@ -16,7 +16,7 @@ import ( func TestLessAnnoyingCRM_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/lexigram/lexigram_test.go b/pkg/detectors/lexigram/lexigram_test.go index 6356c9830..b09d96ad5 100644 --- a/pkg/detectors/lexigram/lexigram_test.go +++ b/pkg/detectors/lexigram/lexigram_test.go @@ -16,7 +16,7 @@ import ( func TestLexigram_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/linearapi/linearapi_test.go b/pkg/detectors/linearapi/linearapi_test.go index 9c4f767e3..1b867d2cb 100644 --- a/pkg/detectors/linearapi/linearapi_test.go +++ b/pkg/detectors/linearapi/linearapi_test.go @@ -16,7 +16,7 @@ import ( func TestLinearAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/linemessaging/linemessaging_test.go b/pkg/detectors/linemessaging/linemessaging_test.go index 1037e255e..a939a4da7 100644 --- a/pkg/detectors/linemessaging/linemessaging_test.go +++ b/pkg/detectors/linemessaging/linemessaging_test.go @@ -16,7 +16,7 @@ import ( func TestLineMessaging_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/linenotify/linenotify_test.go b/pkg/detectors/linenotify/linenotify_test.go index e4e70b29c..63cb239ee 100644 --- a/pkg/detectors/linenotify/linenotify_test.go +++ b/pkg/detectors/linenotify/linenotify_test.go @@ -16,7 +16,7 @@ import ( func TestLineNotify_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/linkpreview/linkpreview_test.go b/pkg/detectors/linkpreview/linkpreview_test.go index f0843be64..61e95fe12 100644 --- a/pkg/detectors/linkpreview/linkpreview_test.go +++ b/pkg/detectors/linkpreview/linkpreview_test.go @@ -16,7 +16,7 @@ import ( func TestLinkPreview_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/liveagent/liveagent_test.go b/pkg/detectors/liveagent/liveagent_test.go index 625be9bf9..5de4d4fa3 100644 --- a/pkg/detectors/liveagent/liveagent_test.go +++ b/pkg/detectors/liveagent/liveagent_test.go @@ -16,7 +16,7 @@ import ( func TestLiveAgent_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/lob/lob_test.go b/pkg/detectors/lob/lob_test.go index c6e9d89cb..53156a438 100644 --- a/pkg/detectors/lob/lob_test.go +++ b/pkg/detectors/lob/lob_test.go @@ -16,7 +16,7 @@ import ( func TestLob_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/locationiq/locationiq_test.go b/pkg/detectors/locationiq/locationiq_test.go index 419914f01..2f442c459 100644 --- a/pkg/detectors/locationiq/locationiq_test.go +++ b/pkg/detectors/locationiq/locationiq_test.go @@ -16,7 +16,7 @@ import ( func TestLocationIQ_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/loginradius/loginradius_test.go b/pkg/detectors/loginradius/loginradius_test.go index 46b07b00a..787b5396c 100644 --- a/pkg/detectors/loginradius/loginradius_test.go +++ b/pkg/detectors/loginradius/loginradius_test.go @@ -16,7 +16,7 @@ import ( func TestLoginradius_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/lokalisetoken/lokalisetoken_test.go b/pkg/detectors/lokalisetoken/lokalisetoken_test.go index 762e7509c..cdbb5a924 100644 --- a/pkg/detectors/lokalisetoken/lokalisetoken_test.go +++ b/pkg/detectors/lokalisetoken/lokalisetoken_test.go @@ -16,7 +16,7 @@ import ( func TestLokaliseToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/loyverse/loyverse_test.go b/pkg/detectors/loyverse/loyverse_test.go index 2db248256..b955a31fb 100644 --- a/pkg/detectors/loyverse/loyverse_test.go +++ b/pkg/detectors/loyverse/loyverse_test.go @@ -16,7 +16,7 @@ import ( func TestLoyverse_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/luno/luno_test.go b/pkg/detectors/luno/luno_test.go index 28491b3b6..f48323389 100644 --- a/pkg/detectors/luno/luno_test.go +++ b/pkg/detectors/luno/luno_test.go @@ -16,7 +16,7 @@ import ( func TestLuno_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/m3o/m3o_test.go b/pkg/detectors/m3o/m3o_test.go index 5d61eebdb..ea9b719bf 100644 --- a/pkg/detectors/m3o/m3o_test.go +++ b/pkg/detectors/m3o/m3o_test.go @@ -16,7 +16,7 @@ import ( func TestM3o_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/macaddress/macaddress_test.go b/pkg/detectors/macaddress/macaddress_test.go index c4565dbe5..9e84a9b88 100644 --- a/pkg/detectors/macaddress/macaddress_test.go +++ b/pkg/detectors/macaddress/macaddress_test.go @@ -16,7 +16,7 @@ import ( func TestMacaddress_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/magnetic/magnetic_test.go b/pkg/detectors/magnetic/magnetic_test.go index 4effd527c..353abfb0d 100644 --- a/pkg/detectors/magnetic/magnetic_test.go +++ b/pkg/detectors/magnetic/magnetic_test.go @@ -16,7 +16,7 @@ import ( func TestMagnetic_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mailboxlayer/mailboxlayer_test.go b/pkg/detectors/mailboxlayer/mailboxlayer_test.go index 22409bb84..ca80190bd 100644 --- a/pkg/detectors/mailboxlayer/mailboxlayer_test.go +++ b/pkg/detectors/mailboxlayer/mailboxlayer_test.go @@ -16,7 +16,7 @@ import ( func TestMailboxplayer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mailchimp/mailchimp_test.go b/pkg/detectors/mailchimp/mailchimp_test.go index dcfa7b18f..940d3cfd5 100644 --- a/pkg/detectors/mailchimp/mailchimp_test.go +++ b/pkg/detectors/mailchimp/mailchimp_test.go @@ -15,7 +15,7 @@ import ( func TestMailchimp_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mailerlite/mailerlite_test.go b/pkg/detectors/mailerlite/mailerlite_test.go index 032e8797b..c41548ef9 100644 --- a/pkg/detectors/mailerlite/mailerlite_test.go +++ b/pkg/detectors/mailerlite/mailerlite_test.go @@ -16,7 +16,7 @@ import ( func TestMailerlite_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mailgun/mailgun_test.go b/pkg/detectors/mailgun/mailgun_test.go index 4055dcf76..43ce5511f 100644 --- a/pkg/detectors/mailgun/mailgun_test.go +++ b/pkg/detectors/mailgun/mailgun_test.go @@ -18,7 +18,7 @@ import ( func TestMailgun_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mailjetbasicauth/mailjetbasicauth_test.go b/pkg/detectors/mailjetbasicauth/mailjetbasicauth_test.go index 62a03ccb1..0dba41539 100644 --- a/pkg/detectors/mailjetbasicauth/mailjetbasicauth_test.go +++ b/pkg/detectors/mailjetbasicauth/mailjetbasicauth_test.go @@ -16,7 +16,7 @@ import ( func TestMailJetBasicAuth_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mailjetsms/mailjetsms_test.go b/pkg/detectors/mailjetsms/mailjetsms_test.go index d756d859d..bd5d46bf3 100644 --- a/pkg/detectors/mailjetsms/mailjetsms_test.go +++ b/pkg/detectors/mailjetsms/mailjetsms_test.go @@ -16,7 +16,7 @@ import ( func TestMailJetSMS_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mailmodo/mailmodo_test.go b/pkg/detectors/mailmodo/mailmodo_test.go index 0edfa21f8..f6842333d 100644 --- a/pkg/detectors/mailmodo/mailmodo_test.go +++ b/pkg/detectors/mailmodo/mailmodo_test.go @@ -16,7 +16,7 @@ import ( func TestMailmodo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mailsac/mailsac_test.go b/pkg/detectors/mailsac/mailsac_test.go index 78c4ca47e..f2dd7b99c 100644 --- a/pkg/detectors/mailsac/mailsac_test.go +++ b/pkg/detectors/mailsac/mailsac_test.go @@ -16,7 +16,7 @@ import ( func TestMailsac_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mandrill/mandrill_test.go b/pkg/detectors/mandrill/mandrill_test.go index 7f27a66f4..bae962134 100644 --- a/pkg/detectors/mandrill/mandrill_test.go +++ b/pkg/detectors/mandrill/mandrill_test.go @@ -16,7 +16,7 @@ import ( func TestMandrill_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/manifest/manifest_test.go b/pkg/detectors/manifest/manifest_test.go index d9b9868d1..38a61f641 100644 --- a/pkg/detectors/manifest/manifest_test.go +++ b/pkg/detectors/manifest/manifest_test.go @@ -16,7 +16,7 @@ import ( func TestManifest_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mapbox/mapbox_test.go b/pkg/detectors/mapbox/mapbox_test.go index b84be91fb..b4e55e57b 100644 --- a/pkg/detectors/mapbox/mapbox_test.go +++ b/pkg/detectors/mapbox/mapbox_test.go @@ -16,7 +16,7 @@ import ( func TestMapBox_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mapquest/mapquest_test.go b/pkg/detectors/mapquest/mapquest_test.go index 132522631..e75caf0ff 100644 --- a/pkg/detectors/mapquest/mapquest_test.go +++ b/pkg/detectors/mapquest/mapquest_test.go @@ -16,7 +16,7 @@ import ( func TestMapquest_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/marketstack/marketstack_test.go b/pkg/detectors/marketstack/marketstack_test.go index 59e97f896..7b64f1d1d 100644 --- a/pkg/detectors/marketstack/marketstack_test.go +++ b/pkg/detectors/marketstack/marketstack_test.go @@ -16,7 +16,7 @@ import ( func TestMarketstack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken_test.go b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken_test.go index 9d3b8a45a..c07005c5e 100644 --- a/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken_test.go +++ b/pkg/detectors/mattermostpersonaltoken/mattermostpersonaltoken_test.go @@ -16,7 +16,7 @@ import ( func TestMattermostPersonalToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mavenlink/mavenlink_test.go b/pkg/detectors/mavenlink/mavenlink_test.go index 6787526a0..1fef47462 100644 --- a/pkg/detectors/mavenlink/mavenlink_test.go +++ b/pkg/detectors/mavenlink/mavenlink_test.go @@ -16,7 +16,7 @@ import ( func TestMavenlink_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/maxmindlicense/maxmindlicense_test.go b/pkg/detectors/maxmindlicense/maxmindlicense_test.go index 1380eecc3..162ca86cd 100644 --- a/pkg/detectors/maxmindlicense/maxmindlicense_test.go +++ b/pkg/detectors/maxmindlicense/maxmindlicense_test.go @@ -16,7 +16,7 @@ import ( func TestMaxMindLicense_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/meaningcloud/meaningcloud_test.go b/pkg/detectors/meaningcloud/meaningcloud_test.go index e4876596b..146588ccc 100644 --- a/pkg/detectors/meaningcloud/meaningcloud_test.go +++ b/pkg/detectors/meaningcloud/meaningcloud_test.go @@ -16,7 +16,7 @@ import ( func TestMeaningCloud_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mediastack/mediastack_test.go b/pkg/detectors/mediastack/mediastack_test.go index dbf897b01..eb899e360 100644 --- a/pkg/detectors/mediastack/mediastack_test.go +++ b/pkg/detectors/mediastack/mediastack_test.go @@ -16,7 +16,7 @@ import ( func TestMediaStack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/meistertask/meistertask_test.go b/pkg/detectors/meistertask/meistertask_test.go index cb6eec394..aa0c4e0f1 100644 --- a/pkg/detectors/meistertask/meistertask_test.go +++ b/pkg/detectors/meistertask/meistertask_test.go @@ -16,7 +16,7 @@ import ( func TestMeistertask_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mesibo/mesibo_test.go b/pkg/detectors/mesibo/mesibo_test.go index f258c3e0c..7a4a0cc84 100644 --- a/pkg/detectors/mesibo/mesibo_test.go +++ b/pkg/detectors/mesibo/mesibo_test.go @@ -16,7 +16,7 @@ import ( func TestMesibo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/messagebird/messagebird_test.go b/pkg/detectors/messagebird/messagebird_test.go index 698b11b5d..fa081a8f8 100644 --- a/pkg/detectors/messagebird/messagebird_test.go +++ b/pkg/detectors/messagebird/messagebird_test.go @@ -16,7 +16,7 @@ import ( func TestMessageBird_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/metrilo/metrilo_test.go b/pkg/detectors/metrilo/metrilo_test.go index 108f37133..a7e6bb04a 100644 --- a/pkg/detectors/metrilo/metrilo_test.go +++ b/pkg/detectors/metrilo/metrilo_test.go @@ -16,7 +16,7 @@ import ( func TestMetrilo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook_test.go b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook_test.go index 77f567b78..7840c1aed 100644 --- a/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook_test.go +++ b/pkg/detectors/microsoftteamswebhook/microsoftteamswebhook_test.go @@ -16,7 +16,7 @@ import ( func TestMicrosoftTeamsWebhook_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mindmeister/mindmeister_test.go b/pkg/detectors/mindmeister/mindmeister_test.go index 50dd561fe..c1331e486 100644 --- a/pkg/detectors/mindmeister/mindmeister_test.go +++ b/pkg/detectors/mindmeister/mindmeister_test.go @@ -16,7 +16,7 @@ import ( func TestMindmeister_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mite/mite_test.go b/pkg/detectors/mite/mite_test.go index 237b8c82b..c3582e0ff 100644 --- a/pkg/detectors/mite/mite_test.go +++ b/pkg/detectors/mite/mite_test.go @@ -16,7 +16,7 @@ import ( func TestMite_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mixmax/mixmax_test.go b/pkg/detectors/mixmax/mixmax_test.go index b28364436..42615c779 100644 --- a/pkg/detectors/mixmax/mixmax_test.go +++ b/pkg/detectors/mixmax/mixmax_test.go @@ -16,7 +16,7 @@ import ( func TestMixmax_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mixpanel/mixpanel_test.go b/pkg/detectors/mixpanel/mixpanel_test.go index 51b070072..5241da58f 100644 --- a/pkg/detectors/mixpanel/mixpanel_test.go +++ b/pkg/detectors/mixpanel/mixpanel_test.go @@ -16,7 +16,7 @@ import ( func TestMixpanel_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/monday/monday_test.go b/pkg/detectors/monday/monday_test.go index 99c4190a0..6a32c6d81 100644 --- a/pkg/detectors/monday/monday_test.go +++ b/pkg/detectors/monday/monday_test.go @@ -16,7 +16,7 @@ import ( func TestMonday_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/moonclerk/moonclerk_test.go b/pkg/detectors/moonclerk/moonclerk_test.go index fb2209407..097b072c9 100644 --- a/pkg/detectors/moonclerk/moonclerk_test.go +++ b/pkg/detectors/moonclerk/moonclerk_test.go @@ -16,7 +16,7 @@ import ( func TestMoonclerk_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/moosend/moosend_test.go b/pkg/detectors/moosend/moosend_test.go index d752a8307..fab0ec7fd 100644 --- a/pkg/detectors/moosend/moosend_test.go +++ b/pkg/detectors/moosend/moosend_test.go @@ -16,7 +16,7 @@ import ( func TestMoosend_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/mrticktock/mrticktock_test.go b/pkg/detectors/mrticktock/mrticktock_test.go index cff83f9cd..0377d2c78 100644 --- a/pkg/detectors/mrticktock/mrticktock_test.go +++ b/pkg/detectors/mrticktock/mrticktock_test.go @@ -16,7 +16,7 @@ import ( func TestMrticktock_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/myfreshworks/myfreshworks_test.go b/pkg/detectors/myfreshworks/myfreshworks_test.go index 74ef75a9e..699664fe3 100644 --- a/pkg/detectors/myfreshworks/myfreshworks_test.go +++ b/pkg/detectors/myfreshworks/myfreshworks_test.go @@ -16,7 +16,7 @@ import ( func TestMyfreshworks_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/myintervals/myintervals_test.go b/pkg/detectors/myintervals/myintervals_test.go index 67969f1dd..9f4ffb0ec 100644 --- a/pkg/detectors/myintervals/myintervals_test.go +++ b/pkg/detectors/myintervals/myintervals_test.go @@ -16,7 +16,7 @@ import ( func TestMyintervals_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go b/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go index f63657691..7b440766d 100644 --- a/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go +++ b/pkg/detectors/nasdaqdatalink/nasdaqdatalink_test.go @@ -16,7 +16,7 @@ import ( func TestNasdaqDataLink_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/nethunt/nethunt_test.go b/pkg/detectors/nethunt/nethunt_test.go index 9f66cf99f..8a0518060 100644 --- a/pkg/detectors/nethunt/nethunt_test.go +++ b/pkg/detectors/nethunt/nethunt_test.go @@ -16,7 +16,7 @@ import ( func TestNethunt_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/netlify/netlify_test.go b/pkg/detectors/netlify/netlify_test.go index 095edb82a..63671e521 100644 --- a/pkg/detectors/netlify/netlify_test.go +++ b/pkg/detectors/netlify/netlify_test.go @@ -16,7 +16,7 @@ import ( func TestNetlify_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/neutrinoapi/neutrinoapi_test.go b/pkg/detectors/neutrinoapi/neutrinoapi_test.go index 52bcbde63..0d8cc27a8 100644 --- a/pkg/detectors/neutrinoapi/neutrinoapi_test.go +++ b/pkg/detectors/neutrinoapi/neutrinoapi_test.go @@ -16,7 +16,7 @@ import ( func TestNeutrinoApi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go index d3e67a03e..512ca9ebf 100644 --- a/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go +++ b/pkg/detectors/newrelicpersonalapikey/newrelicpersonalapikey_test.go @@ -16,7 +16,7 @@ import ( func TestNewRelicPersonalApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/newsapi/newsapi_test.go b/pkg/detectors/newsapi/newsapi_test.go index cba413e2d..46a035088 100644 --- a/pkg/detectors/newsapi/newsapi_test.go +++ b/pkg/detectors/newsapi/newsapi_test.go @@ -16,7 +16,7 @@ import ( func TestNewsapi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/newscatcher/newscatcher_test.go b/pkg/detectors/newscatcher/newscatcher_test.go index 93e763074..415171c9d 100644 --- a/pkg/detectors/newscatcher/newscatcher_test.go +++ b/pkg/detectors/newscatcher/newscatcher_test.go @@ -16,7 +16,7 @@ import ( func TestNewscatcher_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/nexmoapikey/nexmoapikey_test.go b/pkg/detectors/nexmoapikey/nexmoapikey_test.go index 2f1847492..560f96a8d 100644 --- a/pkg/detectors/nexmoapikey/nexmoapikey_test.go +++ b/pkg/detectors/nexmoapikey/nexmoapikey_test.go @@ -16,7 +16,7 @@ import ( func TestNexmoApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/nftport/nftport_test.go b/pkg/detectors/nftport/nftport_test.go index fe0d33e1e..5750b1db1 100644 --- a/pkg/detectors/nftport/nftport_test.go +++ b/pkg/detectors/nftport/nftport_test.go @@ -16,7 +16,7 @@ import ( func TestNftport_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/nicereply/nicereply_test.go b/pkg/detectors/nicereply/nicereply_test.go index 50ef5d50f..b5e651650 100644 --- a/pkg/detectors/nicereply/nicereply_test.go +++ b/pkg/detectors/nicereply/nicereply_test.go @@ -16,7 +16,7 @@ import ( func TestNicereply_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/nimble/nimble_test.go b/pkg/detectors/nimble/nimble_test.go index 8c6576686..a4b5a3393 100644 --- a/pkg/detectors/nimble/nimble_test.go +++ b/pkg/detectors/nimble/nimble_test.go @@ -16,7 +16,7 @@ import ( func TestNimble_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/nitro/nitro_test.go b/pkg/detectors/nitro/nitro_test.go index 7d12ec292..4ef197f20 100644 --- a/pkg/detectors/nitro/nitro_test.go +++ b/pkg/detectors/nitro/nitro_test.go @@ -16,7 +16,7 @@ import ( func TestNitro_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/noticeable/noticeable_test.go b/pkg/detectors/noticeable/noticeable_test.go index 8b3dc0f66..ff9f6a9a2 100644 --- a/pkg/detectors/noticeable/noticeable_test.go +++ b/pkg/detectors/noticeable/noticeable_test.go @@ -16,7 +16,7 @@ import ( func TestNoticeable_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/notion/notion_test.go b/pkg/detectors/notion/notion_test.go index 1cf0bcd4a..f93c9a7f6 100644 --- a/pkg/detectors/notion/notion_test.go +++ b/pkg/detectors/notion/notion_test.go @@ -16,7 +16,7 @@ import ( func TestNotion_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/numverify/numverify_test.go b/pkg/detectors/numverify/numverify_test.go index d7f43cdb9..0dfc4b3b7 100644 --- a/pkg/detectors/numverify/numverify_test.go +++ b/pkg/detectors/numverify/numverify_test.go @@ -16,7 +16,7 @@ import ( func TestNumverify_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/nutritionix/nutritionix_test.go b/pkg/detectors/nutritionix/nutritionix_test.go index 40178baa8..e46b641de 100644 --- a/pkg/detectors/nutritionix/nutritionix_test.go +++ b/pkg/detectors/nutritionix/nutritionix_test.go @@ -16,7 +16,7 @@ import ( func TestNutritionix_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/nylas/nylas_test.go b/pkg/detectors/nylas/nylas_test.go index 4f4bb8d67..0b13fc4ae 100644 --- a/pkg/detectors/nylas/nylas_test.go +++ b/pkg/detectors/nylas/nylas_test.go @@ -16,7 +16,7 @@ import ( func TestNylas_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/nytimes/nytimes_test.go b/pkg/detectors/nytimes/nytimes_test.go index 5e928bb4f..5a8f9e28b 100644 --- a/pkg/detectors/nytimes/nytimes_test.go +++ b/pkg/detectors/nytimes/nytimes_test.go @@ -16,7 +16,7 @@ import ( func TestNytimes_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/oanda/oanda_test.go b/pkg/detectors/oanda/oanda_test.go index e0b9afe5b..d38aab44c 100644 --- a/pkg/detectors/oanda/oanda_test.go +++ b/pkg/detectors/oanda/oanda_test.go @@ -16,7 +16,7 @@ import ( func TestOanda_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/okta/okta_test.go b/pkg/detectors/okta/okta_test.go index e472adc74..ed62f664f 100644 --- a/pkg/detectors/okta/okta_test.go +++ b/pkg/detectors/okta/okta_test.go @@ -15,7 +15,7 @@ import ( func TestOkta_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/omnisend/omnisend_test.go b/pkg/detectors/omnisend/omnisend_test.go index ca24936f6..c4c4b3d08 100644 --- a/pkg/detectors/omnisend/omnisend_test.go +++ b/pkg/detectors/omnisend/omnisend_test.go @@ -16,7 +16,7 @@ import ( func TestOmnisend_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/onedesk/onedesk_test.go b/pkg/detectors/onedesk/onedesk_test.go index bda2055a5..e62101b03 100644 --- a/pkg/detectors/onedesk/onedesk_test.go +++ b/pkg/detectors/onedesk/onedesk_test.go @@ -16,7 +16,7 @@ import ( func TestOnedesk_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/onelogin/onelogin_test.go b/pkg/detectors/onelogin/onelogin_test.go index 5fa28f573..dc34f47c8 100644 --- a/pkg/detectors/onelogin/onelogin_test.go +++ b/pkg/detectors/onelogin/onelogin_test.go @@ -15,7 +15,7 @@ import ( func TestOnelogin_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/onepagecrm/onepagecrm_test.go b/pkg/detectors/onepagecrm/onepagecrm_test.go index 132e34603..bd29dba18 100644 --- a/pkg/detectors/onepagecrm/onepagecrm_test.go +++ b/pkg/detectors/onepagecrm/onepagecrm_test.go @@ -16,7 +16,7 @@ import ( func TestOnepageCRM_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/onwaterio/onwaterio_test.go b/pkg/detectors/onwaterio/onwaterio_test.go index 828c67469..60dd5cdc2 100644 --- a/pkg/detectors/onwaterio/onwaterio_test.go +++ b/pkg/detectors/onwaterio/onwaterio_test.go @@ -16,7 +16,7 @@ import ( func TestOnWaterIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/oopspam/oopspam_test.go b/pkg/detectors/oopspam/oopspam_test.go index 8e026e13f..abeb73780 100644 --- a/pkg/detectors/oopspam/oopspam_test.go +++ b/pkg/detectors/oopspam/oopspam_test.go @@ -16,7 +16,7 @@ import ( func TestOOPSpam_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/opencagedata/opencagedata_test.go b/pkg/detectors/opencagedata/opencagedata_test.go index 17b4c392e..4d2af226f 100644 --- a/pkg/detectors/opencagedata/opencagedata_test.go +++ b/pkg/detectors/opencagedata/opencagedata_test.go @@ -16,7 +16,7 @@ import ( func TestOpenCageData_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/opengraphr/opengraphr_test.go b/pkg/detectors/opengraphr/opengraphr_test.go index f3393eb00..76b5dc9fa 100644 --- a/pkg/detectors/opengraphr/opengraphr_test.go +++ b/pkg/detectors/opengraphr/opengraphr_test.go @@ -16,7 +16,7 @@ import ( func TestOpengraphr_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/openuv/openuv_test.go b/pkg/detectors/openuv/openuv_test.go index 0b14403f1..3ef657dbe 100644 --- a/pkg/detectors/openuv/openuv_test.go +++ b/pkg/detectors/openuv/openuv_test.go @@ -16,7 +16,7 @@ import ( func TestOpenuv_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/openweather/openweather_test.go b/pkg/detectors/openweather/openweather_test.go index d57ed8fba..97e93b88d 100644 --- a/pkg/detectors/openweather/openweather_test.go +++ b/pkg/detectors/openweather/openweather_test.go @@ -16,7 +16,7 @@ import ( func TestOpenWeather_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/optimizely/optimizely_test.go b/pkg/detectors/optimizely/optimizely_test.go index 263a4770c..e46396716 100644 --- a/pkg/detectors/optimizely/optimizely_test.go +++ b/pkg/detectors/optimizely/optimizely_test.go @@ -16,7 +16,7 @@ import ( func TestOptimizely_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/owlbot/owlbot_test.go b/pkg/detectors/owlbot/owlbot_test.go index bb6a590b0..7501d9ae9 100644 --- a/pkg/detectors/owlbot/owlbot_test.go +++ b/pkg/detectors/owlbot/owlbot_test.go @@ -16,7 +16,7 @@ import ( func TestOwlbot_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pagerdutyapikey/pagerdutyapikey_test.go b/pkg/detectors/pagerdutyapikey/pagerdutyapikey_test.go index 8791a7cdf..894d7af8e 100644 --- a/pkg/detectors/pagerdutyapikey/pagerdutyapikey_test.go +++ b/pkg/detectors/pagerdutyapikey/pagerdutyapikey_test.go @@ -16,7 +16,7 @@ import ( func TestPagerDutyApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pandadoc/pandadoc_test.go b/pkg/detectors/pandadoc/pandadoc_test.go index f8a98196e..fcd9f742f 100644 --- a/pkg/detectors/pandadoc/pandadoc_test.go +++ b/pkg/detectors/pandadoc/pandadoc_test.go @@ -16,7 +16,7 @@ import ( func TestPandadoc_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/paralleldots/paralleldots_test.go b/pkg/detectors/paralleldots/paralleldots_test.go index b2f68b68b..f7988c61a 100644 --- a/pkg/detectors/paralleldots/paralleldots_test.go +++ b/pkg/detectors/paralleldots/paralleldots_test.go @@ -16,7 +16,7 @@ import ( func TestParalleldots_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/partnerstack/partnerstack_test.go b/pkg/detectors/partnerstack/partnerstack_test.go index 3201832d5..0fb9f3ada 100644 --- a/pkg/detectors/partnerstack/partnerstack_test.go +++ b/pkg/detectors/partnerstack/partnerstack_test.go @@ -16,7 +16,7 @@ import ( func TestPartnerstack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/passbase/passbase_test.go b/pkg/detectors/passbase/passbase_test.go index 9cdda2b79..7bed6edbc 100644 --- a/pkg/detectors/passbase/passbase_test.go +++ b/pkg/detectors/passbase/passbase_test.go @@ -16,7 +16,7 @@ import ( func TestPassbase_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pastebin/pastebin_test.go b/pkg/detectors/pastebin/pastebin_test.go index 0ceeca23b..0ecfeea2f 100644 --- a/pkg/detectors/pastebin/pastebin_test.go +++ b/pkg/detectors/pastebin/pastebin_test.go @@ -16,7 +16,7 @@ import ( func TestPastebin_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/paymoapp/paymoapp_test.go b/pkg/detectors/paymoapp/paymoapp_test.go index 589a7a1a9..ac955c390 100644 --- a/pkg/detectors/paymoapp/paymoapp_test.go +++ b/pkg/detectors/paymoapp/paymoapp_test.go @@ -16,7 +16,7 @@ import ( func TestPaymoapp_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/paymongo/paymongo_test.go b/pkg/detectors/paymongo/paymongo_test.go index 124e8f521..8f7996b21 100644 --- a/pkg/detectors/paymongo/paymongo_test.go +++ b/pkg/detectors/paymongo/paymongo_test.go @@ -16,7 +16,7 @@ import ( func TestPaymongo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/paypaloauth/paypaloauth_test.go b/pkg/detectors/paypaloauth/paypaloauth_test.go index 8c5175291..304183a29 100644 --- a/pkg/detectors/paypaloauth/paypaloauth_test.go +++ b/pkg/detectors/paypaloauth/paypaloauth_test.go @@ -16,7 +16,7 @@ import ( func TestPaypalOauth_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/paystack/paystack_test.go b/pkg/detectors/paystack/paystack_test.go index 3d4a8c62f..d8f6dfe21 100644 --- a/pkg/detectors/paystack/paystack_test.go +++ b/pkg/detectors/paystack/paystack_test.go @@ -16,7 +16,7 @@ import ( func TestPaystack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pdflayer/pdflayer_test.go b/pkg/detectors/pdflayer/pdflayer_test.go index a67512b8e..e270e74b9 100644 --- a/pkg/detectors/pdflayer/pdflayer_test.go +++ b/pkg/detectors/pdflayer/pdflayer_test.go @@ -16,7 +16,7 @@ import ( func TestPdfLayer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pdfshift/pdfshift_test.go b/pkg/detectors/pdfshift/pdfshift_test.go index 2644d4cc0..c5ea471e4 100644 --- a/pkg/detectors/pdfshift/pdfshift_test.go +++ b/pkg/detectors/pdfshift/pdfshift_test.go @@ -16,7 +16,7 @@ import ( func TestPdfShift_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/peopledatalabs/peopledatalabs_test.go b/pkg/detectors/peopledatalabs/peopledatalabs_test.go index 897eff200..81006a0c1 100644 --- a/pkg/detectors/peopledatalabs/peopledatalabs_test.go +++ b/pkg/detectors/peopledatalabs/peopledatalabs_test.go @@ -16,7 +16,7 @@ import ( func TestPeopleDataLabs_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pepipost/pepipost_test.go b/pkg/detectors/pepipost/pepipost_test.go index 8c4b5c52b..19a4150f5 100644 --- a/pkg/detectors/pepipost/pepipost_test.go +++ b/pkg/detectors/pepipost/pepipost_test.go @@ -16,7 +16,7 @@ import ( func TestPepipost_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pipedrive/pipedrive_test.go b/pkg/detectors/pipedrive/pipedrive_test.go index dc2e43d17..54e6659b8 100644 --- a/pkg/detectors/pipedrive/pipedrive_test.go +++ b/pkg/detectors/pipedrive/pipedrive_test.go @@ -16,7 +16,7 @@ import ( func TestPipedrive_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pivotaltracker/pivotaltracker_test.go b/pkg/detectors/pivotaltracker/pivotaltracker_test.go index 108035d3e..47ee42d18 100644 --- a/pkg/detectors/pivotaltracker/pivotaltracker_test.go +++ b/pkg/detectors/pivotaltracker/pivotaltracker_test.go @@ -15,7 +15,7 @@ import ( func TestPivotalTracker_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pixabay/pixabay_test.go b/pkg/detectors/pixabay/pixabay_test.go index 237d51256..51bf1d46b 100644 --- a/pkg/detectors/pixabay/pixabay_test.go +++ b/pkg/detectors/pixabay/pixabay_test.go @@ -16,7 +16,7 @@ import ( func TestPixabay_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/plaidkey/plaidkey_test.go b/pkg/detectors/plaidkey/plaidkey_test.go index 05173ec95..fdf7476ac 100644 --- a/pkg/detectors/plaidkey/plaidkey_test.go +++ b/pkg/detectors/plaidkey/plaidkey_test.go @@ -16,7 +16,7 @@ import ( func TestPlaidKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/planyo/planyo_test.go b/pkg/detectors/planyo/planyo_test.go index 0cc9515b1..f6a03e771 100644 --- a/pkg/detectors/planyo/planyo_test.go +++ b/pkg/detectors/planyo/planyo_test.go @@ -16,7 +16,7 @@ import ( func TestPlanyo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/plivo/plivo_test.go b/pkg/detectors/plivo/plivo_test.go index a9ad435bc..118e7387b 100644 --- a/pkg/detectors/plivo/plivo_test.go +++ b/pkg/detectors/plivo/plivo_test.go @@ -16,7 +16,7 @@ import ( func TestPlivo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/poloniex/poloniex_test.go b/pkg/detectors/poloniex/poloniex_test.go index b18a7d81e..9b096886b 100644 --- a/pkg/detectors/poloniex/poloniex_test.go +++ b/pkg/detectors/poloniex/poloniex_test.go @@ -16,7 +16,7 @@ import ( func TestPoloniex_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/polygon/polygon_test.go b/pkg/detectors/polygon/polygon_test.go index b2f35f3cc..cc3699789 100644 --- a/pkg/detectors/polygon/polygon_test.go +++ b/pkg/detectors/polygon/polygon_test.go @@ -16,7 +16,7 @@ import ( func TestPolygon_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/positionstack/positionstack_test.go b/pkg/detectors/positionstack/positionstack_test.go index 9970f338f..1fe02bb21 100644 --- a/pkg/detectors/positionstack/positionstack_test.go +++ b/pkg/detectors/positionstack/positionstack_test.go @@ -16,7 +16,7 @@ import ( func TestPositionStack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/postageapp/postageapp_test.go b/pkg/detectors/postageapp/postageapp_test.go index 43cc86cce..abfc5b91e 100644 --- a/pkg/detectors/postageapp/postageapp_test.go +++ b/pkg/detectors/postageapp/postageapp_test.go @@ -16,7 +16,7 @@ import ( func TestPostageApp_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/posthog/posthog_test.go b/pkg/detectors/posthog/posthog_test.go index dfc59b2e0..73657a675 100644 --- a/pkg/detectors/posthog/posthog_test.go +++ b/pkg/detectors/posthog/posthog_test.go @@ -16,7 +16,7 @@ import ( func TestAppPosthog_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/postman/postman_test.go b/pkg/detectors/postman/postman_test.go index 96cb842a6..b5d8d3478 100644 --- a/pkg/detectors/postman/postman_test.go +++ b/pkg/detectors/postman/postman_test.go @@ -16,7 +16,7 @@ import ( func TestPostman_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/postmark/postmark_test.go b/pkg/detectors/postmark/postmark_test.go index df2fe3082..870552bb3 100644 --- a/pkg/detectors/postmark/postmark_test.go +++ b/pkg/detectors/postmark/postmark_test.go @@ -16,7 +16,7 @@ import ( func TestPostmark_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/powrbot/powrbot_test.go b/pkg/detectors/powrbot/powrbot_test.go index db425cd19..25ae6d390 100644 --- a/pkg/detectors/powrbot/powrbot_test.go +++ b/pkg/detectors/powrbot/powrbot_test.go @@ -16,7 +16,7 @@ import ( func TestPowrbot_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/privatekey/privatekey_test.go b/pkg/detectors/privatekey/privatekey_test.go index 69eb583d9..41b94a1ab 100644 --- a/pkg/detectors/privatekey/privatekey_test.go +++ b/pkg/detectors/privatekey/privatekey_test.go @@ -17,7 +17,7 @@ import ( func TestPrivatekey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/prospectcrm/prospectcrm_test.go b/pkg/detectors/prospectcrm/prospectcrm_test.go index 97462fd29..939f52d4c 100644 --- a/pkg/detectors/prospectcrm/prospectcrm_test.go +++ b/pkg/detectors/prospectcrm/prospectcrm_test.go @@ -16,7 +16,7 @@ import ( func TestProspectCRM_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/prospectio/prospectio_test.go b/pkg/detectors/prospectio/prospectio_test.go index 4bed1b6cb..05f602950 100644 --- a/pkg/detectors/prospectio/prospectio_test.go +++ b/pkg/detectors/prospectio/prospectio_test.go @@ -16,7 +16,7 @@ import ( func TestProspectIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/protocolsio/protocolsio_test.go b/pkg/detectors/protocolsio/protocolsio_test.go index 2ac45a575..0f0e4b435 100644 --- a/pkg/detectors/protocolsio/protocolsio_test.go +++ b/pkg/detectors/protocolsio/protocolsio_test.go @@ -16,7 +16,7 @@ import ( func TestProtocolsIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/proxycrawl/proxycrawl_test.go b/pkg/detectors/proxycrawl/proxycrawl_test.go index b698ddfa1..fae8eb14c 100644 --- a/pkg/detectors/proxycrawl/proxycrawl_test.go +++ b/pkg/detectors/proxycrawl/proxycrawl_test.go @@ -16,7 +16,7 @@ import ( func TestProxyCrawl_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pubnubpublishkey/pubnubpublishkey_test.go b/pkg/detectors/pubnubpublishkey/pubnubpublishkey_test.go index d726d6367..f8f75578e 100644 --- a/pkg/detectors/pubnubpublishkey/pubnubpublishkey_test.go +++ b/pkg/detectors/pubnubpublishkey/pubnubpublishkey_test.go @@ -16,7 +16,7 @@ import ( func TestPubNubPublishKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey_test.go b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey_test.go index 407367f72..65f1f9edf 100644 --- a/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey_test.go +++ b/pkg/detectors/pubnubsubscriptionkey/pubnubsubscriptionkey_test.go @@ -16,7 +16,7 @@ import ( func TestPubNubSubscriptionKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/purestake/purestake_test.go b/pkg/detectors/purestake/purestake_test.go index 4a71605d8..fde90d8d8 100644 --- a/pkg/detectors/purestake/purestake_test.go +++ b/pkg/detectors/purestake/purestake_test.go @@ -16,7 +16,7 @@ import ( func TestPureStake_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pushbulletapikey/pushbulletapikey_test.go b/pkg/detectors/pushbulletapikey/pushbulletapikey_test.go index e561656ce..b05805b03 100644 --- a/pkg/detectors/pushbulletapikey/pushbulletapikey_test.go +++ b/pkg/detectors/pushbulletapikey/pushbulletapikey_test.go @@ -16,7 +16,7 @@ import ( func TestPushBulletApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/pusherchannelkey/pusherchannelkey_test.go b/pkg/detectors/pusherchannelkey/pusherchannelkey_test.go index c08238c8b..be028d0d3 100644 --- a/pkg/detectors/pusherchannelkey/pusherchannelkey_test.go +++ b/pkg/detectors/pusherchannelkey/pusherchannelkey_test.go @@ -16,7 +16,7 @@ import ( func TestPusherChannelKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/qualaroo/qualaroo_test.go b/pkg/detectors/qualaroo/qualaroo_test.go index ef0da1cfb..ea46b7b40 100644 --- a/pkg/detectors/qualaroo/qualaroo_test.go +++ b/pkg/detectors/qualaroo/qualaroo_test.go @@ -16,7 +16,7 @@ import ( func TestQualaroo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/qubole/qubole_test.go b/pkg/detectors/qubole/qubole_test.go index 831ccbc14..6f4b43871 100644 --- a/pkg/detectors/qubole/qubole_test.go +++ b/pkg/detectors/qubole/qubole_test.go @@ -16,7 +16,7 @@ import ( func TestQubole_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/quickmetrics/quickmetrics_test.go b/pkg/detectors/quickmetrics/quickmetrics_test.go index def32e287..23aa196a3 100644 --- a/pkg/detectors/quickmetrics/quickmetrics_test.go +++ b/pkg/detectors/quickmetrics/quickmetrics_test.go @@ -16,7 +16,7 @@ import ( func TestQuickMetrics_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/rapidapi/rapidapi_test.go b/pkg/detectors/rapidapi/rapidapi_test.go index 249b1a6be..1d794b28e 100644 --- a/pkg/detectors/rapidapi/rapidapi_test.go +++ b/pkg/detectors/rapidapi/rapidapi_test.go @@ -16,7 +16,7 @@ import ( func TestRapidApi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/raven/raven_test.go b/pkg/detectors/raven/raven_test.go index a7e72835c..1bebc264a 100644 --- a/pkg/detectors/raven/raven_test.go +++ b/pkg/detectors/raven/raven_test.go @@ -16,7 +16,7 @@ import ( func TestRaven_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/rawg/rawg_test.go b/pkg/detectors/rawg/rawg_test.go index fbb432c7c..6dce149f1 100644 --- a/pkg/detectors/rawg/rawg_test.go +++ b/pkg/detectors/rawg/rawg_test.go @@ -16,7 +16,7 @@ import ( func TestRawg_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/razorpay/razorpay_test.go b/pkg/detectors/razorpay/razorpay_test.go index 044bc3bc1..ae8e8edaf 100644 --- a/pkg/detectors/razorpay/razorpay_test.go +++ b/pkg/detectors/razorpay/razorpay_test.go @@ -16,7 +16,7 @@ import ( func TestRazorPay_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/readme/readme_test.go b/pkg/detectors/readme/readme_test.go index 1faaa9a95..d4598b749 100644 --- a/pkg/detectors/readme/readme_test.go +++ b/pkg/detectors/readme/readme_test.go @@ -16,7 +16,7 @@ import ( func TestReadMe_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/reallysimplesystems/reallysimplesystems_test.go b/pkg/detectors/reallysimplesystems/reallysimplesystems_test.go index eb6f60b6a..fd5ac91a3 100644 --- a/pkg/detectors/reallysimplesystems/reallysimplesystems_test.go +++ b/pkg/detectors/reallysimplesystems/reallysimplesystems_test.go @@ -16,7 +16,7 @@ import ( func TestReallySimpleSystems_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/rebrandly/rebrandly_test.go b/pkg/detectors/rebrandly/rebrandly_test.go index 3ce6e8c3c..580bd5d30 100644 --- a/pkg/detectors/rebrandly/rebrandly_test.go +++ b/pkg/detectors/rebrandly/rebrandly_test.go @@ -16,7 +16,7 @@ import ( func TestRebrandly_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/refiner/refiner_test.go b/pkg/detectors/refiner/refiner_test.go index 7b40ca67b..af88a9871 100644 --- a/pkg/detectors/refiner/refiner_test.go +++ b/pkg/detectors/refiner/refiner_test.go @@ -16,7 +16,7 @@ import ( func TestRefiner_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/restpack/restpack_test.go b/pkg/detectors/restpack/restpack_test.go index 6c95b79bf..1979f9685 100644 --- a/pkg/detectors/restpack/restpack_test.go +++ b/pkg/detectors/restpack/restpack_test.go @@ -16,7 +16,7 @@ import ( func TestRestpack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi_test.go b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi_test.go index 4ed21aa14..9cb3d0b70 100644 --- a/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi_test.go +++ b/pkg/detectors/restpackhtmltopdfapi/restpackhtmltopdfapi_test.go @@ -16,7 +16,7 @@ import ( func TestRestpackHtmlToPdfAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi_test.go b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi_test.go index 53e534eec..cf70ff2ad 100644 --- a/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi_test.go +++ b/pkg/detectors/restpackscreenshotapi/restpackscreenshotapi_test.go @@ -16,7 +16,7 @@ import ( func TestRestpackScreenshotAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/rev/rev_test.go b/pkg/detectors/rev/rev_test.go index 5cf2f27e0..a246967b0 100644 --- a/pkg/detectors/rev/rev_test.go +++ b/pkg/detectors/rev/rev_test.go @@ -16,7 +16,7 @@ import ( func TestRev_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/revampcrm/revampcrm_test.go b/pkg/detectors/revampcrm/revampcrm_test.go index cf514a2f5..dae099ef8 100644 --- a/pkg/detectors/revampcrm/revampcrm_test.go +++ b/pkg/detectors/revampcrm/revampcrm_test.go @@ -16,7 +16,7 @@ import ( func TestRevampCRM_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ringcentral/ringcentral_test.go b/pkg/detectors/ringcentral/ringcentral_test.go index 236a89fbf..d3884d423 100644 --- a/pkg/detectors/ringcentral/ringcentral_test.go +++ b/pkg/detectors/ringcentral/ringcentral_test.go @@ -16,7 +16,7 @@ import ( func TestRingcentral_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ritekit/ritekit_test.go b/pkg/detectors/ritekit/ritekit_test.go index 8457f895a..0f979d995 100644 --- a/pkg/detectors/ritekit/ritekit_test.go +++ b/pkg/detectors/ritekit/ritekit_test.go @@ -16,7 +16,7 @@ import ( func TestRiteKit_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/roaring/roaring_test.go b/pkg/detectors/roaring/roaring_test.go index 99e882e1b..e5d5a3246 100644 --- a/pkg/detectors/roaring/roaring_test.go +++ b/pkg/detectors/roaring/roaring_test.go @@ -16,7 +16,7 @@ import ( func TestRoaring_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/rocketreach/rocketreach_test.go b/pkg/detectors/rocketreach/rocketreach_test.go index f6d6fe658..4a57ddb0d 100644 --- a/pkg/detectors/rocketreach/rocketreach_test.go +++ b/pkg/detectors/rocketreach/rocketreach_test.go @@ -16,7 +16,7 @@ import ( func TestRocketReach_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/roninapp/roninapp_test.go b/pkg/detectors/roninapp/roninapp_test.go index 0c5e2e51c..6143019a5 100644 --- a/pkg/detectors/roninapp/roninapp_test.go +++ b/pkg/detectors/roninapp/roninapp_test.go @@ -16,7 +16,7 @@ import ( func TestRoninApp_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/route4me/route4me_test.go b/pkg/detectors/route4me/route4me_test.go index 8948678ad..53ff083cc 100644 --- a/pkg/detectors/route4me/route4me_test.go +++ b/pkg/detectors/route4me/route4me_test.go @@ -16,7 +16,7 @@ import ( func TestRoute4me_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/rubygems/rubygems_test.go b/pkg/detectors/rubygems/rubygems_test.go index 537d9d541..05874ff8e 100644 --- a/pkg/detectors/rubygems/rubygems_test.go +++ b/pkg/detectors/rubygems/rubygems_test.go @@ -16,7 +16,7 @@ import ( func TestRubyGems_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/runrunit/runrunit_test.go b/pkg/detectors/runrunit/runrunit_test.go index 8ec12b7b8..4033dad53 100644 --- a/pkg/detectors/runrunit/runrunit_test.go +++ b/pkg/detectors/runrunit/runrunit_test.go @@ -16,7 +16,7 @@ import ( func TestRunRunIt_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/salesblink/salesblink_test.go b/pkg/detectors/salesblink/salesblink_test.go index 249655e1d..d05d0606f 100644 --- a/pkg/detectors/salesblink/salesblink_test.go +++ b/pkg/detectors/salesblink/salesblink_test.go @@ -16,7 +16,7 @@ import ( func TestSalesblink_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/salescookie/salescookie_test.go b/pkg/detectors/salescookie/salescookie_test.go index 34438d908..edc478d33 100644 --- a/pkg/detectors/salescookie/salescookie_test.go +++ b/pkg/detectors/salescookie/salescookie_test.go @@ -16,7 +16,7 @@ import ( func TestSalescookie_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/salesflare/salesflare_test.go b/pkg/detectors/salesflare/salesflare_test.go index f948f7daa..d634e6e56 100644 --- a/pkg/detectors/salesflare/salesflare_test.go +++ b/pkg/detectors/salesflare/salesflare_test.go @@ -16,7 +16,7 @@ import ( func TestSalesflare_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/satismeterprojectkey/satismeterprojectkey_test.go b/pkg/detectors/satismeterprojectkey/satismeterprojectkey_test.go index a8544379c..05706f2cf 100644 --- a/pkg/detectors/satismeterprojectkey/satismeterprojectkey_test.go +++ b/pkg/detectors/satismeterprojectkey/satismeterprojectkey_test.go @@ -16,7 +16,7 @@ import ( func TestSatismeterProjectkey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/satismeterwritekey/satismeterwritekey_test.go b/pkg/detectors/satismeterwritekey/satismeterwritekey_test.go index 6f23f0ab6..53558b1e7 100644 --- a/pkg/detectors/satismeterwritekey/satismeterwritekey_test.go +++ b/pkg/detectors/satismeterwritekey/satismeterwritekey_test.go @@ -16,7 +16,7 @@ import ( func TestSatismeterWritekey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/saucelabs/saucelabs_test.go b/pkg/detectors/saucelabs/saucelabs_test.go index 991e8524c..fd842d2e2 100644 --- a/pkg/detectors/saucelabs/saucelabs_test.go +++ b/pkg/detectors/saucelabs/saucelabs_test.go @@ -16,7 +16,7 @@ import ( func TestSauceLabs_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/scalewaykey/scalewaykey_test.go b/pkg/detectors/scalewaykey/scalewaykey_test.go index ab86cfaa9..78e11220a 100644 --- a/pkg/detectors/scalewaykey/scalewaykey_test.go +++ b/pkg/detectors/scalewaykey/scalewaykey_test.go @@ -16,7 +16,7 @@ import ( func TestScalewayKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/scrapeowl/scrapeowl_test.go b/pkg/detectors/scrapeowl/scrapeowl_test.go index f73b17e9b..0a62d2a88 100644 --- a/pkg/detectors/scrapeowl/scrapeowl_test.go +++ b/pkg/detectors/scrapeowl/scrapeowl_test.go @@ -16,7 +16,7 @@ import ( func TestScrapeowl_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/scraperapi/scraperapi_test.go b/pkg/detectors/scraperapi/scraperapi_test.go index 761ea7c97..b03657c24 100644 --- a/pkg/detectors/scraperapi/scraperapi_test.go +++ b/pkg/detectors/scraperapi/scraperapi_test.go @@ -16,7 +16,7 @@ import ( func TestScraperAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/scraperbox/scraperbox_test.go b/pkg/detectors/scraperbox/scraperbox_test.go index 27d613081..870c98a9c 100644 --- a/pkg/detectors/scraperbox/scraperbox_test.go +++ b/pkg/detectors/scraperbox/scraperbox_test.go @@ -16,7 +16,7 @@ import ( func TestScraperBox_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/scrapersite/scrapersite_test.go b/pkg/detectors/scrapersite/scrapersite_test.go index b02b792db..74faca2bf 100644 --- a/pkg/detectors/scrapersite/scrapersite_test.go +++ b/pkg/detectors/scrapersite/scrapersite_test.go @@ -16,7 +16,7 @@ import ( func TestScraperSite_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/scrapestack/scrapestack_test.go b/pkg/detectors/scrapestack/scrapestack_test.go index b4b3f3b1e..27e696315 100644 --- a/pkg/detectors/scrapestack/scrapestack_test.go +++ b/pkg/detectors/scrapestack/scrapestack_test.go @@ -16,7 +16,7 @@ import ( func TestScrapeStack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/scrapfly/scrapfly_test.go b/pkg/detectors/scrapfly/scrapfly_test.go index d77cddaa3..a29b8f3d1 100644 --- a/pkg/detectors/scrapfly/scrapfly_test.go +++ b/pkg/detectors/scrapfly/scrapfly_test.go @@ -16,7 +16,7 @@ import ( func TestScrapfly_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/scrapingant/scrapingant_test.go b/pkg/detectors/scrapingant/scrapingant_test.go index cffe0e438..00770844b 100644 --- a/pkg/detectors/scrapingant/scrapingant_test.go +++ b/pkg/detectors/scrapingant/scrapingant_test.go @@ -16,7 +16,7 @@ import ( func TestScrapingAnt_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/scrapingbee/scrapingbee_test.go b/pkg/detectors/scrapingbee/scrapingbee_test.go index 823d0c71a..722278591 100644 --- a/pkg/detectors/scrapingbee/scrapingbee_test.go +++ b/pkg/detectors/scrapingbee/scrapingbee_test.go @@ -16,7 +16,7 @@ import ( func TestScrapingBee_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/screenshotapi/screenshotapi_test.go b/pkg/detectors/screenshotapi/screenshotapi_test.go index 1047f28ad..710dc5bc5 100644 --- a/pkg/detectors/screenshotapi/screenshotapi_test.go +++ b/pkg/detectors/screenshotapi/screenshotapi_test.go @@ -16,7 +16,7 @@ import ( func TestScreenshotAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/screenshotlayer/screenshotlayer_test.go b/pkg/detectors/screenshotlayer/screenshotlayer_test.go index d4ef95767..71c3cd4fd 100644 --- a/pkg/detectors/screenshotlayer/screenshotlayer_test.go +++ b/pkg/detectors/screenshotlayer/screenshotlayer_test.go @@ -16,7 +16,7 @@ import ( func TestScreenshotLayer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/securitytrails/securitytrails_test.go b/pkg/detectors/securitytrails/securitytrails_test.go index 25534688d..224448e55 100644 --- a/pkg/detectors/securitytrails/securitytrails_test.go +++ b/pkg/detectors/securitytrails/securitytrails_test.go @@ -16,7 +16,7 @@ import ( func TestSecurityTrails_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/segmentapikey/segmentapikey_test.go b/pkg/detectors/segmentapikey/segmentapikey_test.go index 4e8789e25..cc71f9243 100644 --- a/pkg/detectors/segmentapikey/segmentapikey_test.go +++ b/pkg/detectors/segmentapikey/segmentapikey_test.go @@ -16,7 +16,7 @@ import ( func TestSegmentApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/selectpdf/selectpdf_test.go b/pkg/detectors/selectpdf/selectpdf_test.go index fedaa56a3..7fe812b7d 100644 --- a/pkg/detectors/selectpdf/selectpdf_test.go +++ b/pkg/detectors/selectpdf/selectpdf_test.go @@ -16,7 +16,7 @@ import ( func TestSelectPDF_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/semaphore/semaphore_test.go b/pkg/detectors/semaphore/semaphore_test.go index 78fcc35f0..f22dcbb0d 100644 --- a/pkg/detectors/semaphore/semaphore_test.go +++ b/pkg/detectors/semaphore/semaphore_test.go @@ -16,7 +16,7 @@ import ( func TestSemaphore_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sendgrid/sendgrid_test.go b/pkg/detectors/sendgrid/sendgrid_test.go index 6f200b932..36f4ca1d1 100644 --- a/pkg/detectors/sendgrid/sendgrid_test.go +++ b/pkg/detectors/sendgrid/sendgrid_test.go @@ -15,7 +15,7 @@ import ( func TestSendgrid_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sendinbluev2/sendinbluev2_test.go b/pkg/detectors/sendinbluev2/sendinbluev2_test.go index 39d9b2944..cfd255f7a 100644 --- a/pkg/detectors/sendinbluev2/sendinbluev2_test.go +++ b/pkg/detectors/sendinbluev2/sendinbluev2_test.go @@ -16,7 +16,7 @@ import ( func TestSendinBlueV2_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sentiment/sentiment_test.go b/pkg/detectors/sentiment/sentiment_test.go index d36bea3c2..23ecbfa63 100644 --- a/pkg/detectors/sentiment/sentiment_test.go +++ b/pkg/detectors/sentiment/sentiment_test.go @@ -16,7 +16,7 @@ import ( func TestSentiment_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sentrytoken/sentrytoken_test.go b/pkg/detectors/sentrytoken/sentrytoken_test.go index 3b5974938..f8b9b85df 100644 --- a/pkg/detectors/sentrytoken/sentrytoken_test.go +++ b/pkg/detectors/sentrytoken/sentrytoken_test.go @@ -16,7 +16,7 @@ import ( func TestSentryToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/serphouse/serphouse_test.go b/pkg/detectors/serphouse/serphouse_test.go index 286af4244..0542b6219 100644 --- a/pkg/detectors/serphouse/serphouse_test.go +++ b/pkg/detectors/serphouse/serphouse_test.go @@ -16,7 +16,7 @@ import ( func TestSerphouse_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/serpstack/serpstack_test.go b/pkg/detectors/serpstack/serpstack_test.go index 5d24ad323..a51c47551 100644 --- a/pkg/detectors/serpstack/serpstack_test.go +++ b/pkg/detectors/serpstack/serpstack_test.go @@ -16,7 +16,7 @@ import ( func TestSerpStack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sheety/sheety_test.go b/pkg/detectors/sheety/sheety_test.go index efc6fcf7f..e96787116 100644 --- a/pkg/detectors/sheety/sheety_test.go +++ b/pkg/detectors/sheety/sheety_test.go @@ -16,7 +16,7 @@ import ( func TestSheety_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sherpadesk/sherpadesk_test.go b/pkg/detectors/sherpadesk/sherpadesk_test.go index d37ee8a44..f41b53aa8 100644 --- a/pkg/detectors/sherpadesk/sherpadesk_test.go +++ b/pkg/detectors/sherpadesk/sherpadesk_test.go @@ -16,7 +16,7 @@ import ( func TestSherpadesk_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/shipday/shipday_test.go b/pkg/detectors/shipday/shipday_test.go index 9de7095b5..a25760f14 100644 --- a/pkg/detectors/shipday/shipday_test.go +++ b/pkg/detectors/shipday/shipday_test.go @@ -16,7 +16,7 @@ import ( func TestShipday_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/shodankey/shodankey_test.go b/pkg/detectors/shodankey/shodankey_test.go index 637e1528b..f1718e807 100644 --- a/pkg/detectors/shodankey/shodankey_test.go +++ b/pkg/detectors/shodankey/shodankey_test.go @@ -16,7 +16,7 @@ import ( func TestShodanKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/shortcut/shortcut_test.go b/pkg/detectors/shortcut/shortcut_test.go index 92463f2be..0e3c52fd1 100644 --- a/pkg/detectors/shortcut/shortcut_test.go +++ b/pkg/detectors/shortcut/shortcut_test.go @@ -16,7 +16,7 @@ import ( func TestShortcut_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/shotstack/shotstack_test.go b/pkg/detectors/shotstack/shotstack_test.go index 5c97d6de1..5440efb89 100644 --- a/pkg/detectors/shotstack/shotstack_test.go +++ b/pkg/detectors/shotstack/shotstack_test.go @@ -16,7 +16,7 @@ import ( func TestShotstack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/shutterstock/shutterstock_test.go b/pkg/detectors/shutterstock/shutterstock_test.go index ef3f621e9..11c3c0f9f 100644 --- a/pkg/detectors/shutterstock/shutterstock_test.go +++ b/pkg/detectors/shutterstock/shutterstock_test.go @@ -16,7 +16,7 @@ import ( func TestShutterstock_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/shutterstockoauth/shutterstockoauth_test.go b/pkg/detectors/shutterstockoauth/shutterstockoauth_test.go index ea4e6deda..a4cbbe092 100644 --- a/pkg/detectors/shutterstockoauth/shutterstockoauth_test.go +++ b/pkg/detectors/shutterstockoauth/shutterstockoauth_test.go @@ -16,7 +16,7 @@ import ( func TestShutterstockOAuth_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/signalwire/signalwire_test.go b/pkg/detectors/signalwire/signalwire_test.go index e04494654..2e6159557 100644 --- a/pkg/detectors/signalwire/signalwire_test.go +++ b/pkg/detectors/signalwire/signalwire_test.go @@ -16,7 +16,7 @@ import ( func TestSignalwire_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/signaturit/signaturit_test.go b/pkg/detectors/signaturit/signaturit_test.go index 092f9a20d..fb00e69c6 100644 --- a/pkg/detectors/signaturit/signaturit_test.go +++ b/pkg/detectors/signaturit/signaturit_test.go @@ -16,7 +16,7 @@ import ( func TestSignaturit_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/signupgenius/signupgenius_test.go b/pkg/detectors/signupgenius/signupgenius_test.go index 475fb3d23..e9cc61adc 100644 --- a/pkg/detectors/signupgenius/signupgenius_test.go +++ b/pkg/detectors/signupgenius/signupgenius_test.go @@ -16,7 +16,7 @@ import ( func TestSignupgenius_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sigopt/sigopt_test.go b/pkg/detectors/sigopt/sigopt_test.go index 790e3d887..f2b5a7366 100644 --- a/pkg/detectors/sigopt/sigopt_test.go +++ b/pkg/detectors/sigopt/sigopt_test.go @@ -16,7 +16,7 @@ import ( func TestSigopt_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/simplesat/simplesat_test.go b/pkg/detectors/simplesat/simplesat_test.go index 32effb8a9..831843c08 100644 --- a/pkg/detectors/simplesat/simplesat_test.go +++ b/pkg/detectors/simplesat/simplesat_test.go @@ -16,7 +16,7 @@ import ( func TestSimplesat_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/simplynoted/simplynoted_test.go b/pkg/detectors/simplynoted/simplynoted_test.go index bde78b987..f0a7545c6 100644 --- a/pkg/detectors/simplynoted/simplynoted_test.go +++ b/pkg/detectors/simplynoted/simplynoted_test.go @@ -16,7 +16,7 @@ import ( func TestSimplyNoted_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/simvoly/simvoly_test.go b/pkg/detectors/simvoly/simvoly_test.go index a2643a7de..ca9b7fef0 100644 --- a/pkg/detectors/simvoly/simvoly_test.go +++ b/pkg/detectors/simvoly/simvoly_test.go @@ -16,7 +16,7 @@ import ( func TestSimvoly_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sinchmessage/sinchmessage_test.go b/pkg/detectors/sinchmessage/sinchmessage_test.go index 0b2ddf2ce..b483e5166 100644 --- a/pkg/detectors/sinchmessage/sinchmessage_test.go +++ b/pkg/detectors/sinchmessage/sinchmessage_test.go @@ -16,7 +16,7 @@ import ( func TestSinchMessage_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/siteleaf/siteleaf_test.go b/pkg/detectors/siteleaf/siteleaf_test.go index 4e016a014..9dd14f76a 100644 --- a/pkg/detectors/siteleaf/siteleaf_test.go +++ b/pkg/detectors/siteleaf/siteleaf_test.go @@ -16,7 +16,7 @@ import ( func TestSiteleaf_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/skrappio/skrappio_test.go b/pkg/detectors/skrappio/skrappio_test.go index e94a68092..986d7d9f3 100644 --- a/pkg/detectors/skrappio/skrappio_test.go +++ b/pkg/detectors/skrappio/skrappio_test.go @@ -16,7 +16,7 @@ import ( func TestSkrapio_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/skybiometry/skybiometry_test.go b/pkg/detectors/skybiometry/skybiometry_test.go index 3e4deaa8a..1ec7a1e33 100644 --- a/pkg/detectors/skybiometry/skybiometry_test.go +++ b/pkg/detectors/skybiometry/skybiometry_test.go @@ -16,7 +16,7 @@ import ( func TestSkyBiometry_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/slack/slack_test.go b/pkg/detectors/slack/slack_test.go index f246abb2a..2b027b596 100644 --- a/pkg/detectors/slack/slack_test.go +++ b/pkg/detectors/slack/slack_test.go @@ -15,7 +15,7 @@ import ( func TestScanner_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/slackwebhook/slackwebhook_test.go b/pkg/detectors/slackwebhook/slackwebhook_test.go index e62e02f58..94f389550 100644 --- a/pkg/detectors/slackwebhook/slackwebhook_test.go +++ b/pkg/detectors/slackwebhook/slackwebhook_test.go @@ -16,7 +16,7 @@ import ( func TestSlackWebhook_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/smartsheets/smartsheets_test.go b/pkg/detectors/smartsheets/smartsheets_test.go index 2a2fcbb7e..e3e54f906 100644 --- a/pkg/detectors/smartsheets/smartsheets_test.go +++ b/pkg/detectors/smartsheets/smartsheets_test.go @@ -16,7 +16,7 @@ import ( func TestSmartsheets_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/smartystreets/smartystreets_test.go b/pkg/detectors/smartystreets/smartystreets_test.go index 997665019..00a483693 100644 --- a/pkg/detectors/smartystreets/smartystreets_test.go +++ b/pkg/detectors/smartystreets/smartystreets_test.go @@ -16,7 +16,7 @@ import ( func TestSmartyStreets_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/smooch/smooch_test.go b/pkg/detectors/smooch/smooch_test.go index 2ee3a326d..f53f05397 100644 --- a/pkg/detectors/smooch/smooch_test.go +++ b/pkg/detectors/smooch/smooch_test.go @@ -16,7 +16,7 @@ import ( func TestSmooch_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/snipcart/snipcart_test.go b/pkg/detectors/snipcart/snipcart_test.go index 87dd37896..5e3dce9e3 100644 --- a/pkg/detectors/snipcart/snipcart_test.go +++ b/pkg/detectors/snipcart/snipcart_test.go @@ -16,7 +16,7 @@ import ( func TestSnipcart_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/snykkey/snykkey_test.go b/pkg/detectors/snykkey/snykkey_test.go index a9bcc5170..bd0e87bb2 100644 --- a/pkg/detectors/snykkey/snykkey_test.go +++ b/pkg/detectors/snykkey/snykkey_test.go @@ -16,7 +16,7 @@ import ( func TestSnykKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sparkpost/sparkpost_test.go b/pkg/detectors/sparkpost/sparkpost_test.go index e385ddaad..9205acd6e 100644 --- a/pkg/detectors/sparkpost/sparkpost_test.go +++ b/pkg/detectors/sparkpost/sparkpost_test.go @@ -16,7 +16,7 @@ import ( func TestSparkpost_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken_test.go b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken_test.go index 30ae3ff32..c0061739e 100644 --- a/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken_test.go +++ b/pkg/detectors/splunkobservabilitytoken/splunkobservabilitytoken_test.go @@ -16,7 +16,7 @@ import ( func TestSplunkObservabilityToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/spoonacular/spoonacular_test.go b/pkg/detectors/spoonacular/spoonacular_test.go index 243cf0f5c..209a10dc9 100644 --- a/pkg/detectors/spoonacular/spoonacular_test.go +++ b/pkg/detectors/spoonacular/spoonacular_test.go @@ -16,7 +16,7 @@ import ( func TestSpoonacular_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sportsmonk/sportsmonk_test.go b/pkg/detectors/sportsmonk/sportsmonk_test.go index 7ac5a673e..f75f48f92 100644 --- a/pkg/detectors/sportsmonk/sportsmonk_test.go +++ b/pkg/detectors/sportsmonk/sportsmonk_test.go @@ -16,7 +16,7 @@ import ( func TestSportsmonk_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/spotifykey/spotifykey_test.go b/pkg/detectors/spotifykey/spotifykey_test.go index 98aeea7a7..9c409c0f0 100644 --- a/pkg/detectors/spotifykey/spotifykey_test.go +++ b/pkg/detectors/spotifykey/spotifykey_test.go @@ -16,7 +16,7 @@ import ( func TestSpotifyKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/square/square_test.go b/pkg/detectors/square/square_test.go index 91e4ab20d..4f3c8803e 100644 --- a/pkg/detectors/square/square_test.go +++ b/pkg/detectors/square/square_test.go @@ -15,7 +15,7 @@ import ( func TestSquare_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/squareapp/squareapp_test.go b/pkg/detectors/squareapp/squareapp_test.go index 3b31c0238..b232e8d9e 100644 --- a/pkg/detectors/squareapp/squareapp_test.go +++ b/pkg/detectors/squareapp/squareapp_test.go @@ -15,7 +15,7 @@ import ( func TestSquareApp_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/squarespace/squarespace_test.go b/pkg/detectors/squarespace/squarespace_test.go index bfe9e5a8d..7b8eebd5d 100644 --- a/pkg/detectors/squarespace/squarespace_test.go +++ b/pkg/detectors/squarespace/squarespace_test.go @@ -16,7 +16,7 @@ import ( func TestSquarespace_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/squareup/squareup_test.go b/pkg/detectors/squareup/squareup_test.go index f058e798d..6d0ec9d43 100644 --- a/pkg/detectors/squareup/squareup_test.go +++ b/pkg/detectors/squareup/squareup_test.go @@ -16,7 +16,7 @@ import ( func TestSquareup_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sslmate/sslmate_test.go b/pkg/detectors/sslmate/sslmate_test.go index 8be7c3bee..3a197a485 100644 --- a/pkg/detectors/sslmate/sslmate_test.go +++ b/pkg/detectors/sslmate/sslmate_test.go @@ -16,7 +16,7 @@ import ( func TestSslMate_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/stitchdata/stitchdata_test.go b/pkg/detectors/stitchdata/stitchdata_test.go index 2a020fbbc..68d485ce6 100644 --- a/pkg/detectors/stitchdata/stitchdata_test.go +++ b/pkg/detectors/stitchdata/stitchdata_test.go @@ -16,7 +16,7 @@ import ( func TestStitchdata_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/stockdata/stockdata_test.go b/pkg/detectors/stockdata/stockdata_test.go index 5faf33b4f..b135c5b84 100644 --- a/pkg/detectors/stockdata/stockdata_test.go +++ b/pkg/detectors/stockdata/stockdata_test.go @@ -16,7 +16,7 @@ import ( func TestStockdata_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/storecove/storecove_test.go b/pkg/detectors/storecove/storecove_test.go index 843aec606..bcfec2cec 100644 --- a/pkg/detectors/storecove/storecove_test.go +++ b/pkg/detectors/storecove/storecove_test.go @@ -16,7 +16,7 @@ import ( func TestStorecove_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/stormglass/stormglass_test.go b/pkg/detectors/stormglass/stormglass_test.go index e14d2bed0..ab518a2ec 100644 --- a/pkg/detectors/stormglass/stormglass_test.go +++ b/pkg/detectors/stormglass/stormglass_test.go @@ -16,7 +16,7 @@ import ( func TestStormglass_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/storyblok/storyblok_test.go b/pkg/detectors/storyblok/storyblok_test.go index 90ef9a5d2..42e1e3fc2 100644 --- a/pkg/detectors/storyblok/storyblok_test.go +++ b/pkg/detectors/storyblok/storyblok_test.go @@ -16,7 +16,7 @@ import ( func TestStoryblok_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/storychief/storychief_test.go b/pkg/detectors/storychief/storychief_test.go index 71e4fd8fb..e4995e778 100644 --- a/pkg/detectors/storychief/storychief_test.go +++ b/pkg/detectors/storychief/storychief_test.go @@ -16,7 +16,7 @@ import ( func TestStorychief_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/strava/strava_test.go b/pkg/detectors/strava/strava_test.go index 5737d6ed1..b0456de8a 100644 --- a/pkg/detectors/strava/strava_test.go +++ b/pkg/detectors/strava/strava_test.go @@ -16,7 +16,7 @@ import ( func TestStrava_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/streak/streak_test.go b/pkg/detectors/streak/streak_test.go index 922410f66..9a75a3f88 100644 --- a/pkg/detectors/streak/streak_test.go +++ b/pkg/detectors/streak/streak_test.go @@ -16,7 +16,7 @@ import ( func TestStreak_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/stripe/stripe_test.go b/pkg/detectors/stripe/stripe_test.go index a662908c5..d440cff7c 100644 --- a/pkg/detectors/stripe/stripe_test.go +++ b/pkg/detectors/stripe/stripe_test.go @@ -15,7 +15,7 @@ import ( func TestStripe_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/stytch/stytch_test.go b/pkg/detectors/stytch/stytch_test.go index 1e3166e07..86b5e0aa0 100644 --- a/pkg/detectors/stytch/stytch_test.go +++ b/pkg/detectors/stytch/stytch_test.go @@ -16,7 +16,7 @@ import ( func TestStytch_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/sumologickey/sumologickey_test.go b/pkg/detectors/sumologickey/sumologickey_test.go index 0601376bb..982d4acae 100644 --- a/pkg/detectors/sumologickey/sumologickey_test.go +++ b/pkg/detectors/sumologickey/sumologickey_test.go @@ -16,7 +16,7 @@ import ( func TestSumoLogicKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/surveyanyplace/surveyanyplace_test.go b/pkg/detectors/surveyanyplace/surveyanyplace_test.go index a99b81f26..d8d5f23df 100644 --- a/pkg/detectors/surveyanyplace/surveyanyplace_test.go +++ b/pkg/detectors/surveyanyplace/surveyanyplace_test.go @@ -16,7 +16,7 @@ import ( func TestSurveyAnyplace_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/surveybot/surveybot_test.go b/pkg/detectors/surveybot/surveybot_test.go index 26ac01af0..10127cf16 100644 --- a/pkg/detectors/surveybot/surveybot_test.go +++ b/pkg/detectors/surveybot/surveybot_test.go @@ -16,7 +16,7 @@ import ( func TestSurveyBot_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/surveysparrow/surveysparrow_test.go b/pkg/detectors/surveysparrow/surveysparrow_test.go index c95f9a16e..60927e51d 100644 --- a/pkg/detectors/surveysparrow/surveysparrow_test.go +++ b/pkg/detectors/surveysparrow/surveysparrow_test.go @@ -16,7 +16,7 @@ import ( func TestSurveySparrow_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/survicate/survicate_test.go b/pkg/detectors/survicate/survicate_test.go index edbacc838..effb6b217 100644 --- a/pkg/detectors/survicate/survicate_test.go +++ b/pkg/detectors/survicate/survicate_test.go @@ -16,7 +16,7 @@ import ( func TestSurvicate_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/swell/swell_test.go b/pkg/detectors/swell/swell_test.go index 0c7a0ee94..190fa9be7 100644 --- a/pkg/detectors/swell/swell_test.go +++ b/pkg/detectors/swell/swell_test.go @@ -16,7 +16,7 @@ import ( func TestSwell_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/swiftype/swiftype_test.go b/pkg/detectors/swiftype/swiftype_test.go index e73a90102..4110d8647 100644 --- a/pkg/detectors/swiftype/swiftype_test.go +++ b/pkg/detectors/swiftype/swiftype_test.go @@ -16,7 +16,7 @@ import ( func TestSwiftype_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/tatumio/tatumio_test.go b/pkg/detectors/tatumio/tatumio_test.go index 42cad08c7..5a7a6ec11 100644 --- a/pkg/detectors/tatumio/tatumio_test.go +++ b/pkg/detectors/tatumio/tatumio_test.go @@ -16,7 +16,7 @@ import ( func TestTatumIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/taxjar/taxjar_test.go b/pkg/detectors/taxjar/taxjar_test.go index aeafca024..cc40cf4cb 100644 --- a/pkg/detectors/taxjar/taxjar_test.go +++ b/pkg/detectors/taxjar/taxjar_test.go @@ -16,7 +16,7 @@ import ( func TestTaxjar_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/teamgate/teamgate_test.go b/pkg/detectors/teamgate/teamgate_test.go index e0b943268..73bed825c 100644 --- a/pkg/detectors/teamgate/teamgate_test.go +++ b/pkg/detectors/teamgate/teamgate_test.go @@ -16,7 +16,7 @@ import ( func TestTeamgate_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/technicalanalysisapi/technicalanalysisapi_test.go b/pkg/detectors/technicalanalysisapi/technicalanalysisapi_test.go index 1805f9c38..98fa69e93 100644 --- a/pkg/detectors/technicalanalysisapi/technicalanalysisapi_test.go +++ b/pkg/detectors/technicalanalysisapi/technicalanalysisapi_test.go @@ -16,7 +16,7 @@ import ( func TestTechnicalAnalysisApi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/telegrambottoken/telegrambottoken_test.go b/pkg/detectors/telegrambottoken/telegrambottoken_test.go index a69a065ec..d3347eb2c 100644 --- a/pkg/detectors/telegrambottoken/telegrambottoken_test.go +++ b/pkg/detectors/telegrambottoken/telegrambottoken_test.go @@ -16,7 +16,7 @@ import ( func TestTelegramBotToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/telnyx/telnyx_test.go b/pkg/detectors/telnyx/telnyx_test.go index e41bde4f2..0f7088a16 100644 --- a/pkg/detectors/telnyx/telnyx_test.go +++ b/pkg/detectors/telnyx/telnyx_test.go @@ -16,7 +16,7 @@ import ( func TestTelnyx_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go index c1124b5ee..fa00961ea 100644 --- a/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go +++ b/pkg/detectors/terraformcloudpersonaltoken/terraformcloudpersonaltoken_test.go @@ -16,7 +16,7 @@ import ( func TestTerraformCloudPersonalToken_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/text2data/text2data_test.go b/pkg/detectors/text2data/text2data_test.go index 6685227d2..cc0d2bd98 100644 --- a/pkg/detectors/text2data/text2data_test.go +++ b/pkg/detectors/text2data/text2data_test.go @@ -16,7 +16,7 @@ import ( func TestText2Data_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/textmagic/textmagic_test.go b/pkg/detectors/textmagic/textmagic_test.go index 26d8f52ba..db5462d74 100644 --- a/pkg/detectors/textmagic/textmagic_test.go +++ b/pkg/detectors/textmagic/textmagic_test.go @@ -16,7 +16,7 @@ import ( func TestTextmagic_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/thinkific/thinkific_test.go b/pkg/detectors/thinkific/thinkific_test.go index 4c308ae3a..cf15ef4d5 100644 --- a/pkg/detectors/thinkific/thinkific_test.go +++ b/pkg/detectors/thinkific/thinkific_test.go @@ -16,7 +16,7 @@ import ( func TestThinkific_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/thousandeyes/thousandeyes_test.go b/pkg/detectors/thousandeyes/thousandeyes_test.go index 421a8ff68..27093ff38 100644 --- a/pkg/detectors/thousandeyes/thousandeyes_test.go +++ b/pkg/detectors/thousandeyes/thousandeyes_test.go @@ -16,7 +16,7 @@ import ( func TestThousandEyes_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ticketmaster/ticketmaster_test.go b/pkg/detectors/ticketmaster/ticketmaster_test.go index a37b1436a..c3871bbf4 100644 --- a/pkg/detectors/ticketmaster/ticketmaster_test.go +++ b/pkg/detectors/ticketmaster/ticketmaster_test.go @@ -16,7 +16,7 @@ import ( func TestTicketMaster_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/tiingo/tiingo_test.go b/pkg/detectors/tiingo/tiingo_test.go index 919f1d163..5a2d32251 100644 --- a/pkg/detectors/tiingo/tiingo_test.go +++ b/pkg/detectors/tiingo/tiingo_test.go @@ -16,7 +16,7 @@ import ( func TestTiingo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/timezoneapi/timezoneapi_test.go b/pkg/detectors/timezoneapi/timezoneapi_test.go index 45551609e..9ffae3485 100644 --- a/pkg/detectors/timezoneapi/timezoneapi_test.go +++ b/pkg/detectors/timezoneapi/timezoneapi_test.go @@ -16,7 +16,7 @@ import ( func TestTimezoneapi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/tly/tly_test.go b/pkg/detectors/tly/tly_test.go index a7c4d8f16..ca805644b 100644 --- a/pkg/detectors/tly/tly_test.go +++ b/pkg/detectors/tly/tly_test.go @@ -16,7 +16,7 @@ import ( func TestTLy_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/tmetric/tmetric_test.go b/pkg/detectors/tmetric/tmetric_test.go index a7e548557..da18f6019 100644 --- a/pkg/detectors/tmetric/tmetric_test.go +++ b/pkg/detectors/tmetric/tmetric_test.go @@ -16,7 +16,7 @@ import ( func TestTmetric_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/todoist/todoist_test.go b/pkg/detectors/todoist/todoist_test.go index b98bb3d0c..9fcfcefb9 100644 --- a/pkg/detectors/todoist/todoist_test.go +++ b/pkg/detectors/todoist/todoist_test.go @@ -16,7 +16,7 @@ import ( func TestTodoist_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/toggltrack/toggltrack_test.go b/pkg/detectors/toggltrack/toggltrack_test.go index 10b39f948..32c9f342b 100644 --- a/pkg/detectors/toggltrack/toggltrack_test.go +++ b/pkg/detectors/toggltrack/toggltrack_test.go @@ -16,7 +16,7 @@ import ( func TestTogglTrack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/tomorrowio/tomorrowio_test.go b/pkg/detectors/tomorrowio/tomorrowio_test.go index cf407b8c3..1d223332a 100644 --- a/pkg/detectors/tomorrowio/tomorrowio_test.go +++ b/pkg/detectors/tomorrowio/tomorrowio_test.go @@ -16,7 +16,7 @@ import ( func TestTomorrowIO_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/tomtom/tomtom_test.go b/pkg/detectors/tomtom/tomtom_test.go index 86423e734..484b09cc8 100644 --- a/pkg/detectors/tomtom/tomtom_test.go +++ b/pkg/detectors/tomtom/tomtom_test.go @@ -16,7 +16,7 @@ import ( func TestTomtom_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/tradier/tradier_test.go b/pkg/detectors/tradier/tradier_test.go index 289299697..51cd45f15 100644 --- a/pkg/detectors/tradier/tradier_test.go +++ b/pkg/detectors/tradier/tradier_test.go @@ -16,7 +16,7 @@ import ( func TestTradier_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/travelpayouts/travelpayouts_test.go b/pkg/detectors/travelpayouts/travelpayouts_test.go index ae1353efd..9aabd9c9f 100644 --- a/pkg/detectors/travelpayouts/travelpayouts_test.go +++ b/pkg/detectors/travelpayouts/travelpayouts_test.go @@ -16,7 +16,7 @@ import ( func TestTravelPayouts_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/travisci/travisci_test.go b/pkg/detectors/travisci/travisci_test.go index 97a756ee6..bc0c0a311 100644 --- a/pkg/detectors/travisci/travisci_test.go +++ b/pkg/detectors/travisci/travisci_test.go @@ -16,7 +16,7 @@ import ( func TestTravisCI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/trelloapikey/trelloapikey_test.go b/pkg/detectors/trelloapikey/trelloapikey_test.go index c2484b77f..6a8666c2d 100644 --- a/pkg/detectors/trelloapikey/trelloapikey_test.go +++ b/pkg/detectors/trelloapikey/trelloapikey_test.go @@ -16,7 +16,7 @@ import ( func TestTrelloApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/tru/tru_test.go b/pkg/detectors/tru/tru_test.go index 76605f3b9..2b759f921 100644 --- a/pkg/detectors/tru/tru_test.go +++ b/pkg/detectors/tru/tru_test.go @@ -16,7 +16,7 @@ import ( func TestTru_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/twelvedata/twelvedata_test.go b/pkg/detectors/twelvedata/twelvedata_test.go index 64f681326..5771be85d 100644 --- a/pkg/detectors/twelvedata/twelvedata_test.go +++ b/pkg/detectors/twelvedata/twelvedata_test.go @@ -16,7 +16,7 @@ import ( func TestTwelveData_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/twilio/twilio_test.go b/pkg/detectors/twilio/twilio_test.go index 3052aa722..b6e76acdb 100644 --- a/pkg/detectors/twilio/twilio_test.go +++ b/pkg/detectors/twilio/twilio_test.go @@ -15,7 +15,7 @@ import ( func TestTwilio_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/tyntec/tyntec_test.go b/pkg/detectors/tyntec/tyntec_test.go index 31cd237f1..d3db6ee52 100644 --- a/pkg/detectors/tyntec/tyntec_test.go +++ b/pkg/detectors/tyntec/tyntec_test.go @@ -16,7 +16,7 @@ import ( func TestTyntec_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/typeform/typeform_test.go b/pkg/detectors/typeform/typeform_test.go index 0b242a52f..a481cbc60 100644 --- a/pkg/detectors/typeform/typeform_test.go +++ b/pkg/detectors/typeform/typeform_test.go @@ -16,7 +16,7 @@ import ( func TestTypeform_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/ubidots/ubidots_test.go b/pkg/detectors/ubidots/ubidots_test.go index b27e97b21..9cad2f5ab 100644 --- a/pkg/detectors/ubidots/ubidots_test.go +++ b/pkg/detectors/ubidots/ubidots_test.go @@ -16,7 +16,7 @@ import ( func TestUbidots_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/unifyid/unifyid_test.go b/pkg/detectors/unifyid/unifyid_test.go index 31154a8f9..9de8b2a8a 100644 --- a/pkg/detectors/unifyid/unifyid_test.go +++ b/pkg/detectors/unifyid/unifyid_test.go @@ -16,7 +16,7 @@ import ( func TestUnifyid_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/unplugg/unplugg_test.go b/pkg/detectors/unplugg/unplugg_test.go index 4288718e2..e4c769ef4 100644 --- a/pkg/detectors/unplugg/unplugg_test.go +++ b/pkg/detectors/unplugg/unplugg_test.go @@ -16,7 +16,7 @@ import ( func TestUnplugg_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/unsplash/unsplash_test.go b/pkg/detectors/unsplash/unsplash_test.go index 95dbb0520..18dac24d9 100644 --- a/pkg/detectors/unsplash/unsplash_test.go +++ b/pkg/detectors/unsplash/unsplash_test.go @@ -16,7 +16,7 @@ import ( func TestUnsplash_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/upcdatabase/upcdatabase_test.go b/pkg/detectors/upcdatabase/upcdatabase_test.go index 30b228d7e..f456cf7c6 100644 --- a/pkg/detectors/upcdatabase/upcdatabase_test.go +++ b/pkg/detectors/upcdatabase/upcdatabase_test.go @@ -16,7 +16,7 @@ import ( func TestUPCDatabase_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/uplead/uplead_test.go b/pkg/detectors/uplead/uplead_test.go index 6119ac475..0ea17eb41 100644 --- a/pkg/detectors/uplead/uplead_test.go +++ b/pkg/detectors/uplead/uplead_test.go @@ -16,7 +16,7 @@ import ( func TestUplead_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/upwave/upwave_test.go b/pkg/detectors/upwave/upwave_test.go index 4690ac7e2..c520677b4 100644 --- a/pkg/detectors/upwave/upwave_test.go +++ b/pkg/detectors/upwave/upwave_test.go @@ -16,7 +16,7 @@ import ( func TestUpwave_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/uri/uri_test.go b/pkg/detectors/uri/uri_test.go index 8c2e2e4b3..9374e3d27 100644 --- a/pkg/detectors/uri/uri_test.go +++ b/pkg/detectors/uri/uri_test.go @@ -15,7 +15,7 @@ import ( func TestURI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/urlscan/urlscan_test.go b/pkg/detectors/urlscan/urlscan_test.go index 7cb766353..2bffe7c92 100644 --- a/pkg/detectors/urlscan/urlscan_test.go +++ b/pkg/detectors/urlscan/urlscan_test.go @@ -16,7 +16,7 @@ import ( func TestUrlscan_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/user/user_test.go b/pkg/detectors/user/user_test.go index 12087511c..3de0687dd 100644 --- a/pkg/detectors/user/user_test.go +++ b/pkg/detectors/user/user_test.go @@ -16,7 +16,7 @@ import ( func TestUser_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/userstack/userstack_test.go b/pkg/detectors/userstack/userstack_test.go index d783ef20f..28c7b57ba 100644 --- a/pkg/detectors/userstack/userstack_test.go +++ b/pkg/detectors/userstack/userstack_test.go @@ -16,7 +16,7 @@ import ( func TestUserStack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/vatlayer/vatlayer_test.go b/pkg/detectors/vatlayer/vatlayer_test.go index f79eeb391..b95956b47 100644 --- a/pkg/detectors/vatlayer/vatlayer_test.go +++ b/pkg/detectors/vatlayer/vatlayer_test.go @@ -16,7 +16,7 @@ import ( func TestVatLayer_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/vercel/vercel_test.go b/pkg/detectors/vercel/vercel_test.go index fc866eaaf..330a472c1 100644 --- a/pkg/detectors/vercel/vercel_test.go +++ b/pkg/detectors/vercel/vercel_test.go @@ -16,7 +16,7 @@ import ( func TestVercel_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/verifier/verifier_test.go b/pkg/detectors/verifier/verifier_test.go index ceee754b6..8b9baaa22 100644 --- a/pkg/detectors/verifier/verifier_test.go +++ b/pkg/detectors/verifier/verifier_test.go @@ -16,7 +16,7 @@ import ( func TestVerifier_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/verimail/verimail_test.go b/pkg/detectors/verimail/verimail_test.go index 53afda7e9..adb27cfe6 100644 --- a/pkg/detectors/verimail/verimail_test.go +++ b/pkg/detectors/verimail/verimail_test.go @@ -16,7 +16,7 @@ import ( func TestVerimail_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/veriphone/veriphone_test.go b/pkg/detectors/veriphone/veriphone_test.go index 2aa7cf1ee..42015d285 100644 --- a/pkg/detectors/veriphone/veriphone_test.go +++ b/pkg/detectors/veriphone/veriphone_test.go @@ -16,7 +16,7 @@ import ( func TestVeriphone_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/versioneye/versioneye_test.go b/pkg/detectors/versioneye/versioneye_test.go index ddc55a3ae..5e43a0e65 100644 --- a/pkg/detectors/versioneye/versioneye_test.go +++ b/pkg/detectors/versioneye/versioneye_test.go @@ -16,7 +16,7 @@ import ( func TestVersionEye_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/viewneo/viewneo_test.go b/pkg/detectors/viewneo/viewneo_test.go index 6e9fcc213..24636d699 100644 --- a/pkg/detectors/viewneo/viewneo_test.go +++ b/pkg/detectors/viewneo/viewneo_test.go @@ -16,7 +16,7 @@ import ( func TestViewneo_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/virustotal/virustotal_test.go b/pkg/detectors/virustotal/virustotal_test.go index 7eaadc96c..4aff69085 100644 --- a/pkg/detectors/virustotal/virustotal_test.go +++ b/pkg/detectors/virustotal/virustotal_test.go @@ -16,7 +16,7 @@ import ( func TestVirusTotal_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/visualcrossing/visualcrossing_test.go b/pkg/detectors/visualcrossing/visualcrossing_test.go index 7e52cc4f9..384f7cadd 100644 --- a/pkg/detectors/visualcrossing/visualcrossing_test.go +++ b/pkg/detectors/visualcrossing/visualcrossing_test.go @@ -16,7 +16,7 @@ import ( func TestVisualcrossing_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/voicegain/voicegain_test.go b/pkg/detectors/voicegain/voicegain_test.go index 2d22092a9..18a428d47 100644 --- a/pkg/detectors/voicegain/voicegain_test.go +++ b/pkg/detectors/voicegain/voicegain_test.go @@ -16,7 +16,7 @@ import ( func TestVoicegain_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/vouchery/vouchery_test.go b/pkg/detectors/vouchery/vouchery_test.go index d247c4766..2cebd1c20 100644 --- a/pkg/detectors/vouchery/vouchery_test.go +++ b/pkg/detectors/vouchery/vouchery_test.go @@ -16,7 +16,7 @@ import ( func TestVouchery_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/vpnapi/vpnapi_test.go b/pkg/detectors/vpnapi/vpnapi_test.go index 2e890c9a6..fd76cc737 100644 --- a/pkg/detectors/vpnapi/vpnapi_test.go +++ b/pkg/detectors/vpnapi/vpnapi_test.go @@ -16,7 +16,7 @@ import ( func TestVpnapi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/vultrapikey/vultrapikey_test.go b/pkg/detectors/vultrapikey/vultrapikey_test.go index 6882b4cd5..5d52707f8 100644 --- a/pkg/detectors/vultrapikey/vultrapikey_test.go +++ b/pkg/detectors/vultrapikey/vultrapikey_test.go @@ -16,7 +16,7 @@ import ( func TestVultrApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/vyte/vyte_test.go b/pkg/detectors/vyte/vyte_test.go index 7facbaafb..29426a8e3 100644 --- a/pkg/detectors/vyte/vyte_test.go +++ b/pkg/detectors/vyte/vyte_test.go @@ -16,7 +16,7 @@ import ( func TestVyte_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/walkscore/walkscore_test.go b/pkg/detectors/walkscore/walkscore_test.go index 2d4cd8f5d..e6f136192 100644 --- a/pkg/detectors/walkscore/walkscore_test.go +++ b/pkg/detectors/walkscore/walkscore_test.go @@ -16,7 +16,7 @@ import ( func TestWalkscore_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/weatherbit/weatherbit_test.go b/pkg/detectors/weatherbit/weatherbit_test.go index 91377cc4a..f30514a5e 100644 --- a/pkg/detectors/weatherbit/weatherbit_test.go +++ b/pkg/detectors/weatherbit/weatherbit_test.go @@ -16,7 +16,7 @@ import ( func TestWeatherbit_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/weatherstack/weatherstack_test.go b/pkg/detectors/weatherstack/weatherstack_test.go index c75fc9de1..7cc159961 100644 --- a/pkg/detectors/weatherstack/weatherstack_test.go +++ b/pkg/detectors/weatherstack/weatherstack_test.go @@ -16,7 +16,7 @@ import ( func TestWeatherstack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/webex/webex_test.go b/pkg/detectors/webex/webex_test.go index 1532289cb..ff659b904 100644 --- a/pkg/detectors/webex/webex_test.go +++ b/pkg/detectors/webex/webex_test.go @@ -16,7 +16,7 @@ import ( func TestWebex_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/webflow/webflow_test.go b/pkg/detectors/webflow/webflow_test.go index c1f63a2a1..777020de0 100644 --- a/pkg/detectors/webflow/webflow_test.go +++ b/pkg/detectors/webflow/webflow_test.go @@ -16,7 +16,7 @@ import ( func TestWebflow_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/webscraper/webscraper_test.go b/pkg/detectors/webscraper/webscraper_test.go index d39152bf4..ea7394267 100644 --- a/pkg/detectors/webscraper/webscraper_test.go +++ b/pkg/detectors/webscraper/webscraper_test.go @@ -16,7 +16,7 @@ import ( func TestWebScraper_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/webscraping/webscraping_test.go b/pkg/detectors/webscraping/webscraping_test.go index 795cb47fd..2c6a79c0c 100644 --- a/pkg/detectors/webscraping/webscraping_test.go +++ b/pkg/detectors/webscraping/webscraping_test.go @@ -16,7 +16,7 @@ import ( func TestWebscraping_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/wepay/wepay_test.go b/pkg/detectors/wepay/wepay_test.go index 6bb5532b0..6770d5106 100644 --- a/pkg/detectors/wepay/wepay_test.go +++ b/pkg/detectors/wepay/wepay_test.go @@ -16,7 +16,7 @@ import ( func TestWePay_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/whoxy/whoxy_test.go b/pkg/detectors/whoxy/whoxy_test.go index 49121b69e..c317e1f83 100644 --- a/pkg/detectors/whoxy/whoxy_test.go +++ b/pkg/detectors/whoxy/whoxy_test.go @@ -16,7 +16,7 @@ import ( func TestWhoxy_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/worksnaps/worksnaps_test.go b/pkg/detectors/worksnaps/worksnaps_test.go index f89c1376e..a18be3027 100644 --- a/pkg/detectors/worksnaps/worksnaps_test.go +++ b/pkg/detectors/worksnaps/worksnaps_test.go @@ -16,7 +16,7 @@ import ( func TestWorksnaps_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/workstack/workstack_test.go b/pkg/detectors/workstack/workstack_test.go index bfd82d429..8e99f784f 100644 --- a/pkg/detectors/workstack/workstack_test.go +++ b/pkg/detectors/workstack/workstack_test.go @@ -16,7 +16,7 @@ import ( func TestWorkstack_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/worldcoinindex/worldcoinindex_test.go b/pkg/detectors/worldcoinindex/worldcoinindex_test.go index c3aa3576a..38c90182e 100644 --- a/pkg/detectors/worldcoinindex/worldcoinindex_test.go +++ b/pkg/detectors/worldcoinindex/worldcoinindex_test.go @@ -16,7 +16,7 @@ import ( func TestWorldCoinIndex_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/worldweather/worldweather_test.go b/pkg/detectors/worldweather/worldweather_test.go index e4021b41f..a6da98687 100644 --- a/pkg/detectors/worldweather/worldweather_test.go +++ b/pkg/detectors/worldweather/worldweather_test.go @@ -16,7 +16,7 @@ import ( func TestWorldweather_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/wrike/wrike_test.go b/pkg/detectors/wrike/wrike_test.go index 71839434e..d6d0c8481 100644 --- a/pkg/detectors/wrike/wrike_test.go +++ b/pkg/detectors/wrike/wrike_test.go @@ -16,7 +16,7 @@ import ( func TestWrike_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/yandex/yandex_test.go b/pkg/detectors/yandex/yandex_test.go index 6f7a464c6..61d6c1c9d 100644 --- a/pkg/detectors/yandex/yandex_test.go +++ b/pkg/detectors/yandex/yandex_test.go @@ -16,7 +16,7 @@ import ( func TestYandex_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/youneedabudget/youneedabudget_test.go b/pkg/detectors/youneedabudget/youneedabudget_test.go index 8a9ca7a54..9e5a17f41 100644 --- a/pkg/detectors/youneedabudget/youneedabudget_test.go +++ b/pkg/detectors/youneedabudget/youneedabudget_test.go @@ -16,7 +16,7 @@ import ( func TestYouNeedABudget_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/yousign/yousign_test.go b/pkg/detectors/yousign/yousign_test.go index 371c43fa3..541dbd58f 100644 --- a/pkg/detectors/yousign/yousign_test.go +++ b/pkg/detectors/yousign/yousign_test.go @@ -16,7 +16,7 @@ import ( func TestYousign_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/youtubeapikey/youtubeapikey_test.go b/pkg/detectors/youtubeapikey/youtubeapikey_test.go index de5942869..a3b87e7e2 100644 --- a/pkg/detectors/youtubeapikey/youtubeapikey_test.go +++ b/pkg/detectors/youtubeapikey/youtubeapikey_test.go @@ -16,7 +16,7 @@ import ( func TestYoutubeApiKey_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/zapierwebhook/zapierwebhook_test.go b/pkg/detectors/zapierwebhook/zapierwebhook_test.go index b0fa352c5..ba01cdc47 100644 --- a/pkg/detectors/zapierwebhook/zapierwebhook_test.go +++ b/pkg/detectors/zapierwebhook/zapierwebhook_test.go @@ -16,7 +16,7 @@ import ( func TestZapierWebhook_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/zendeskapi/zendeskapi_test.go b/pkg/detectors/zendeskapi/zendeskapi_test.go index 8aa4c760c..61d77634a 100644 --- a/pkg/detectors/zendeskapi/zendeskapi_test.go +++ b/pkg/detectors/zendeskapi/zendeskapi_test.go @@ -16,7 +16,7 @@ import ( func TestZendeskApi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/zenscrape/zenscrape_test.go b/pkg/detectors/zenscrape/zenscrape_test.go index 29ee52827..50bf3d314 100644 --- a/pkg/detectors/zenscrape/zenscrape_test.go +++ b/pkg/detectors/zenscrape/zenscrape_test.go @@ -16,7 +16,7 @@ import ( func TestZenscrape_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/zenserp/zenserp_test.go b/pkg/detectors/zenserp/zenserp_test.go index 01f40e17b..2f4d637e5 100644 --- a/pkg/detectors/zenserp/zenserp_test.go +++ b/pkg/detectors/zenserp/zenserp_test.go @@ -16,7 +16,7 @@ import ( func TestZenserp_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/zeplin/zeplin_test.go b/pkg/detectors/zeplin/zeplin_test.go index 42e4440f9..0e4859053 100644 --- a/pkg/detectors/zeplin/zeplin_test.go +++ b/pkg/detectors/zeplin/zeplin_test.go @@ -16,7 +16,7 @@ import ( func TestZeplin_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/zerobounce/zerobounce_test.go b/pkg/detectors/zerobounce/zerobounce_test.go index f3328d69c..d41c6d11e 100644 --- a/pkg/detectors/zerobounce/zerobounce_test.go +++ b/pkg/detectors/zerobounce/zerobounce_test.go @@ -16,7 +16,7 @@ import ( func TestZerobounce_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/zipapi/zipapi_test.go b/pkg/detectors/zipapi/zipapi_test.go index a9116d700..7b30bfac7 100644 --- a/pkg/detectors/zipapi/zipapi_test.go +++ b/pkg/detectors/zipapi/zipapi_test.go @@ -16,7 +16,7 @@ import ( func TestZipapi_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/zipbooks/zipbooks_test.go b/pkg/detectors/zipbooks/zipbooks_test.go index 4d52b6852..e2f3d6b9e 100644 --- a/pkg/detectors/zipbooks/zipbooks_test.go +++ b/pkg/detectors/zipbooks/zipbooks_test.go @@ -16,7 +16,7 @@ import ( func TestZipbooks_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners2") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors2") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/zipcodeapi/zipcodeapi_test.go b/pkg/detectors/zipcodeapi/zipcodeapi_test.go index d16d1c522..a114db983 100644 --- a/pkg/detectors/zipcodeapi/zipcodeapi_test.go +++ b/pkg/detectors/zipcodeapi/zipcodeapi_test.go @@ -16,7 +16,7 @@ import ( func TestZipCodeAPI_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners1") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors1") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/pkg/detectors/zonkafeedback/zonkafeedback_test.go b/pkg/detectors/zonkafeedback/zonkafeedback_test.go index 2f5ded877..8c18b0ab5 100644 --- a/pkg/detectors/zonkafeedback/zonkafeedback_test.go +++ b/pkg/detectors/zonkafeedback/zonkafeedback_test.go @@ -16,7 +16,7 @@ import ( func TestZonkaFeedback_FromChunk(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "scanners3") + testSecrets, err := common.GetSecret(ctx, "trufflehog-testing", "detectors3") if err != nil { t.Fatalf("could not get test secrets from GCP: %s", err) } diff --git a/scripts/test_changed_detectors.sh b/scripts/test_changed_detectors.sh new file mode 100755 index 000000000..a6cd5fdcb --- /dev/null +++ b/scripts/test_changed_detectors.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -uo pipefail + +CHANGED=$(git diff --name-only --no-commit-id origin/master | grep pkg/detectors | grep -v test) +while IFS= read -r FILE; do + DIRECTORY=$(basename $FILE ".go") + if [ -d "pkg/detectors/$DIRECTORY" ] + then + echo $DIRECTORY + go test -v "github.com/trufflesecurity/trufflehog/v3/pkg/detectors/$DIRECTORY" + retVal=$? + if [ $retVal -ne 0 ]; then + exit 1 + fi + fi +done <<< "$CHANGED"