{"action":"created","issue":{"url":"https://api.github.com/repos/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/issues/13","repository_url":"https://api.github.com/repos/DouglasCAyers/sfdc-convert-attachments-to-chatter-files","labels_url":"https://api.github.com/repos/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/issues/13/comments","events_url":"https://api.github.com/repos/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/issues/13/events","html_url":"https://github.com/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/issues/13","id":209165045,"number":13,"title":"Can't deploy package due to unit test failures","user":{"login":"agaillard44","id":25930850,"avatar_url":"https://avatars1.githubusercontent.com/u/25930850?v=3","gravatar_id":"","url":"https://api.github.com/users/agaillard44","html_url":"https://github.com/agaillard44","followers_url":"https://api.github.com/users/agaillard44/followers","following_url":"https://api.github.com/users/agaillard44/following{/other_user}","gists_url":"https://api.github.com/users/agaillard44/gists{/gist_id}","starred_url":"https://api.github.com/users/agaillard44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agaillard44/subscriptions","organizations_url":"https://api.github.com/users/agaillard44/orgs","repos_url":"https://api.github.com/users/agaillard44/repos","events_url":"https://api.github.com/users/agaillard44/events{/privacy}","received_events_url":"https://api.github.com/users/agaillard44/received_events","type":"User","site_admin":false},"labels":[{"id":271404042,"url":"https://api.github.com/repos/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"DouglasCAyers","id":4142577,"avatar_url":"https://avatars2.githubusercontent.com/u/4142577?v=3","gravatar_id":"","url":"https://api.github.com/users/DouglasCAyers","html_url":"https://github.com/DouglasCAyers","followers_url":"https://api.github.com/users/DouglasCAyers/followers","following_url":"https://api.github.com/users/DouglasCAyers/following{/other_user}","gists_url":"https://api.github.com/users/DouglasCAyers/gists{/gist_id}","starred_url":"https://api.github.com/users/DouglasCAyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouglasCAyers/subscriptions","organizations_url":"https://api.github.com/users/DouglasCAyers/orgs","repos_url":"https://api.github.com/users/DouglasCAyers/repos","events_url":"https://api.github.com/users/DouglasCAyers/events{/privacy}","received_events_url":"https://api.github.com/users/DouglasCAyers/received_events","type":"User","site_admin":false},"assignees":[{"login":"DouglasCAyers","id":4142577,"avatar_url":"https://avatars2.githubusercontent.com/u/4142577?v=3","gravatar_id":"","url":"https://api.github.com/users/DouglasCAyers","html_url":"https://github.com/DouglasCAyers","followers_url":"https://api.github.com/users/DouglasCAyers/followers","following_url":"https://api.github.com/users/DouglasCAyers/following{/other_user}","gists_url":"https://api.github.com/users/DouglasCAyers/gists{/gist_id}","starred_url":"https://api.github.com/users/DouglasCAyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouglasCAyers/subscriptions","organizations_url":"https://api.github.com/users/DouglasCAyers/orgs","repos_url":"https://api.github.com/users/DouglasCAyers/repos","events_url":"https://api.github.com/users/DouglasCAyers/events{/privacy}","received_events_url":"https://api.github.com/users/DouglasCAyers/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-02-21T14:42:01Z","updated_at":"2017-03-12T22:22:08Z","closed_at":null,"body":"Hi, \r\nI tried the package on a sandboxe and everything works like a charm. Unfortunately, i can't deploy it on production environment due to unit test failures : \r\n\r\nConvertAttachmentsToFilesServiceTest\ttest_inbound_email_and_do_convert\tSystem.AssertException: Assertion Failed \r\nStack Trace: Class.ConvertAttachmentsToFilesServiceTest.test_inbound_email_and_do_convert: line 291, column 1\r\n\r\nConvertAttachmentsToFilesServiceTest\ttest_inbound_email_and_do_not_convert\tSystem.AssertException: Assertion Failed: Expected: true, Actual: false \r\nStack Trace: Class.ConvertAttachmentsToFilesServiceTest.test_inbound_email_and_do_not_convert: line 369, column 1\r\n\r\n\r\nAm i the only one to experiencing that problem ? \r\n\r\nMany thanks in advance for your help"},"comment":{"url":"https://api.github.com/repos/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/issues/comments/285981859","html_url":"https://github.com/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/issues/13#issuecomment-285981859","issue_url":"https://api.github.com/repos/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/issues/13","id":285981859,"user":{"login":"DouglasCAyers","id":4142577,"avatar_url":"https://avatars2.githubusercontent.com/u/4142577?v=3","gravatar_id":"","url":"https://api.github.com/users/DouglasCAyers","html_url":"https://github.com/DouglasCAyers","followers_url":"https://api.github.com/users/DouglasCAyers/followers","following_url":"https://api.github.com/users/DouglasCAyers/following{/other_user}","gists_url":"https://api.github.com/users/DouglasCAyers/gists{/gist_id}","starred_url":"https://api.github.com/users/DouglasCAyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DouglasCAyers/subscriptions","organizations_url":"https://api.github.com/users/DouglasCAyers/orgs","repos_url":"https://api.github.com/users/DouglasCAyers/repos","events_url":"https://api.github.com/users/DouglasCAyers/events{/privacy}","received_events_url":"https://api.github.com/users/DouglasCAyers/received_events","type":"User","site_admin":false},"created_at":"2017-03-12T22:22:08Z","updated_at":"2017-03-12T22:22:08Z","body":"Hi @agaillard44,\r\n\r\nSorry for late reply. Been busy and now trying to catch up!\r\n\r\nI spot checked a few of those line numbers with test errors **System.QueryException: List has no rows for assignment to SObject** and seems to be when querying for profile whose name equals **Standard User**.\r\n\r\n> Profile p = [ SELECT id FROM Profile WHERE name = 'Standard User' ];\r\n\r\nDoes your org have a **standard** profile whose name is Standard User or something similar? My unit tests use that profile name because I thought that was something all orgs came with. If necessary, you may need to update the unit tests to query for a differently named profile for the testing, like **System Administrator** or something.\r\n\r\nThanks,\r\n\r\nDoug"}}
{"actor":{"display_login":"DouglasCAyers"}}