sfdc-convert-attachments-to-chatter-files
sfdc-convert-attachments-to-chatter-files copied to clipboard
Tests are failing when no roles are configured for organization
Tests are failing when no roles are configured for organization. It's necessary to add at least one role. Perhaps it makes sense to add this information to the readme or updating the test code. I'm up for doing the pull request for this.
Class | Test Method | Error | Stack Trace |
---|---|---|---|
ConvertAttachmentsToFilesServiceTest | test_fail_convert_0size_attachment | System.QueryException: List has no rows for assignment to SObject | Stack Trace: Class.ConvertAttachmentsToFilesServiceTest.test_fail_convert_0size_attachment: line 130, column 1 |
ConvertAttachmentsToFilesServiceTest | test_no_delete | System.QueryException: List has no rows for assignment to SObject | Stack Trace: Class.ConvertAttachmentsToFilesServiceTest.test_no_delete: line 208, column 1 |
ConvertAttachmentsToFilesServiceTest | test_no_duplicates | System.QueryException: List has no rows for assignment to SObject | Stack Trace: Class.ConvertAttachmentsToFilesServiceTest.test_no_duplicates: line 539, column 1 |
ConvertAttachmentsToFilesServiceTest | test_special_characters | System.QueryException: List has no rows for assignment to SObject | Stack Trace: Class.ConvertAttachmentsToFilesServiceTest.test_special_characters: line 16, column 1 |
ConvertAttachmentsToFilesServiceTest | test_no_share_private_attachments_with_parent_record | System.QueryException: List has no rows for assignment to SObject | Stack Trace: Class.ConvertAttachmentsToFilesServiceTest.test_no_share_private_attachments_with_parent_record: line 373, column 1 |
ConvertAttachmentsToFilesServiceTest | test_yes_delete | System.QueryException: List has no rows for assignment to SObject | Stack Trace: Class.ConvertAttachmentsToFilesServiceTest.test_yes_delete: line 289, column 1 |
ConvertAttachmentsToFilesServiceTest | test_yes_share_private_attachments_with_parent_record | System.QueryException: List has no rows for assignment to SObject | Stack Trace: Class.ConvertAttachmentsToFilesServiceTest.test_yes_share_private_attachments_with_parent_record: line 458, column 1 |
Hi @nikitakarpenkov,
Interesting, don't think I've tested in an org without a role in it. I'll check it out. Feel free to submit a pull request too if you'd like.
Unless you're wanting to make changes to the source code itself, you can try installing the managed package and avoid the tests altogether.
Thanks,
Doug