Fix autogenerated fabricators

This commit is contained in:
David Roetzel 2025-02-25 11:01:07 +01:00
parent 7dc250d368
commit de3a9b247d
No known key found for this signature in database
4 changed files with 18 additions and 26 deletions

View File

@ -1,9 +1,9 @@
# frozen_string_literal: true # frozen_string_literal: true
Fabricator('Fasp::BackfillRequest') do Fabricator(:fasp_backfill_request, from: 'Fasp::BackfillRequest') do
category 'MyString' category 'content'
max_count 1 max_count 10
cursor 'MyString' cursor nil
fulfilled false fulfilled false
fasp_provider nil fasp_provider
end end

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
Fabricator('Fasp::DebugCallback') do Fabricator(:fasp_debug_callback, from: 'Fasp::DebugCallback') do
fasp_provider nil fasp_provider
ip 'MyString' ip '127.0.0.234'
request_body 'MyText' request_body 'MyText'
end end

View File

@ -1,14 +1,10 @@
# frozen_string_literal: true # frozen_string_literal: true
Fabricator('Fasp::Provider') do Fabricator(:fasp_provider, from: 'Fasp::Provider') do
name 'MyString' name { Faker::App.name }
base_url 'MyString' base_url { Faker::Internet.unique.url }
sign_in_url 'MyString' sign_in_url { Faker::Internet.url }
remote_identifier 'MyString' remote_identifier 'MyString'
provider_public_key_pem 'MyString' provider_public_key_pem 'MyString'
server_private_key_pem 'MyString' capabilities []
capabilities ''
privacy_policy ''
contact_email 'MyString'
fediverse_account 'MyString'
end end

View File

@ -1,12 +1,8 @@
# frozen_string_literal: true # frozen_string_literal: true
Fabricator('Fasp::Subscription') do Fabricator(:fasp_subscription, from: 'Fasp::Subscription') do
category 'MyString' category 'content'
subscription_type 'MyString' subscription_type 'lifecycle'
max_batch_size 1 max_batch_size 10
threshold_timeframe 1 fasp_provider
threshold_shares 1
threshold_likes 1
threshold_replies 1
fasp_provider nil
end end