diff options
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/secret_fetcher_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/unit/secret_fetcher_spec.rb b/spec/unit/secret_fetcher_spec.rb index 3aa9efb5f1..c352585266 100644 --- a/spec/unit/secret_fetcher_spec.rb +++ b/spec/unit/secret_fetcher_spec.rb @@ -35,10 +35,14 @@ describe Chef::SecretFetcher do end context ".for_service" do - it "resolves a known secrets service to a fetcher" do + it "resolves the example fetcher without error" do Chef::SecretFetcher.for_service(:example, {}) end + it "resolves the AWS fetcher without error" do + Chef::SecretFetcher.for_service(:aws_secrets_manager, region: "invalid") + end + it "raises Chef::Exceptions::Secret::MissingFetcher when service is blank" do expect { Chef::SecretFetcher.for_service(nil, {}) }.to raise_error(Chef::Exceptions::Secret::MissingFetcher) end |