diff options
author | Lamont Granquist <lamont@opscode.com> | 2021-06-07 10:35:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-07 10:35:25 -0700 |
commit | 801311181bd2281902d626a48e7db8ac5b5ad33f (patch) | |
tree | 1f67984cedd73a78ef90515269d2a24d4c6b4c92 /spec | |
parent | 09a38d650142f708f9514e4b172a90ee7c2657a2 (diff) | |
parent | 72974e1f7c35dc48da6013ca9b64f766433460fd (diff) | |
download | chef-801311181bd2281902d626a48e7db8ac5b5ad33f.tar.gz |
Merge pull request #11660 from chef/zypper
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/zypper_repository_spec.rb | 13 | ||||
-rw-r--r-- | spec/unit/resource/zypper_repository_spec.rb | 2 |
2 files changed, 4 insertions, 11 deletions
diff --git a/spec/unit/provider/zypper_repository_spec.rb b/spec/unit/provider/zypper_repository_spec.rb index 950022080a..2cf4ed99c8 100644 --- a/spec/unit/provider/zypper_repository_spec.rb +++ b/spec/unit/provider/zypper_repository_spec.rb @@ -107,13 +107,6 @@ describe Chef::Provider::ZypperRepository do end end - describe "#cookbook_name" do - it "returns 'test' when the cookbook property is set" do - new_resource.cookbook("test") - expect(provider.cookbook_name).to eq("test") - end - end - describe "#key_type" do it "returns :remote_file with an http URL" do expect(provider.key_type("https://www.chef.io/key")).to eq(:remote_file) @@ -167,10 +160,10 @@ describe Chef::Provider::ZypperRepository do end end - describe "#install_gpg_key" do - it "skips installing the key if a nil value for key is passed" do + describe "#install_gpg_keys" do + it "skips installing the key if an empty array for key URL is passed" do expect(logger).to receive(:debug) - provider.install_gpg_key(nil) + provider.install_gpg_keys([]) end end end diff --git a/spec/unit/resource/zypper_repository_spec.rb b/spec/unit/resource/zypper_repository_spec.rb index b1b9cdf874..18ce0e47b3 100644 --- a/spec/unit/resource/zypper_repository_spec.rb +++ b/spec/unit/resource/zypper_repository_spec.rb @@ -85,7 +85,7 @@ describe Chef::Resource::ZypperRepository do it "accepts the legacy 'key' property" do resource.key "foo" - expect(resource.gpgkey).to eql("foo") + expect(resource.gpgkey).to eql(["foo"]) end it "accepts the legacy 'uri' property" do |