diff options
author | Seth Chisamore <schisamo@opscode.com> | 2013-03-18 12:23:57 -0400 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-11 14:25:45 -0700 |
commit | 5577cb77fe3310b0cdb7801bdbe9ef90eb32db3e (patch) | |
tree | 5637db85f177fe14d2a88c9251185b3966656851 | |
parent | 6c684ef5df40022a864e8be79051a4200637d73c (diff) | |
download | chef-5577cb77fe3310b0cdb7801bdbe9ef90eb32db3e.tar.gz |
[CHEF-4011] s/Version1Decryptor/Version0Decryptor/
This properly matches the code in `Chef::EncryptedDataBagItem`:
* Version0Decryptor == legacy YAML-based format
* Version1Decryptor == preferred JSON-based format
-rw-r--r-- | spec/unit/encrypted_data_bag_item_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/encrypted_data_bag_item_spec.rb b/spec/unit/encrypted_data_bag_item_spec.rb index 392830a9ff..272846d659 100644 --- a/spec/unit/encrypted_data_bag_item_spec.rb +++ b/spec/unit/encrypted_data_bag_item_spec.rb @@ -19,7 +19,7 @@ require 'spec_helper' require 'chef/encrypted_data_bag_item' -module Version1Encryptor +module Version0Encryptor def self.encrypt_value(plaintext_data, key) data = plaintext_data.to_yaml @@ -116,7 +116,7 @@ describe Chef::EncryptedDataBagItem::Decryptor do context "when decrypting a version 0 (YAML+aes-256-cbc+no iv) encrypted value" do let(:encrypted_value) do - Version1Encryptor.encrypt_value(plaintext_data, encryption_key) + Version0Encryptor.encrypt_value(plaintext_data, encryption_key) end it "selects the correct strategy for version 0" do |