mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 09:27:19 +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
|
class RegistrarsControllerTest < ActionDispatch::IntegrationTest
|
||||||
def setup
|
def setup
|
||||||
login_as users(:admin)
|
login_as users(:admin)
|
||||||
@registrar = registrars(:valid)
|
@registrar = registrars(:bestnames)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_updates_website
|
def test_updates_website
|
||||||
|
|
6
test/fixtures/contacts.yml
vendored
6
test/fixtures/contacts.yml
vendored
|
@ -3,7 +3,7 @@ john:
|
||||||
ident: 1234
|
ident: 1234
|
||||||
ident_type: priv
|
ident_type: priv
|
||||||
ident_country_code: US
|
ident_country_code: US
|
||||||
registrar: acme
|
registrar: bestnames
|
||||||
code: john-001
|
code: john-001
|
||||||
|
|
||||||
jane:
|
jane:
|
||||||
|
@ -11,13 +11,13 @@ jane:
|
||||||
ident: 1234
|
ident: 1234
|
||||||
ident_type: priv
|
ident_type: priv
|
||||||
ident_country_code: US
|
ident_country_code: US
|
||||||
registrar: acme
|
registrar: bestnames
|
||||||
code: jane-001
|
code: jane-001
|
||||||
|
|
||||||
acme_ltd:
|
acme_ltd:
|
||||||
name: Acme Ltd
|
name: Acme Ltd
|
||||||
ident: 1234
|
ident: 1234
|
||||||
ident_type: org
|
ident_type: org
|
||||||
registrar: acme
|
registrar: bestnames
|
||||||
ident_country_code: US
|
ident_country_code: US
|
||||||
code: acme-ltd-001
|
code: acme-ltd-001
|
||||||
|
|
6
test/fixtures/domains.yml
vendored
6
test/fixtures/domains.yml
vendored
|
@ -1,20 +1,20 @@
|
||||||
shop:
|
shop:
|
||||||
name: shop.test
|
name: shop.test
|
||||||
registrar: valid
|
registrar: bestnames
|
||||||
registrant: john
|
registrant: john
|
||||||
auth_info: 65078d5
|
auth_info: 65078d5
|
||||||
valid_to: 2010-07-05
|
valid_to: 2010-07-05
|
||||||
|
|
||||||
airport:
|
airport:
|
||||||
name: airport.test
|
name: airport.test
|
||||||
registrar: valid
|
registrar: bestnames
|
||||||
registrant: john
|
registrant: john
|
||||||
auth_info: 55438j5
|
auth_info: 55438j5
|
||||||
valid_to: 2010-07-05
|
valid_to: 2010-07-05
|
||||||
|
|
||||||
library:
|
library:
|
||||||
name: library.test
|
name: library.test
|
||||||
registrar: valid
|
registrar: bestnames
|
||||||
registrant: acme_ltd
|
registrant: acme_ltd
|
||||||
auth_info: 45118f5
|
auth_info: 45118f5
|
||||||
valid_to: 2010-07-05
|
valid_to: 2010-07-05
|
||||||
|
|
2
test/fixtures/epp_sessions.yml
vendored
2
test/fixtures/epp_sessions.yml
vendored
|
@ -1,3 +1,3 @@
|
||||||
shop:
|
shop:
|
||||||
registrar: valid
|
registrar: bestnames
|
||||||
data: <%= Base64.encode64(Marshal.dump({api_user_id: ActiveRecord::Fixtures.identify(:api)})) %>
|
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
|
bestnames:
|
||||||
name: Acme Ltd
|
name: Best Names Ltd
|
||||||
reg_no: 1234
|
reg_no: 1234
|
||||||
|
code: bestnames
|
||||||
country_code: US
|
country_code: US
|
||||||
email: acme@example.com
|
email: info@bestnames.test
|
||||||
code: 1234
|
|
||||||
accounting_customer_code: ACCOUNT001
|
accounting_customer_code: ACCOUNT001
|
||||||
language: en
|
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
|
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:
|
api:
|
||||||
username: test
|
username: test
|
||||||
|
password: test
|
||||||
type: ApiUser
|
type: ApiUser
|
||||||
registrar: valid
|
registrar: bestnames
|
||||||
roles:
|
roles:
|
||||||
- super
|
- super
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ require 'test_helper'
|
||||||
class EditRegistrarTest < ActionDispatch::IntegrationTest
|
class EditRegistrarTest < ActionDispatch::IntegrationTest
|
||||||
def setup
|
def setup
|
||||||
login_as users(:admin)
|
login_as users(:admin)
|
||||||
@registrar = registrars(:valid)
|
@registrar = registrars(:bestnames)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_updates_registrar
|
def test_updates_registrar
|
||||||
|
|
|
@ -5,7 +5,7 @@ class ShowRegistrarTest < ActionDispatch::IntegrationTest
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
login_as users(:admin)
|
login_as users(:admin)
|
||||||
@registrar = registrars(:complete)
|
@registrar = registrars(:bestnames)
|
||||||
visit admin_registrar_path(@registrar)
|
visit admin_registrar_path(@registrar)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ require 'test_helper'
|
||||||
|
|
||||||
class RegistrarTest < ActiveSupport::TestCase
|
class RegistrarTest < ActiveSupport::TestCase
|
||||||
def setup
|
def setup
|
||||||
@registrar = registrars(:valid)
|
@registrar = registrars(:bestnames)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_valid
|
def test_valid
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue