organizationIntegrations.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import type {OrganizationIntegration} from 'sentry/types/integrations';
  2. export function OrganizationIntegrationsFixture(
  3. params: Partial<OrganizationIntegration> = {}
  4. ): OrganizationIntegration {
  5. return {
  6. id: '15',
  7. name: 'hb-testing',
  8. icon: 'https://a.slack-edge.com/80588/img/avatars-teams/ava_0012-132.png',
  9. domainName: 'hb-testing.slack.com',
  10. accountType: null,
  11. status: 'active',
  12. provider: {
  13. key: 'slack',
  14. slug: 'slack',
  15. name: 'Slack',
  16. canAdd: true,
  17. canDisable: false,
  18. features: ['alert-rule', 'chat-unfurl'],
  19. aspects: {
  20. alerts: [
  21. {
  22. type: 'info',
  23. text: 'The Slack integration adds a new Alert Rule action to all projects. To enable automatic notifications sent to Slack you must create a rule using the slack workspace action in your project settings.',
  24. },
  25. ],
  26. },
  27. },
  28. configOrganization: [],
  29. configData: {
  30. installationType: 'born_as_bot',
  31. },
  32. externalId: 'TA99AB9CD',
  33. gracePeriodEnd: '',
  34. organizationId: '',
  35. organizationIntegrationStatus: 'active',
  36. ...params,
  37. };
  38. }