mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Create separate key for Bounces API
This commit is contained in:
parent
b892927f11
commit
1b6c451656
5 changed files with 14 additions and 7 deletions
|
@ -2,7 +2,7 @@ require 'test_helper'
|
|||
|
||||
class BouncesApiV1CreateTest < ActionDispatch::IntegrationTest
|
||||
def setup
|
||||
@api_key = "Basic #{ENV['api_shared_key']}"
|
||||
@api_key = "Basic #{ENV['rwhois_bounces_api_shared_key']}"
|
||||
@headers = { "Authorization": "#{@api_key}" }
|
||||
@json_body = { "data": valid_bounce_request }.as_json
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test_helper'
|
|||
|
||||
class ApiV1ContactRequestTest < ActionDispatch::IntegrationTest
|
||||
def setup
|
||||
@api_key = "Basic #{ENV['api_shared_key']}"
|
||||
@api_key = "Basic #{ENV['rwhois_internal_api_shared_key']}"
|
||||
@headers = { "Authorization": "#{@api_key}" }
|
||||
@json_create = { "contact_request": valid_contact_request_create }.as_json
|
||||
@json_update = { "contact_request": valid_contact_request_update }.as_json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue