mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Update fixtures
This commit is contained in:
parent
a235db5e83
commit
46c82b3d99
4 changed files with 21 additions and 7 deletions
|
@ -14,6 +14,6 @@ class Repp::DomainTransfersTest < ActionDispatch::IntegrationTest
|
|||
private
|
||||
|
||||
def http_auth_key
|
||||
ActionController::HttpAuthentication::Basic.encode_credentials(users(:api).username, users(:api).password)
|
||||
ActionController::HttpAuthentication::Basic.encode_credentials(users(:api_bestnames).username, users(:api_bestnames).password)
|
||||
end
|
||||
end
|
||||
|
|
10
test/fixtures/epp_sessions.yml
vendored
10
test/fixtures/epp_sessions.yml
vendored
|
@ -1,3 +1,9 @@
|
|||
shop:
|
||||
api_bestnames:
|
||||
session_id: 1
|
||||
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_bestnames)})) %>
|
||||
|
||||
api_goodnames:
|
||||
session_id: 2
|
||||
registrar: goodnames
|
||||
data: <%= Base64.encode64(Marshal.dump({api_user_id: ActiveRecord::Fixtures.identify(:api_goodnames)})) %>
|
||||
|
|
14
test/fixtures/users.yml
vendored
14
test/fixtures/users.yml
vendored
|
@ -1,11 +1,19 @@
|
|||
api:
|
||||
username: test
|
||||
password: test
|
||||
api_bestnames:
|
||||
username: test_bestnames
|
||||
password: testtest
|
||||
type: ApiUser
|
||||
registrar: bestnames
|
||||
roles:
|
||||
- super
|
||||
|
||||
api_goodnames:
|
||||
username: test_goodnames
|
||||
password: testtest
|
||||
type: ApiUser
|
||||
registrar: goodnames
|
||||
roles:
|
||||
- super
|
||||
|
||||
admin:
|
||||
username: test
|
||||
type: AdminUser
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test_helper'
|
|||
|
||||
class RegistrarDomainsTest < ActionDispatch::IntegrationTest
|
||||
def setup
|
||||
login_as users(:api)
|
||||
login_as users(:api_bestnames)
|
||||
end
|
||||
|
||||
def test_downloads_domain_list_as_csv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue