mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 01:17:18 +02:00
Update fixtures
This commit is contained in:
parent
ce58feba6e
commit
013122335d
9 changed files with 17 additions and 28 deletions
|
@ -3,7 +3,7 @@ require 'test_helper'
|
|||
class RegistrarsControllerTest < ActionDispatch::IntegrationTest
|
||||
def setup
|
||||
login_as users(:admin)
|
||||
@registrar = registrars(:valid)
|
||||
@registrar = registrars(:bestnames)
|
||||
end
|
||||
|
||||
def test_updates_website
|
||||
|
|
6
test/fixtures/contacts.yml
vendored
6
test/fixtures/contacts.yml
vendored
|
@ -3,7 +3,7 @@ john:
|
|||
ident: 1234
|
||||
ident_type: priv
|
||||
ident_country_code: US
|
||||
registrar: acme
|
||||
registrar: bestnames
|
||||
code: john-001
|
||||
|
||||
jane:
|
||||
|
@ -11,13 +11,13 @@ jane:
|
|||
ident: 1234
|
||||
ident_type: priv
|
||||
ident_country_code: US
|
||||
registrar: acme
|
||||
registrar: bestnames
|
||||
code: jane-001
|
||||
|
||||
acme_ltd:
|
||||
name: Acme Ltd
|
||||
ident: 1234
|
||||
ident_type: org
|
||||
registrar: acme
|
||||
registrar: bestnames
|
||||
ident_country_code: US
|
||||
code: acme-ltd-001
|
||||
|
|
6
test/fixtures/domains.yml
vendored
6
test/fixtures/domains.yml
vendored
|
@ -1,20 +1,20 @@
|
|||
shop:
|
||||
name: shop.test
|
||||
registrar: valid
|
||||
registrar: bestnames
|
||||
registrant: john
|
||||
auth_info: 65078d5
|
||||
valid_to: 2010-07-05
|
||||
|
||||
airport:
|
||||
name: airport.test
|
||||
registrar: valid
|
||||
registrar: bestnames
|
||||
registrant: john
|
||||
auth_info: 55438j5
|
||||
valid_to: 2010-07-05
|
||||
|
||||
library:
|
||||
name: library.test
|
||||
registrar: valid
|
||||
registrar: bestnames
|
||||
registrant: acme_ltd
|
||||
auth_info: 45118f5
|
||||
valid_to: 2010-07-05
|
||||
|
|
2
test/fixtures/epp_sessions.yml
vendored
2
test/fixtures/epp_sessions.yml
vendored
|
@ -1,3 +1,3 @@
|
|||
shop:
|
||||
registrar: valid
|
||||
registrar: bestnames
|
||||
data: <%= Base64.encode64(Marshal.dump({api_user_id: ActiveRecord::Fixtures.identify(:api)})) %>
|
||||
|
|
20
test/fixtures/registrars.yml
vendored
20
test/fixtures/registrars.yml
vendored
|
@ -1,21 +1,9 @@
|
|||
DEFAULTS: &DEFAULTS
|
||||
name: Acme Ltd
|
||||
bestnames:
|
||||
name: Best Names Ltd
|
||||
reg_no: 1234
|
||||
code: bestnames
|
||||
country_code: US
|
||||
email: acme@example.com
|
||||
code: 1234
|
||||
email: info@bestnames.test
|
||||
accounting_customer_code: ACCOUNT001
|
||||
language: en
|
||||
|
||||
valid:
|
||||
<<: *DEFAULTS
|
||||
|
||||
complete:
|
||||
<<: *DEFAULTS
|
||||
name: 2
|
||||
reg_no: 2
|
||||
code: 2
|
||||
website: example.com
|
||||
email: info@example.com
|
||||
billing_email: billing@example.com
|
||||
vat_no: US12345
|
||||
|
|
3
test/fixtures/users.yml
vendored
3
test/fixtures/users.yml
vendored
|
@ -1,7 +1,8 @@
|
|||
api:
|
||||
username: test
|
||||
password: test
|
||||
type: ApiUser
|
||||
registrar: valid
|
||||
registrar: bestnames
|
||||
roles:
|
||||
- super
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'test_helper'
|
|||
class EditRegistrarTest < ActionDispatch::IntegrationTest
|
||||
def setup
|
||||
login_as users(:admin)
|
||||
@registrar = registrars(:valid)
|
||||
@registrar = registrars(:bestnames)
|
||||
end
|
||||
|
||||
def test_updates_registrar
|
||||
|
|
|
@ -5,7 +5,7 @@ class ShowRegistrarTest < ActionDispatch::IntegrationTest
|
|||
|
||||
def setup
|
||||
login_as users(:admin)
|
||||
@registrar = registrars(:complete)
|
||||
@registrar = registrars(:bestnames)
|
||||
visit admin_registrar_path(@registrar)
|
||||
end
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test_helper'
|
|||
|
||||
class RegistrarTest < ActiveSupport::TestCase
|
||||
def setup
|
||||
@registrar = registrars(:valid)
|
||||
@registrar = registrars(:bestnames)
|
||||
end
|
||||
|
||||
def test_valid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue