jiraIntegrationProvider.ts 1023 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import type {IntegrationProvider} from 'sentry/types/integrations';
  2. export function JiraIntegrationProviderFixture(
  3. params: Partial<IntegrationProvider> = {}
  4. ): IntegrationProvider {
  5. return {
  6. key: 'jira',
  7. name: 'Jira',
  8. canAdd: false,
  9. features: [],
  10. slug: 'jira',
  11. canDisable: true,
  12. setupDialog: {
  13. url: '/jira-integration-setup-uri/',
  14. width: 100,
  15. height: 100,
  16. },
  17. metadata: {
  18. description: '*markdown* formatted Jira _description_',
  19. features: [
  20. {description: '*markdown* feature description', featureGate: '', featureId: 3},
  21. ],
  22. author: 'Rick',
  23. noun: 'Instance',
  24. issue_url: 'http://example.com/jira_integration_issue_url',
  25. source_url: 'http://example.com/jira_integration_source_url',
  26. aspects: {
  27. externalInstall: {
  28. url: 'http://jira.com',
  29. buttonText: 'Visit Jira',
  30. noticeText: 'You must visit jira to install the integration',
  31. },
  32. },
  33. },
  34. ...params,
  35. };
  36. }