sentryApp.ts 663 B

12345678910111213141516171819202122232425
  1. import type {SentryApp} from 'sentry/types/integrations';
  2. export function SentryAppFixture(params: Partial<SentryApp> = {}): SentryApp {
  3. return {
  4. name: 'Sample App',
  5. author: 'Sentry',
  6. slug: 'sample-app',
  7. scopes: ['project:read'],
  8. events: [],
  9. status: 'unpublished',
  10. uuid: '123456123456123456123456',
  11. webhookUrl: 'https://example.com/webhook',
  12. redirectUrl: 'https://example/com/setup',
  13. isAlertable: false,
  14. clientId: 'client-id',
  15. clientSecret: 'client-secret',
  16. overview: 'This is an app.',
  17. schema: {},
  18. featureData: [],
  19. popularity: 3,
  20. verifyInstall: false,
  21. avatars: [],
  22. ...params,
  23. };
  24. }