-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from internetee/404-fix-whitelisted-info
Disclosed contact info for whitelisted users
- Loading branch information
Showing
9 changed files
with
21 additions
and
31 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -268,4 +268,4 @@ DEPENDENCIES | |
webmock | ||
|
||
BUNDLED WITH | ||
2.3.11 | ||
2.5.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,9 +150,9 @@ def test_show_sensitive_data_of_private_entity_when_ip_is_in_whitelist | |
get '/v1/privatedomain.test', params: { format: :json } | ||
response_json = JSON.parse(response.body, symbolize_names: true) | ||
|
||
assert_equal 'Not Disclosed', response_json[:registrant] | ||
assert_equal 'Not Disclosed', response_json[:email] | ||
assert_equal 'Not Disclosed', response_json[:phone] | ||
assert_equal 'test', response_json[:registrant] | ||
assert_equal '[email protected]', response_json[:email] | ||
assert_equal '+555.555', response_json[:phone] | ||
assert_equal '2018-04-25T14:10:39+00:00', response_json[:registrant_changed] | ||
|
||
expected_admin_contacts = [ | ||
|
@@ -178,8 +178,8 @@ def test_show_sensitive_data_of_legal_entity_when_ip_is_in_whitelist | |
response_json = JSON.parse(response.body, symbolize_names: true) | ||
|
||
assert_equal 'test', response_json[:registrant] | ||
assert_equal 'Not Disclosed - Visit www.internet.ee for web-based WHOIS', response_json[:email] | ||
assert_equal 'Not Disclosed', response_json[:phone] | ||
assert_equal '[email protected]', response_json[:email] | ||
assert_equal '+555.555', response_json[:phone] | ||
assert_equal '2018-04-25T14:10:39+00:00', response_json[:registrant_changed] | ||
|
||
expected_admin_contacts = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,9 +51,9 @@ def test_registrant_details | |
visit whois_record_url(name: @whois_record.name) | ||
|
||
within '.registrant' do | ||
assert_text 'Name Not Disclosed' | ||
assert_text 'Email Not Disclosed' | ||
assert_text 'Phone Not Disclosed' | ||
assert_text 'Name John' | ||
assert_text 'Email [email protected]' | ||
assert_text '+555.555' | ||
assert_text 'Last update Not Disclosed - Visit www.internet.ee for web-based WHOIS' | ||
end | ||
end | ||
|