testUtils.tsx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import type {Commit, Repository} from 'sentry/types/integrations';
  2. import type {User} from 'sentry/types/user';
  3. import type {EventData} from 'sentry/utils/discover/eventView';
  4. export const defaultRow: EventData = {
  5. id: '6b43e285de834ec5b5fe30d62d549b20',
  6. issue: 'SENTRY-VVY',
  7. release: 'backend@22.10.0+aaf33944f93dc8fa4234ca046a8d88fb1dccfb76',
  8. title: 'error: Error -3 while decompressing data: invalid stored block lengths',
  9. 'issue.id': 3512441874,
  10. 'project.name': 'sentry',
  11. };
  12. export const mockedCommit: Commit = {
  13. dateCreated: '2020-11-30T18:46:31Z',
  14. id: 'f7f395d14b2fe29a4e253bf1d3094d61e6ad4434',
  15. message: 'ref(commitRow): refactor to fc\n',
  16. author: {
  17. id: '0',
  18. username: 'author',
  19. ip_address: '192.168.1.1',
  20. email: 'author@commit.com',
  21. name: 'Author',
  22. } as User,
  23. repository: {
  24. id: '1',
  25. integrationId: '2',
  26. name: 'getsentry/sentry',
  27. dateCreated: '2019-11-30T18:46:31Z',
  28. } as Repository,
  29. releases: [],
  30. };
  31. export const mockedUser1 = {
  32. id: '2',
  33. username: 'author456',
  34. ip_address: '192.168.1.1',
  35. email: 'author1@commit.com',
  36. name: 'Key Name',
  37. } as User;
  38. export const mockedUser2 = {
  39. id: '3',
  40. username: 'author123',
  41. ip_address: '192.168.1.3',
  42. email: 'author2@commit.com',
  43. name: 'Value Name',
  44. } as User;