{"action":"created","comment":{"url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/comments/66282057","id":66282057,"diff_hunk":"@@ -0,0 +1,305 @@\n+# Encoding: utf-8\n+\n+require_relative 'spec_helper'\n+include CernerSplunk::PathHelpers\n+\n+platform_urls = {\n+  redhat: {\n+    '7.1': {\n+      splunk: 'https://download.splunk.com/products/splunk/releases/6.3.4/linux/splunk-6.3.4-cae2458f4aef-linux-2.6-x86_64.rpm',\n+      universal_forwarder: 'https://download.splunk.com/products/universalforwarder/releases/6.3.4/linux/splunkforwarder-6.3.4-cae2458f4aef-linux-2.6-x86_64.rpm'\n+    }\n+  },\n+  ubuntu: {\n+    '16.04': {\n+      splunk: 'https://download.splunk.com/products/splunk/releases/6.3.4/linux/splunk-6.3.4-cae2458f4aef-linux-2.6-amd64.deb',\n+      universal_forwarder: 'https://download.splunk.com/products/universalforwarder/releases/6.3.4/linux/splunkforwarder-6.3.4-cae2458f4aef-linux-2.6-amd64.deb'\n+    }\n+  },\n+  windows: {\n+    '2012R2': {\n+      splunk: 'https://download.splunk.com/products/splunk/releases/6.3.4/windows/splunk-6.3.4-cae2458f4aef-x64-release.msi',\n+      universal_forwarder: 'https://download.splunk.com/products/universalforwarder/releases/6.3.4/windows/splunkforwarder-6.3.4-cae2458f4aef-x64-release.msi'\n+    }\n+  },\n+  suse: { # Generic Linux\n+    '12.0': {\n+      splunk: 'https://download.splunk.com/products/splunk/releases/6.3.4/linux/splunk-6.3.4-cae2458f4aef-Linux-x86_64.tgz',\n+      universal_forwarder: 'https://download.splunk.com/products/universalforwarder/releases/6.3.4/linux/splunkforwarder-6.3.4-cae2458f4aef-Linux-x86_64.tgz'\n+    }\n+  }\n+}\n+\n+describe 'splunk_install' do\n+  let(:test_params) { {} }\n+  let(:platform) { 'redhat' }\n+  let(:version) { '7.1' }\n+  let(:do_before) {}\n+  let(:run_state) { {} }\n+  let(:chef_runner) do\n+    parameters = { step_into: ['splunk_install'], platform: platform, version: version }\n+    ChefSpec::SoloRunner.new(parameters) do |node|\n+      node.set['test_parameters'] = test_params\n+      node.set['run_state'].merge!(run_state)\n+    end\n+  end\n+  let(:chef_run) do\n+    do_before\n+    chef_runner.converge('cerner_splunk_ingredient_test::unit_test')\n+  end\n+  subject { chef_run }\n+\n+  describe 'action :install' do\n+    platform_urls.each do |platform, versions|\n+      versions.each do |version, urls|\n+        context \"on #{platform} #{version}\" do\n+          let(:platform) { platform.to_s }\n+          let(:version) { version.to_s }\n+          context 'with the Splunk package' do\n+            let(:test_params) { { build: 'cae2458f4aef', version: '6.3.4', accept_license: true } }\n+            let(:package_dir) { \"./test/unit/.cache/#{filename_from_url(urls[:splunk])}\" }\n+\n+            it 'should set the run state' do\n+              expect(chef_run.node.run_state['splunk_ingredient']['current_installation']).to eq(\n+                name: 'splunk',\n+                package: :splunk,\n+                version: '6.3.4',\n+                build: 'cae2458f4aef',\n+                x64: true\n+              )\n+            end\n+\n+            it { is_expected.to create_remote_file(package_dir).with(source: urls[:splunk]) }\n+\n+            case platform","path":"test/unit/spec/default_spec.rb","position":74,"original_position":74,"commit_id":"34547d81c56dd573c7e431b0ddb8d1939a0d07dd","original_commit_id":"34547d81c56dd573c7e431b0ddb8d1939a0d07dd","user":{"login":"alecxvs","id":513932,"avatar_url":"https://avatars.githubusercontent.com/u/513932?v=3","gravatar_id":"","url":"https://api.github.com/users/alecxvs","html_url":"https://github.com/alecxvs","followers_url":"https://api.github.com/users/alecxvs/followers","following_url":"https://api.github.com/users/alecxvs/following{/other_user}","gists_url":"https://api.github.com/users/alecxvs/gists{/gist_id}","starred_url":"https://api.github.com/users/alecxvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecxvs/subscriptions","organizations_url":"https://api.github.com/users/alecxvs/orgs","repos_url":"https://api.github.com/users/alecxvs/repos","events_url":"https://api.github.com/users/alecxvs/events{/privacy}","received_events_url":"https://api.github.com/users/alecxvs/received_events","type":"User","site_admin":false},"body":"I'm working on combining the package contexts.","created_at":"2016-06-08T15:46:56Z","updated_at":"2016-06-08T15:46:56Z","html_url":"https://github.com/cerner/cerner_splunk_ingredient/pull/1#discussion_r66282057","pull_request_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/comments/66282057"},"html":{"href":"https://github.com/cerner/cerner_splunk_ingredient/pull/1#discussion_r66282057"},"pull_request":{"href":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/1","id":72074432,"html_url":"https://github.com/cerner/cerner_splunk_ingredient/pull/1","diff_url":"https://github.com/cerner/cerner_splunk_ingredient/pull/1.diff","patch_url":"https://github.com/cerner/cerner_splunk_ingredient/pull/1.patch","issue_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/issues/1","number":1,"state":"open","locked":false,"title":"Initial Commit: Implement Install Resource","user":{"login":"alecxvs","id":513932,"avatar_url":"https://avatars.githubusercontent.com/u/513932?v=3","gravatar_id":"","url":"https://api.github.com/users/alecxvs","html_url":"https://github.com/alecxvs","followers_url":"https://api.github.com/users/alecxvs/followers","following_url":"https://api.github.com/users/alecxvs/following{/other_user}","gists_url":"https://api.github.com/users/alecxvs/gists{/gist_id}","starred_url":"https://api.github.com/users/alecxvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecxvs/subscriptions","organizations_url":"https://api.github.com/users/alecxvs/orgs","repos_url":"https://api.github.com/users/alecxvs/repos","events_url":"https://api.github.com/users/alecxvs/events{/privacy}","received_events_url":"https://api.github.com/users/alecxvs/received_events","type":"User","site_admin":false},"body":"This is the initial implementation of the resource cookbook, including the install resource for installing and uninstalling Splunk and appropriate tests.\r\n\r\nMost potential issues may be in formatting, style, and documentation.","created_at":"2016-05-31T19:46:14Z","updated_at":"2016-06-08T15:46:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d53bf523ecb64934d04d28a45c646777ff9e47ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/1/commits","review_comments_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/1/comments","review_comment_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/issues/1/comments","statuses_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/statuses/34547d81c56dd573c7e431b0ddb8d1939a0d07dd","head":{"label":"alecxvs:stable","ref":"stable","sha":"34547d81c56dd573c7e431b0ddb8d1939a0d07dd","user":{"login":"alecxvs","id":513932,"avatar_url":"https://avatars.githubusercontent.com/u/513932?v=3","gravatar_id":"","url":"https://api.github.com/users/alecxvs","html_url":"https://github.com/alecxvs","followers_url":"https://api.github.com/users/alecxvs/followers","following_url":"https://api.github.com/users/alecxvs/following{/other_user}","gists_url":"https://api.github.com/users/alecxvs/gists{/gist_id}","starred_url":"https://api.github.com/users/alecxvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecxvs/subscriptions","organizations_url":"https://api.github.com/users/alecxvs/orgs","repos_url":"https://api.github.com/users/alecxvs/repos","events_url":"https://api.github.com/users/alecxvs/events{/privacy}","received_events_url":"https://api.github.com/users/alecxvs/received_events","type":"User","site_admin":false},"repo":{"id":60117634,"name":"cerner_splunk_ingredient","full_name":"alecxvs/cerner_splunk_ingredient","owner":{"login":"alecxvs","id":513932,"avatar_url":"https://avatars.githubusercontent.com/u/513932?v=3","gravatar_id":"","url":"https://api.github.com/users/alecxvs","html_url":"https://github.com/alecxvs","followers_url":"https://api.github.com/users/alecxvs/followers","following_url":"https://api.github.com/users/alecxvs/following{/other_user}","gists_url":"https://api.github.com/users/alecxvs/gists{/gist_id}","starred_url":"https://api.github.com/users/alecxvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecxvs/subscriptions","organizations_url":"https://api.github.com/users/alecxvs/orgs","repos_url":"https://api.github.com/users/alecxvs/repos","events_url":"https://api.github.com/users/alecxvs/events{/privacy}","received_events_url":"https://api.github.com/users/alecxvs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alecxvs/cerner_splunk_ingredient","description":"","fork":true,"url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient","forks_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/forks","keys_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/teams","hooks_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/hooks","issue_events_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/issues/events{/number}","events_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/events","assignees_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/assignees{/user}","branches_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/branches{/branch}","tags_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/tags","blobs_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/git/refs{/sha}","trees_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/statuses/{sha}","languages_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/languages","stargazers_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/stargazers","contributors_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/contributors","subscribers_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/subscribers","subscription_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/subscription","commits_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/commits{/sha}","git_commits_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/git/commits{/sha}","comments_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/comments{/number}","issue_comment_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/issues/comments{/number}","contents_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/contents/{+path}","compare_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/merges","archive_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/downloads","issues_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/issues{/number}","pulls_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/pulls{/number}","milestones_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/milestones{/number}","notifications_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/labels{/name}","releases_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/releases{/id}","deployments_url":"https://api.github.com/repos/alecxvs/cerner_splunk_ingredient/deployments","created_at":"2016-05-31T19:31:46Z","updated_at":"2016-05-31T19:41:55Z","pushed_at":"2016-06-06T19:36:30Z","git_url":"git://github.com/alecxvs/cerner_splunk_ingredient.git","ssh_url":"git@github.com:alecxvs/cerner_splunk_ingredient.git","clone_url":"https://github.com/alecxvs/cerner_splunk_ingredient.git","svn_url":"https://github.com/alecxvs/cerner_splunk_ingredient","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"stable"}},"base":{"label":"cerner:stable","ref":"stable","sha":"f800ec83a5cf931b43529180852862f06afa9ae0","user":{"login":"cerner","id":1873208,"avatar_url":"https://avatars.githubusercontent.com/u/1873208?v=3","gravatar_id":"","url":"https://api.github.com/users/cerner","html_url":"https://github.com/cerner","followers_url":"https://api.github.com/users/cerner/followers","following_url":"https://api.github.com/users/cerner/following{/other_user}","gists_url":"https://api.github.com/users/cerner/gists{/gist_id}","starred_url":"https://api.github.com/users/cerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerner/subscriptions","organizations_url":"https://api.github.com/users/cerner/orgs","repos_url":"https://api.github.com/users/cerner/repos","events_url":"https://api.github.com/users/cerner/events{/privacy}","received_events_url":"https://api.github.com/users/cerner/received_events","type":"Organization","site_admin":false},"repo":{"id":56612056,"name":"cerner_splunk_ingredient","full_name":"cerner/cerner_splunk_ingredient","owner":{"login":"cerner","id":1873208,"avatar_url":"https://avatars.githubusercontent.com/u/1873208?v=3","gravatar_id":"","url":"https://api.github.com/users/cerner","html_url":"https://github.com/cerner","followers_url":"https://api.github.com/users/cerner/followers","following_url":"https://api.github.com/users/cerner/following{/other_user}","gists_url":"https://api.github.com/users/cerner/gists{/gist_id}","starred_url":"https://api.github.com/users/cerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerner/subscriptions","organizations_url":"https://api.github.com/users/cerner/orgs","repos_url":"https://api.github.com/users/cerner/repos","events_url":"https://api.github.com/users/cerner/events{/privacy}","received_events_url":"https://api.github.com/users/cerner/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cerner/cerner_splunk_ingredient","description":"","fork":false,"url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient","forks_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/forks","keys_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/teams","hooks_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/hooks","issue_events_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/issues/events{/number}","events_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/events","assignees_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/assignees{/user}","branches_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/branches{/branch}","tags_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/tags","blobs_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/git/refs{/sha}","trees_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/statuses/{sha}","languages_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/languages","stargazers_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/stargazers","contributors_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/contributors","subscribers_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/subscribers","subscription_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/subscription","commits_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/commits{/sha}","git_commits_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/git/commits{/sha}","comments_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/comments{/number}","issue_comment_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/issues/comments{/number}","contents_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/contents/{+path}","compare_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/merges","archive_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/downloads","issues_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/issues{/number}","pulls_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls{/number}","milestones_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/milestones{/number}","notifications_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/labels{/name}","releases_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/releases{/id}","deployments_url":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/deployments","created_at":"2016-04-19T16:08:15Z","updated_at":"2016-05-31T20:44:36Z","pushed_at":"2016-06-06T19:36:31Z","git_url":"git://github.com/cerner/cerner_splunk_ingredient.git","ssh_url":"git@github.com:cerner/cerner_splunk_ingredient.git","clone_url":"https://github.com/cerner/cerner_splunk_ingredient.git","svn_url":"https://github.com/cerner/cerner_splunk_ingredient","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"stable"}},"_links":{"self":{"href":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/1"},"html":{"href":"https://github.com/cerner/cerner_splunk_ingredient/pull/1"},"issue":{"href":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/issues/1"},"comments":{"href":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/cerner/cerner_splunk_ingredient/statuses/34547d81c56dd573c7e431b0ddb8d1939a0d07dd"}}}}
{"actor":{"display_login":"alecxvs"}}