mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Updated fixtures
This commit is contained in:
parent
e73faae879
commit
639da20cc6
2 changed files with 21 additions and 10 deletions
5
test/fixtures/files/domain_versions.csv
vendored
5
test/fixtures/files/domain_versions.csv
vendored
|
@ -1,3 +1,8 @@
|
||||||
Name,Registrant,Registrar,Action,Created at
|
Name,Registrant,Registrar,Action,Created at
|
||||||
|
,John,,destroy,2023-12-04 22:00:00
|
||||||
|
shop.test,John,Best Names,update,2023-12-04 22:00:00
|
||||||
|
library.test,Acme Ltd,Best Names,create,2023-12-04 22:00:00
|
||||||
|
metro.test,Jack,Good Names,create,2023-09-04 21:00:00
|
||||||
|
cinema.test,John,Good Names,create,2023-09-04 21:00:00
|
||||||
,test_code,Best Names,update,2018-04-23 15:50:48
|
,test_code,Best Names,update,2018-04-23 15:50:48
|
||||||
,John,,update,2010-07-04 21:00:00
|
,John,,update,2010-07-04 21:00:00
|
||||||
|
|
|
26
test/fixtures/log_domains.yml
vendored
26
test/fixtures/log_domains.yml
vendored
|
@ -13,27 +13,31 @@ transfer_one:
|
||||||
event: update
|
event: update
|
||||||
object:
|
object:
|
||||||
name: 'shop.test'
|
name: 'shop.test'
|
||||||
|
registrant_id: <%= ActiveRecord::FixtureSet.identify(:john) %>
|
||||||
object_changes:
|
object_changes:
|
||||||
registrar_id: [<%= ActiveRecord::FixtureSet.identify(:goodnames) %>, <%= ActiveRecord::FixtureSet.identify(:bestnames) %>]
|
registrar_id: [<%= ActiveRecord::FixtureSet.identify(:goodnames) %>, <%= ActiveRecord::FixtureSet.identify(:bestnames) %>]
|
||||||
created_at: <%= 2.days.ago.to_s :db %>
|
created_at: <%= Time.zone.parse('2023-12-05') %>
|
||||||
|
|
||||||
create_one:
|
create_one:
|
||||||
item_id: 1111111
|
item_id: 1111111
|
||||||
item_type: Domain
|
item_type: Domain
|
||||||
event: create
|
event: create
|
||||||
object_changes:
|
object_changes:
|
||||||
name: [null, 'deleted.test']
|
name: [null, 'cinema.test']
|
||||||
registrar_id: [null, <%= ActiveRecord::FixtureSet.identify(:goodnames) %>]
|
registrar_id: [null, <%= ActiveRecord::FixtureSet.identify(:goodnames) %>]
|
||||||
created_at: <%= 3.months.ago.to_s :db %>
|
registrant_id: [null, <%= ActiveRecord::FixtureSet.identify(:john) %>]
|
||||||
|
created_at: <%= Time.zone.parse('2023-09-05') %>
|
||||||
|
|
||||||
destroy_one:
|
destroy_one:
|
||||||
item_id: 1111111
|
item_id: 1111111
|
||||||
item_type: Domain
|
item_type: Domain
|
||||||
event: destroy
|
event: destroy
|
||||||
|
object:
|
||||||
|
registrant_id: <%= ActiveRecord::FixtureSet.identify(:john) %>
|
||||||
object_changes:
|
object_changes:
|
||||||
name: ['deleted.test', null]
|
name: ['cinema.test', null]
|
||||||
registrar_id: [<%= ActiveRecord::FixtureSet.identify(:goodnames) %>, null]
|
registrar_id: [<%= ActiveRecord::FixtureSet.identify(:goodnames) %>, null]
|
||||||
created_at: <%= 2.days.ago.to_s :db %>
|
created_at: <%= Time.zone.parse('2023-12-05') %>
|
||||||
|
|
||||||
create_two:
|
create_two:
|
||||||
item_id: <%= ActiveRecord::FixtureSet.identify(:library) %>
|
item_id: <%= ActiveRecord::FixtureSet.identify(:library) %>
|
||||||
|
@ -42,13 +46,15 @@ create_two:
|
||||||
object_changes:
|
object_changes:
|
||||||
name: [null, 'library.test']
|
name: [null, 'library.test']
|
||||||
registrar_id: [null, <%= ActiveRecord::FixtureSet.identify(:bestnames) %>]
|
registrar_id: [null, <%= ActiveRecord::FixtureSet.identify(:bestnames) %>]
|
||||||
created_at: <%= 2.days.ago.to_s :db %>
|
registrant_id: [null, <%= ActiveRecord::FixtureSet.identify(:acme_ltd) %>]
|
||||||
|
created_at: <%= Time.zone.parse('2023-12-05') %>
|
||||||
|
|
||||||
create_three:
|
create_three:
|
||||||
item_id: <%= ActiveRecord::FixtureSet.identify(:airport) %>
|
item_id: <%= ActiveRecord::FixtureSet.identify(:metro) %>
|
||||||
item_type: Domain
|
item_type: Domain
|
||||||
event: create
|
event: create
|
||||||
object_changes:
|
object_changes:
|
||||||
name: [null, 'airport.test']
|
name: [null, 'metro.test']
|
||||||
registrar_id: [null, <%= ActiveRecord::FixtureSet.identify(:bestnames) %>]
|
registrar_id: [null, <%= ActiveRecord::FixtureSet.identify(:goodnames) %>]
|
||||||
created_at: <%= 2.days.ago.to_s :db %>
|
registrant_id: [null, <%= ActiveRecord::FixtureSet.identify(:jack) %>]
|
||||||
|
created_at: <%= Time.zone.parse('2023-09-05') %>
|
Loading…
Add table
Add a link
Reference in a new issue