{"action":"created","issue":{"url":"https://api.github.com/repos/chef/inspec/issues/1188","repository_url":"https://api.github.com/repos/chef/inspec","labels_url":"https://api.github.com/repos/chef/inspec/issues/1188/labels{/name}","comments_url":"https://api.github.com/repos/chef/inspec/issues/1188/comments","events_url":"https://api.github.com/repos/chef/inspec/issues/1188/events","html_url":"https://github.com/chef/inspec/issues/1188","id":180292488,"number":1188,"title":"Using \"cmp\" Against File Mode Fails","user":{"login":"xiGUAwanOU","id":10491065,"avatar_url":"https://avatars.githubusercontent.com/u/10491065?v=3","gravatar_id":"","url":"https://api.github.com/users/xiGUAwanOU","html_url":"https://github.com/xiGUAwanOU","followers_url":"https://api.github.com/users/xiGUAwanOU/followers","following_url":"https://api.github.com/users/xiGUAwanOU/following{/other_user}","gists_url":"https://api.github.com/users/xiGUAwanOU/gists{/gist_id}","starred_url":"https://api.github.com/users/xiGUAwanOU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiGUAwanOU/subscriptions","organizations_url":"https://api.github.com/users/xiGUAwanOU/orgs","repos_url":"https://api.github.com/users/xiGUAwanOU/repos","events_url":"https://api.github.com/users/xiGUAwanOU/events{/privacy}","received_events_url":"https://api.github.com/users/xiGUAwanOU/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/inspec/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/chef/inspec/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"vjeffrey","id":10341541,"avatar_url":"https://avatars.githubusercontent.com/u/10341541?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeffrey","html_url":"https://github.com/vjeffrey","followers_url":"https://api.github.com/users/vjeffrey/followers","following_url":"https://api.github.com/users/vjeffrey/following{/other_user}","gists_url":"https://api.github.com/users/vjeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeffrey/subscriptions","organizations_url":"https://api.github.com/users/vjeffrey/orgs","repos_url":"https://api.github.com/users/vjeffrey/repos","events_url":"https://api.github.com/users/vjeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/vjeffrey/received_events","type":"User","site_admin":false},"assignees":[{"login":"vjeffrey","id":10341541,"avatar_url":"https://avatars.githubusercontent.com/u/10341541?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeffrey","html_url":"https://github.com/vjeffrey","followers_url":"https://api.github.com/users/vjeffrey/followers","following_url":"https://api.github.com/users/vjeffrey/following{/other_user}","gists_url":"https://api.github.com/users/vjeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeffrey/subscriptions","organizations_url":"https://api.github.com/users/vjeffrey/orgs","repos_url":"https://api.github.com/users/vjeffrey/repos","events_url":"https://api.github.com/users/vjeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/vjeffrey/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/chef/inspec/milestones/24","html_url":"https://github.com/chef/inspec/milestones/1.3.0","labels_url":"https://api.github.com/repos/chef/inspec/milestones/24/labels","id":2059272,"number":24,"title":"1.3.0","description":"","creator":{"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},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-10-10T13:35:36Z","updated_at":"2016-10-10T13:52:54Z","due_on":"2016-10-14T00:00:00Z","closed_at":null},"comments":3,"created_at":"2016-09-30T12:31:11Z","updated_at":"2016-10-10T16:26:48Z","closed_at":null,"body":"### Description\r\n\r\nI'm writing an inspec description for a file downloaded by `s3_file` cookbook, to test its mode is correct.\r\n\r\nThe mode of the downloaded file is set to `0660`, which is ensured manually with `ls -l` in the virtual machine. And my inspec description is like this:\r\n\r\n  ```ruby\r\ndescribe file('/tmp/exampleapi.tar.gz') do\r\n  it { should exist }\r\n  its('owner') { should eq 'vagrant' }\r\n  its('group') { should eq 'vagrant' }\r\n  its('mode') { should cmp '0660' }\r\nend\r\n  ```\r\n\r\nThis example fails on one of the build servers (we have two of them), and I've also tried to manually execute `kitchen converge` and `kitchen verify`, it still fails.\r\n\r\nThe failures have following error message:\r\n\r\n  ```text\r\nFailures:\r\n\r\n  1) File /tmp/exampleapi.tar.gz mode should cmp \"0660\"\r\n     Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failur, _opts| raise failure }\r\n\r\n       expected: 0660\r\n            got: 0660\r\n\r\n       (compared using `cmp` matcher)\r\n  ```\r\n\r\nHowever, if I use `should eq 0660`, there is no problem any more.\r\n\r\n### InSpec and Platform Version\r\n\r\nTest Kitchen version: 1.7.3\r\n\r\nI have no idea about how to get the version of InSpec. I'm using `.kitchen.yml` and specified the `verifier` as `inspec`.\r\n\r\nThe build server is a Mac mini Server (Late 2012), with OS X El Capitan, Version 10.11.5"},"comment":{"url":"https://api.github.com/repos/chef/inspec/issues/comments/252671250","html_url":"https://github.com/chef/inspec/issues/1188#issuecomment-252671250","issue_url":"https://api.github.com/repos/chef/inspec/issues/1188","id":252671250,"user":{"login":"vjeffrey","id":10341541,"avatar_url":"https://avatars.githubusercontent.com/u/10341541?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeffrey","html_url":"https://github.com/vjeffrey","followers_url":"https://api.github.com/users/vjeffrey/followers","following_url":"https://api.github.com/users/vjeffrey/following{/other_user}","gists_url":"https://api.github.com/users/vjeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeffrey/subscriptions","organizations_url":"https://api.github.com/users/vjeffrey/orgs","repos_url":"https://api.github.com/users/vjeffrey/repos","events_url":"https://api.github.com/users/vjeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/vjeffrey/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T16:26:48Z","updated_at":"2016-10-10T16:26:48Z","body":"@xiGUAwanOU  some further testing on our end seems to be confirming that the cmp problem is fixed.   If I'm understanding correctly, this is no longer a problem for you as well, right? (\"I have updated the Chef DK version on the build machine, and this problem doesn't exist anymore\")    Please confirm so we can close the issue if that is the case. Thank you :)"}}
{"actor":{"display_login":"vjeffrey"}}