{"action":"created","issue":{"url":"https://api.github.com/repos/inviqa/chef-magento-ng/issues/10","labels_url":"https://api.github.com/repos/inviqa/chef-magento-ng/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/inviqa/chef-magento-ng/issues/10/comments","events_url":"https://api.github.com/repos/inviqa/chef-magento-ng/issues/10/events","html_url":"https://github.com/inviqa/chef-magento-ng/pull/10","id":105023144,"number":10,"title":"Add specs for etc-local and stack.","user":{"login":"kierenevans","id":1554709,"avatar_url":"https://avatars.githubusercontent.com/u/1554709?v=3","gravatar_id":"","url":"https://api.github.com/users/kierenevans","html_url":"https://github.com/kierenevans","followers_url":"https://api.github.com/users/kierenevans/followers","following_url":"https://api.github.com/users/kierenevans/following{/other_user}","gists_url":"https://api.github.com/users/kierenevans/gists{/gist_id}","starred_url":"https://api.github.com/users/kierenevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kierenevans/subscriptions","organizations_url":"https://api.github.com/users/kierenevans/orgs","repos_url":"https://api.github.com/users/kierenevans/repos","events_url":"https://api.github.com/users/kierenevans/events{/privacy}","received_events_url":"https://api.github.com/users/kierenevans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-05T12:02:52Z","updated_at":"2016-01-28T15:19:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/inviqa/chef-magento-ng/pulls/10","html_url":"https://github.com/inviqa/chef-magento-ng/pull/10","diff_url":"https://github.com/inviqa/chef-magento-ng/pull/10.diff","patch_url":"https://github.com/inviqa/chef-magento-ng/pull/10.patch"},"body":"Add specs for the existing behaviour of `magento-ng::stack` and `magento-ng::etc-local`.\r\n\r\nThe etc-local recipe has a load of functionality hidden in the template that it writes out. Any advice on splitting up that mammoth spec is appreciated!\r\n\r\nI have had to modify the `magento-local.xml.erb` template as I couldn't get a definition of memcached server details in symbol format to work.\r\n\r\nI was hoping to have the following in the etc-local spec too, with appropriate stubbing of ![secure_password](https://github.com/opscode-cookbooks/openssl/blob/v2.0.0/libraries/secure_password.rb) to test out the generation of the crypt key but unfortunately I ran into https://github.com/edelight/chef-solo-search/issues/74 :\r\n\r\n```\r\ncontext 'with chef server' do\r\n  let(:chef_run) do\r\n    ChefSpec::ServerRunner.new.converge(described_recipe)\r\n  end\r\n\r\n  it 'should not raise an error if crypt key is not specifed' do\r\n    expect { chef_run }.to_not raise_error\r\n  end\r\n\r\n  it_should_behave_like 'etc-local'\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/inviqa/chef-magento-ng/issues/comments/176231832","html_url":"https://github.com/inviqa/chef-magento-ng/pull/10#issuecomment-176231832","issue_url":"https://api.github.com/repos/inviqa/chef-magento-ng/issues/10","id":176231832,"user":{"login":"kierenevans","id":1554709,"avatar_url":"https://avatars.githubusercontent.com/u/1554709?v=3","gravatar_id":"","url":"https://api.github.com/users/kierenevans","html_url":"https://github.com/kierenevans","followers_url":"https://api.github.com/users/kierenevans/followers","following_url":"https://api.github.com/users/kierenevans/following{/other_user}","gists_url":"https://api.github.com/users/kierenevans/gists{/gist_id}","starred_url":"https://api.github.com/users/kierenevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kierenevans/subscriptions","organizations_url":"https://api.github.com/users/kierenevans/orgs","repos_url":"https://api.github.com/users/kierenevans/repos","events_url":"https://api.github.com/users/kierenevans/events{/privacy}","received_events_url":"https://api.github.com/users/kierenevans/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T15:19:02Z","updated_at":"2016-01-28T15:19:02Z","body":"I've rebased on top of master and tidied up a bit :)"}}