Skip to content

Instantly share code, notes, and snippets.

View ericbeland's full-sized avatar

HereC ericbeland

View GitHub Profile
2021-01-01T13:36:26.024-0500 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger]
2021-01-01T13:36:26.024-0500 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :browserup-proxy-core:test
2021-01-01T13:36:28.419-0500 [DEBUG] [TestEventLogger]
2021-01-01T13:36:28.419-0500 [DEBUG] [TestEventLogger] com.browserup.bup.mitmproxy.NewHarTest > testCaptureResponseCookiesInHar PASSED
2021-01-01T13:36:28.419-0500 [DEBUG] [TestEventLogger]
2021-01-01T13:36:28.419-0500 [DEBUG] [TestEventLogger] com.browserup.bup.mitmproxy.NewHarTest > testHttpDnsFailureCapturedInHar STARTED
2021-01-01T13:36:30.574-0500 [DEBUG] [TestEventLogger]
2021-01-01T13:36:30.574-0500 [DEBUG] [TestEventLogger] com.browserup.bup.mitmproxy.NewHarTest > testHttpDnsFailureCapturedInHar FAILED
2021-01-01T13:36:30.574-0500 [DEBUG] [TestEventLogger] org.junit.ComparisonFailure: Error in HAR response did not match expected DNS failure error message expected:<Unable to [resolve host: www.doesnotexist.addres
This file has been truncated, but you can view the full file.
./gradlew test --tests "com.browserup.bup.mitmproxy.NewHarTest" --debug
2021-01-01T13:36:22.873-0500 [DEBUG] [org.gradle.internal.nativeintegration.services.NativeServices] Native-platform is not available.
2021-01-01T13:36:22.912-0500 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized native services in: /Users/ebeland/.gradle/native
2021-01-01T13:36:22.921-0500 [LIFECYCLE] [org.gradle.launcher.cli.DebugLoggerWarningAction]
#############################################################################
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Debug level logging will leak security sensitive information!
https://docs.gradle.org/6.7.1/userguide/logging.html#sec:debug_security
@ericbeland
ericbeland / buildresults.txt
Created December 29, 2020 14:50
build failures
gradle build
> Task :browserup-proxy-core:test
com.browserup.bup.mitmproxy.ChainedProxyAuthTest > testMitmproxyUsesHttpsUpstreamProxy FAILED
javax.net.ssl.SSLHandshakeException at ChainedProxyAuthTest.groovy:174
Caused by: sun.security.validator.ValidatorException at ChainedProxyAuthTest.groovy:174
Caused by: sun.security.provider.certpath.SunCertPathBuilderException at ChainedProxyAuthTest.groovy:174
com.browserup.bup.mitmproxy.ChainedProxyAuthTest > testAutoProxyAuthSuccessful FAILED
@ericbeland
ericbeland / igvita.har.json
Created May 10, 2019 02:13 — forked from igrigorik/igvita.har.json
Sample HAR capture of igvita.com homepage
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.1"
},
"pages": [
{
"startedDateTime": "2012-08-28T05:14:24.803Z",
@ericbeland
ericbeland / tableissue.rb
Created March 10, 2019 13:20
Table Header Issue
if __FILE__ == $PROGRAM_NAME
require 'canis/core/util/app'
require 'canis/core/include/layouts/splitlayout'
App.new do
layout = SplitLayout.new :height => -1, :top_margin => 1, :bottom_margin => 1, :left_margin => 1
@form.layout_manager = layout
urls_table = table :print_footer => false, :name => "urls"
urls_table.columns = %w{url avg}
[
{
"_id": "55b11cb6a098e0004d6837c6",
"index": 0,
"guid": "24d21841-e3c6-40d3-ba16-c0b29c13ad47",
"isActive": true,
"balance": "$1,832.43",
"picture": "http://placehold.it/32x32",
"age": 38,
"eyeColor": "brown",
Model.new.foo
puts "---Starting run---"
threads = []
@mutex = Mutex.new
thread1_ids = []
thread2_ids = []
o = nil
a = nil
@ericbeland
ericbeland / gist:846482
Created February 27, 2011 20:05
Slow Down webdriver in Capybara (Monkeypatch for 0.1.3)
# This is a total hack to slow down webdriver in Capybara
# so you can more easily watch what is happening.
# paste this above the top of a Capybara Webdriver RSpec test if you need to debug something in slo-mo
require 'selenium-webdriver'
module ::Selenium::WebDriver::Remote
class Bridge
def execute(*args)
@ericbeland
ericbeland / invisible_proxy_to_array.rb
Created February 23, 2011 16:57
Invisibly call methods on all array members
# The invisible proxy allows seamless calling of a method on all objects of an array.
# When an array is wrapped (passed into) one of these objects, you can call a function
# on all objects in the array with one line. Useful for dsl's and such.
class InvisibleProxyToArray
instance_methods.each do |m|
undef_method(m) unless m =~ /(^__|^nil\\?|object_id|^send)/
end