project.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import {ProjectFixture as SentryProjectFixture} from 'sentry-fixture/project';
  2. import {TeamFixture} from 'sentry-fixture/team';
  3. import type {Project as TProject} from 'sentry/types/project';
  4. export function ProjectFixture(params: Partial<TProject>): TProject {
  5. const rodentOpsTeam = TeamFixture({
  6. id: '187649',
  7. name: 'Rodent Ops',
  8. slug: 'rodent-ops',
  9. });
  10. return SentryProjectFixture({
  11. access: ['project:releases', 'project:read'],
  12. dateCreated: '2018-01-01T18:19:31.693Z',
  13. firstEvent: '2018-01-01T18:49:24Z',
  14. hasAccess: true,
  15. id: '1213086',
  16. isBookmarked: false,
  17. isMember: false,
  18. latestDeploys: null,
  19. name: 'squirrel-finder-backend',
  20. platform: 'python-flask',
  21. slug: 'squirrel-finder-backend',
  22. stats: [
  23. [1514764800.0, 0],
  24. [1514851200.0, 0],
  25. [1514937600.0, 0],
  26. [1515024000.0, 0],
  27. [1515110400.0, 0],
  28. [1515196800.0, 0],
  29. [1515283200.0, 0],
  30. [1515369600.0, 0],
  31. [1515456000.0, 0],
  32. [1515542400.0, 0],
  33. [1515628800.0, 0],
  34. [1515715200.0, 0],
  35. [1515801600.0, 0],
  36. [1515888000.0, 0],
  37. [1515974400.0, 0],
  38. [1516060800.0, 0],
  39. [1516147200.0, 0],
  40. [1516233600.0, 0],
  41. [1516320000.0, 0],
  42. [1516406400.0, 0],
  43. [1516492800.0, 0],
  44. [1516579200.0, 0],
  45. [1516665600.0, 0],
  46. [1516752000.0, 0],
  47. [1516838400.0, 0],
  48. [1516924800.0, 0],
  49. [1517011200.0, 0],
  50. [1517097600.0, 0],
  51. [1517184000.0, 0],
  52. [1517270400.0, 0],
  53. ],
  54. team: rodentOpsTeam,
  55. teams: [rodentOpsTeam],
  56. ...params,
  57. });
  58. }