|
|
|
|
@@ -140,7 +140,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
|
|
|
|
|
result_data = JSON.parse(response.body)
|
|
|
|
|
expect(result_data['success']).to eq "true"
|
|
|
|
|
rescue => exception
|
|
|
|
|
if exception.include?('Errno::ETIMEDOUT:')
|
|
|
|
|
if exception.include?('ETIMEDOUT')
|
|
|
|
|
print_info "Encountered possible false negative timeout error checking exception."
|
|
|
|
|
expect(exception).to include('Failed to open TCP connection to hub-cloud.browserstack.com:80')
|
|
|
|
|
elsif exception.include?('401 Unauthorized')
|
|
|
|
|
@@ -163,7 +163,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
|
|
|
|
|
result_data = JSON.parse(response.body)
|
|
|
|
|
expect(result_data['success']).to eq "true"
|
|
|
|
|
rescue => exception
|
|
|
|
|
if exception.include?('Errno::ETIMEDOUT:')
|
|
|
|
|
if exception.include?('ETIMEDOUT')
|
|
|
|
|
print_info "Encountered possible false negative timeout error checking exception."
|
|
|
|
|
expect(exception).to include('Failed to open TCP connection to hub-cloud.browserstack.com:80')
|
|
|
|
|
elsif exception.include?('401 Unauthorized')
|
|
|
|
|
@@ -186,7 +186,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
|
|
|
|
|
result_data = JSON.parse(response.body)
|
|
|
|
|
expect(result_data['success']).to eq "true"
|
|
|
|
|
rescue => exception
|
|
|
|
|
if exception.include?('Errno::ETIMEDOUT:')
|
|
|
|
|
if exception.include?('ETIMEDOUT')
|
|
|
|
|
print_info "Encountered possible false negative timeout error checking exception."
|
|
|
|
|
expect(exception).to include('Failed to open TCP connection to hub-cloud.browserstack.com:80')
|
|
|
|
|
elsif exception.include?('401 Unauthorized')
|
|
|
|
|
@@ -210,7 +210,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
|
|
|
|
|
result_data = JSON.parse(response.body)
|
|
|
|
|
expect(result_data['success']).to eq "true"
|
|
|
|
|
rescue => exception
|
|
|
|
|
if exception.include?('Errno::ETIMEDOUT:')
|
|
|
|
|
if exception.include?('ETIMEDOUT')
|
|
|
|
|
print_info "Encountered possible false negative timeout error checking exception."
|
|
|
|
|
expect(exception).to include('Failed to open TCP connection to hub-cloud.browserstack.com:80')
|
|
|
|
|
elsif exception.include?('401 Unauthorized')
|
|
|
|
|
@@ -234,7 +234,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
|
|
|
|
|
result_data = JSON.parse(response.body)
|
|
|
|
|
expect(result_data['success']).to eq "true"
|
|
|
|
|
rescue => exception
|
|
|
|
|
if exception.include?('Errno::ETIMEDOUT:')
|
|
|
|
|
if exception.include?('ETIMEDOUT')
|
|
|
|
|
print_info "Encountered possible false negative timeout error checking exception."
|
|
|
|
|
expect(exception).to include('Failed to open TCP connection to hub-cloud.browserstack.com:80')
|
|
|
|
|
elsif exception.include?('401 Unauthorized')
|
|
|
|
|
@@ -265,7 +265,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
|
|
|
|
|
result_data = JSON.parse(response.body)
|
|
|
|
|
expect(result_data['success']).to eq "true"
|
|
|
|
|
rescue => exception
|
|
|
|
|
if exception.include?('Errno::ETIMEDOUT:')
|
|
|
|
|
if exception.include?('ETIMEDOUT')
|
|
|
|
|
print_info "Encountered possible false negative timeout error checking exception."
|
|
|
|
|
expect(exception).to include('Failed to open TCP connection to hub-cloud.browserstack.com:80')
|
|
|
|
|
elsif exception.include?('401 Unauthorized')
|
|
|
|
|
@@ -289,7 +289,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
|
|
|
|
|
result_data = JSON.parse(response.body)
|
|
|
|
|
expect(result_data['success']).to eq "true"
|
|
|
|
|
rescue => exception
|
|
|
|
|
if exception.include?('Errno::ETIMEDOUT:')
|
|
|
|
|
if exception.include?('ETIMEDOUT')
|
|
|
|
|
print_info "Encountered possible false negative timeout error checking exception."
|
|
|
|
|
expect(exception).to include('Failed to open TCP connection to hub-cloud.browserstack.com:80')
|
|
|
|
|
elsif exception.include?('401 Unauthorized')
|
|
|
|
|
@@ -316,7 +316,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
|
|
|
|
|
result_data = JSON.parse(response.body)
|
|
|
|
|
expect(result_data['success']).to eq "true"
|
|
|
|
|
rescue => exception
|
|
|
|
|
if exception.include?('Errno::ETIMEDOUT:')
|
|
|
|
|
if exception.include?('ETIMEDOUT')
|
|
|
|
|
print_info "Encountered possible false negative timeout error checking exception."
|
|
|
|
|
expect(exception).to include('Failed to open TCP connection to hub-cloud.browserstack.com:80')
|
|
|
|
|
elsif exception.include?('401 Unauthorized')
|
|
|
|
|
|