adminQueue.spec.tsx 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import {render} from 'sentry-test/reactTestingLibrary';
  2. import AdminQueue from 'sentry/views/admin/adminQueue';
  3. // TODO(dcramer): this doesnt really test anything as we need to
  4. // mock the API Response/wait on it
  5. describe('AdminQueue', function () {
  6. describe('render()', function () {
  7. beforeEach(() => {
  8. MockApiClient.addMockResponse({
  9. url: '/internal/queue/tasks/',
  10. body: [
  11. 'celery.backend_cleanup',
  12. 'celery.chain',
  13. 'celery.chord',
  14. 'celery.chord_unlock',
  15. 'celery.chunks',
  16. 'celery.group',
  17. 'celery.map',
  18. 'celery.starmap',
  19. 'sentry.celery.SentryTask',
  20. 'sentry.tasks.activity.send_activity_notifications',
  21. 'sentry.tasks.clear_expired_resolutions',
  22. 'sentry.tasks.commits.fetch_commits',
  23. 'sentry.tasks.deletion.delete_group',
  24. 'sentry.tasks.deletion.run_deletion',
  25. 'sentry.tasks.deletion.run_scheduled_deletions',
  26. 'sentry.tasks.digests.deliver_digest',
  27. 'sentry.tasks.digests.schedule_digests',
  28. 'sentry.tasks.email.process_inbound_email',
  29. 'sentry.tasks.email.send_email',
  30. 'sentry.tasks.email_unlink_notifications',
  31. 'sentry.tasks.merge.merge_group',
  32. 'sentry.tasks.merge.rehash_group_events',
  33. 'sentry.tasks.post_process.plugin_post_process_group',
  34. 'sentry.tasks.post_process.post_process_group',
  35. 'sentry.tasks.process_buffer.process_incr',
  36. 'sentry.tasks.process_buffer.process_pending',
  37. 'sentry.tasks.send_sso_link_emails',
  38. 'sentry.tasks.store.preprocess_event',
  39. 'sentry.tasks.store.preprocess_event_from_reprocessing',
  40. 'sentry.tasks.store.process_event',
  41. 'sentry.tasks.store.process_event_from_reprocessing',
  42. 'sentry.tasks.store.save_event',
  43. 'sentry.tasks.unmerge',
  44. ],
  45. });
  46. });
  47. it('renders', function () {
  48. MockApiClient.addMockResponse({
  49. url: '/internal/stats/',
  50. body: [],
  51. });
  52. const wrapper = render(<AdminQueue />);
  53. expect(wrapper.container).toSnapshot();
  54. });
  55. });
  56. });