Update fixtures

This commit is contained in:
Artur Beljajev 2018-01-21 23:27:41 +02:00
parent a235db5e83
commit 46c82b3d99
4 changed files with 21 additions and 7 deletions

View file

@ -14,6 +14,6 @@ class Repp::DomainTransfersTest < ActionDispatch::IntegrationTest
private private
def http_auth_key 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
end end

View file

@ -1,3 +1,9 @@
shop: api_bestnames:
session_id: 1
registrar: bestnames 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)})) %>

View file

@ -1,11 +1,19 @@
api: api_bestnames:
username: test username: test_bestnames
password: test password: testtest
type: ApiUser type: ApiUser
registrar: bestnames registrar: bestnames
roles: roles:
- super - super
api_goodnames:
username: test_goodnames
password: testtest
type: ApiUser
registrar: goodnames
roles:
- super
admin: admin:
username: test username: test
type: AdminUser type: AdminUser

View file

@ -2,7 +2,7 @@ require 'test_helper'
class RegistrarDomainsTest < ActionDispatch::IntegrationTest class RegistrarDomainsTest < ActionDispatch::IntegrationTest
def setup def setup
login_as users(:api) login_as users(:api_bestnames)
end end
def test_downloads_domain_list_as_csv def test_downloads_domain_list_as_csv