{"action":"created","issue":{"url":"https://api.github.com/repos/Nordstrom/chef-vault-testfixtures/issues/11","labels_url":"https://api.github.com/repos/Nordstrom/chef-vault-testfixtures/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/Nordstrom/chef-vault-testfixtures/issues/11/comments","events_url":"https://api.github.com/repos/Nordstrom/chef-vault-testfixtures/issues/11/events","html_url":"https://github.com/Nordstrom/chef-vault-testfixtures/issues/11","id":73432560,"number":11,"title":"undefined method `raw_data` for {\"...","user":{"login":"dgoradia-atlas","id":9560862,"avatar_url":"https://avatars.githubusercontent.com/u/9560862?v=3","gravatar_id":"","url":"https://api.github.com/users/dgoradia-atlas","html_url":"https://github.com/dgoradia-atlas","followers_url":"https://api.github.com/users/dgoradia-atlas/followers","following_url":"https://api.github.com/users/dgoradia-atlas/following{/other_user}","gists_url":"https://api.github.com/users/dgoradia-atlas/gists{/gist_id}","starred_url":"https://api.github.com/users/dgoradia-atlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgoradia-atlas/subscriptions","organizations_url":"https://api.github.com/users/dgoradia-atlas/orgs","repos_url":"https://api.github.com/users/dgoradia-atlas/repos","events_url":"https://api.github.com/users/dgoradia-atlas/events{/privacy}","received_events_url":"https://api.github.com/users/dgoradia-atlas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Nordstrom/chef-vault-testfixtures/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"jf647","id":41579,"avatar_url":"https://avatars.githubusercontent.com/u/41579?v=3","gravatar_id":"","url":"https://api.github.com/users/jf647","html_url":"https://github.com/jf647","followers_url":"https://api.github.com/users/jf647/followers","following_url":"https://api.github.com/users/jf647/following{/other_user}","gists_url":"https://api.github.com/users/jf647/gists{/gist_id}","starred_url":"https://api.github.com/users/jf647/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jf647/subscriptions","organizations_url":"https://api.github.com/users/jf647/orgs","repos_url":"https://api.github.com/users/jf647/repos","events_url":"https://api.github.com/users/jf647/events{/privacy}","received_events_url":"https://api.github.com/users/jf647/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Nordstrom/chef-vault-testfixtures/milestones/3","html_url":"https://github.com/Nordstrom/chef-vault-testfixtures/milestones/0.4.1","labels_url":"https://api.github.com/repos/Nordstrom/chef-vault-testfixtures/milestones/3/labels","id":1097731,"number":3,"title":"0.4.1","description":"","creator":{"login":"jf647","id":41579,"avatar_url":"https://avatars.githubusercontent.com/u/41579?v=3","gravatar_id":"","url":"https://api.github.com/users/jf647","html_url":"https://github.com/jf647","followers_url":"https://api.github.com/users/jf647/followers","following_url":"https://api.github.com/users/jf647/following{/other_user}","gists_url":"https://api.github.com/users/jf647/gists{/gist_id}","starred_url":"https://api.github.com/users/jf647/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jf647/subscriptions","organizations_url":"https://api.github.com/users/jf647/orgs","repos_url":"https://api.github.com/users/jf647/repos","events_url":"https://api.github.com/users/jf647/events{/privacy}","received_events_url":"https://api.github.com/users/jf647/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-05-05T22:16:54Z","updated_at":"2015-05-05T23:20:24Z","due_on":"2015-05-06T07:00:00Z","closed_at":null},"comments":7,"created_at":"2015-05-05T21:11:28Z","updated_at":"2015-05-06T18:47:51Z","closed_at":null,"body":"When I load a regular (unencrypted) data bag chefspec is throwing an error.\r\n\r\nrecipes/default.rb\r\n```\r\ninclude_recipe 'chef-vault'\r\nbag = data_bag_item('devices', 'base')\r\nitem = chef_vault_item('foo', 'bar')\r\n```\r\n\r\nspec_helper.rb\r\n```\r\nrequire 'chefspec'\r\nrequire 'chef-vault'\r\nrequire 'chef-vault/test_fixtures'\r\nrequire 'chefspec/berkshelf'\r\n\r\ndef parse_data_bag (path)\r\n  data_bags_path = File.expand_path(File.join(File.dirname(__FILE__), \"../test/integration/data_bags\"))\r\n  return JSON.parse(File.read(\"#{data_bags_path}/#{path}\"))\r\nend\r\n```\r\n\r\ndefault_spec.rb\r\n```\r\nrequire_relative '../spec_helper'\r\n\r\ndescribe 'test1::default' do\r\n\r\n  include ChefVault::TestFixtures.rspec_shared_context\r\n\r\n  let(:chef_run) do\r\n    ChefSpec::ServerRunner.new() do |node, server|\r\n\r\n      server.create_data_bag('devices', {\r\n        'insight-base' => parse_data_bag('devices/base/base.json')\r\n      })\r\n\r\n    end.converge(described_recipe)\r\n  end\r\n\r\n  it 'should converge' do\r\n    expect(chef_run).to include_recipe(described_recipe)\r\n  end\r\n\r\nend\r\n```\r\n\r\nError:\r\n```\r\nERROR: Failed to load data bag item: \"devices\" {\"public_keys\"=>{\"encrypted_data\"=>\"...\"}}\r\n\r\nRelevant File Content:\r\n----------------------\r\n/var/folders/tk/7s_vzqz50k19df8msmp7ct3c0000gn/T/d20150505-55843-1g0qxsb/cookbooks/test1/recipes/default.rb:\r\n\r\n  2:  # Cookbook Name:: test1\r\n  3:  # Recipe:: default\r\n  4:  #\r\n  5:  # Copyright 2015, Atlas Digital LLC\r\n  6:  #\r\n  7:  include_recipe 'chef-vault'\r\n  8:  \r\n  9>> bag = data_bag_item('devices', 'insight-base')\r\n 10:  \r\n 11:  item = chef_vault_item('foo', 'bar')\r\n 12:  \r\n\r\nF\r\n\r\nFailure/Error: end.converge(described_recipe)\r\n     NoMethodError:\r\n       undefined method `raw_data' for {\"public_keys\"=>{\"encrypted_data\"=>\"...\"}}:Hash\r\n```"},"comment":{"url":"https://api.github.com/repos/Nordstrom/chef-vault-testfixtures/issues/comments/99571014","html_url":"https://github.com/Nordstrom/chef-vault-testfixtures/issues/11#issuecomment-99571014","issue_url":"https://api.github.com/repos/Nordstrom/chef-vault-testfixtures/issues/11","id":99571014,"user":{"login":"dgoradia-atlas","id":9560862,"avatar_url":"https://avatars.githubusercontent.com/u/9560862?v=3","gravatar_id":"","url":"https://api.github.com/users/dgoradia-atlas","html_url":"https://github.com/dgoradia-atlas","followers_url":"https://api.github.com/users/dgoradia-atlas/followers","following_url":"https://api.github.com/users/dgoradia-atlas/following{/other_user}","gists_url":"https://api.github.com/users/dgoradia-atlas/gists{/gist_id}","starred_url":"https://api.github.com/users/dgoradia-atlas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgoradia-atlas/subscriptions","organizations_url":"https://api.github.com/users/dgoradia-atlas/orgs","repos_url":"https://api.github.com/users/dgoradia-atlas/repos","events_url":"https://api.github.com/users/dgoradia-atlas/events{/privacy}","received_events_url":"https://api.github.com/users/dgoradia-atlas/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T18:47:51Z","updated_at":"2015-05-06T18:47:51Z","body":"Would it be possible to just remove the `raw_data` key from the hash for the regular data bag item?"}}