mirror of
https://github.com/mastodon/mastodon.git
synced 2026-04-26 10:06:15 -05:00
Some checks failed
Check i18n / check-i18n (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (ruby) (push) Has been cancelled
Check formatting / lint (push) Has been cancelled
Ruby Linting / lint (push) Has been cancelled
Historical data migration test / test (14-alpine) (push) Has been cancelled
Historical data migration test / test (15-alpine) (push) Has been cancelled
Historical data migration test / test (16-alpine) (push) Has been cancelled
Historical data migration test / test (17-alpine) (push) Has been cancelled
Ruby Testing / build (production) (push) Has been cancelled
Ruby Testing / build (test) (push) Has been cancelled
Ruby Testing / test (.ruby-version) (push) Has been cancelled
Ruby Testing / test (3.2) (push) Has been cancelled
Ruby Testing / test (3.3) (push) Has been cancelled
Ruby Testing / ImageMagick tests (.ruby-version) (push) Has been cancelled
Ruby Testing / ImageMagick tests (3.2) (push) Has been cancelled
Ruby Testing / ImageMagick tests (3.3) (push) Has been cancelled
Ruby Testing / End to End testing (.ruby-version) (push) Has been cancelled
Ruby Testing / End to End testing (3.2) (push) Has been cancelled
Ruby Testing / End to End testing (3.3) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.10.2) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (3.2, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Has been cancelled
Ruby Testing / Elastic Search integration testing (3.3, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Has been cancelled
30 lines
1.0 KiB
Ruby
30 lines
1.0 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe 'Api::Fasp::DataSharing::V0::Continuations', feature: :fasp do
|
|
include ProviderRequestHelper
|
|
|
|
describe 'POST /api/fasp/data_sharing/v0/backfill_requests/:id/continuations' do
|
|
subject do
|
|
post api_fasp_data_sharing_v0_backfill_request_continuation_path(backfill_request), headers:, as: :json
|
|
end
|
|
|
|
let(:provider) { Fabricate(:confirmed_fasp) }
|
|
let(:backfill_request) { Fabricate(:fasp_backfill_request, fasp_provider: provider) }
|
|
let(:headers) do
|
|
request_authentication_headers(provider,
|
|
url: api_fasp_data_sharing_v0_backfill_request_continuation_url(backfill_request),
|
|
method: :post)
|
|
end
|
|
|
|
it_behaves_like 'forbidden for unconfirmed provider'
|
|
|
|
it 'queues a job to continue the given backfill request' do
|
|
subject
|
|
expect(response).to have_http_status(204)
|
|
expect(Fasp::BackfillWorker).to have_enqueued_sidekiq_job(backfill_request.id)
|
|
end
|
|
end
|
|
end
|