Add support for FASP data sharing (#34415)
This commit is contained in:
parent
3ea1f074ab
commit
a5a2c6dc7e
38 changed files with 1140 additions and 1 deletions
|
@ -15,4 +15,5 @@ Fabricator(:account) do
|
|||
user { |attrs| attrs[:domain].nil? ? Fabricate.build(:user, account: nil) : nil }
|
||||
uri { |attrs| attrs[:domain].nil? ? '' : "https://#{attrs[:domain]}/users/#{attrs[:username]}" }
|
||||
discoverable true
|
||||
indexable true
|
||||
end
|
||||
|
|
9
spec/fabricators/fasp/backfill_request_fabricator.rb
Normal file
9
spec/fabricators/fasp/backfill_request_fabricator.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Fabricator(:fasp_backfill_request, from: 'Fasp::BackfillRequest') do
|
||||
category 'content'
|
||||
max_count 10
|
||||
cursor nil
|
||||
fulfilled false
|
||||
fasp_provider
|
||||
end
|
8
spec/fabricators/fasp/subscription_fabricator.rb
Normal file
8
spec/fabricators/fasp/subscription_fabricator.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Fabricator(:fasp_subscription, from: 'Fasp::Subscription') do
|
||||
category 'content'
|
||||
subscription_type 'lifecycle'
|
||||
max_batch_size 10
|
||||
fasp_provider
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue