{"action":"created","issue":{"url":"https://api.github.com/repos/chef/inspec/issues/538","repository_url":"https://api.github.com/repos/chef/inspec","labels_url":"https://api.github.com/repos/chef/inspec/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/chef/inspec/issues/538/comments","events_url":"https://api.github.com/repos/chef/inspec/issues/538/events","html_url":"https://github.com/chef/inspec/issues/538","id":140694145,"number":538,"title":"A resource to test http GET calls","user":{"login":"mhedgpeth","id":3209401,"avatar_url":"https://avatars.githubusercontent.com/u/3209401?v=3","gravatar_id":"","url":"https://api.github.com/users/mhedgpeth","html_url":"https://github.com/mhedgpeth","followers_url":"https://api.github.com/users/mhedgpeth/followers","following_url":"https://api.github.com/users/mhedgpeth/following{/other_user}","gists_url":"https://api.github.com/users/mhedgpeth/gists{/gist_id}","starred_url":"https://api.github.com/users/mhedgpeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhedgpeth/subscriptions","organizations_url":"https://api.github.com/users/mhedgpeth/orgs","repos_url":"https://api.github.com/users/mhedgpeth/repos","events_url":"https://api.github.com/users/mhedgpeth/events{/privacy}","received_events_url":"https://api.github.com/users/mhedgpeth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-14T14:44:28Z","updated_at":"2016-03-16T20:24:09Z","closed_at":null,"body":"As a part of audit mode or in test kitchen my colleagues have asked for a mechanism to test HTTP GET calls and test the return code, response, or JSON response. It would be similar to [this server spec class](https://github.com/jantman/serverspec-extended-types/blob/master/spec/types/http_get_spec.rb).\r\n\r\nI'd be happy to add a resource and create a PR for you, but before I did I wanted to know if you thought this functionality was within the core functionality of inspec. It is more testing related, not as much security-related. If it's outside of the core functionality, do you have a way to create resource plugins yet? If it's inside I'll add a resource and create a PR."},"comment":{"url":"https://api.github.com/repos/chef/inspec/issues/comments/197530856","html_url":"https://github.com/chef/inspec/issues/538#issuecomment-197530856","issue_url":"https://api.github.com/repos/chef/inspec/issues/538","id":197530856,"user":{"login":"arlimus","id":1307529,"avatar_url":"https://avatars.githubusercontent.com/u/1307529?v=3","gravatar_id":"","url":"https://api.github.com/users/arlimus","html_url":"https://github.com/arlimus","followers_url":"https://api.github.com/users/arlimus/followers","following_url":"https://api.github.com/users/arlimus/following{/other_user}","gists_url":"https://api.github.com/users/arlimus/gists{/gist_id}","starred_url":"https://api.github.com/users/arlimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arlimus/subscriptions","organizations_url":"https://api.github.com/users/arlimus/orgs","repos_url":"https://api.github.com/users/arlimus/repos","events_url":"https://api.github.com/users/arlimus/events{/privacy}","received_events_url":"https://api.github.com/users/arlimus/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T20:24:09Z","updated_at":"2016-03-16T20:24:09Z","body":":+1: :smile: \r\n\r\nI don't think we'll get to it in the team in the next couple of weeks (due to compliance release), but this is welcome!\r\n\r\nI think it should be part of inspec core, so the place is great!\r\n\r\nAs an additional thought: We need to consider how it will work in different targeting types, i.e. `inspec exec -t ssh://...` or do you just `inspec exec -t 192.168.0.1` in that case. We can reflect that, btw, since we have support for creating profiles for non-node targets (i.e. everything that is not a container or regular node). A few more lines to add for full support, but that shouldn't stop you from creating a baseline resource. What do you envision it to look for you right now?"}}