Skip to content

Instantly share code, notes, and snippets.

View JasonLunn's full-sized avatar

Jason Lunn JasonLunn

View GitHub Profile
##
# For use with a Rails app that uses the omniauth-google-oauth2 gem (e.g. https://github.com/JasonLunn/oauth2-protected-api)
#
# To run:
# SERVICE_ACCOUNT_CREDENTIALS_FILENAME=/path/to/service-account-credentials.json bundle exec ruby ./gist-client.rb
#
# Where /path/to/service-account-credentials.json contains service account credentials downloaded from
# https://console.developers.google.com/apis/credentials
require 'googleauth'
2016-08-18 18:16:24:205 - info: [Appium] Welcome to Appium v1.5.3 (REV 6c13f1f3299a1f0a2c19b4aaa4c5d580698fb5f5)
2016-08-18 18:16:24:209 - info: [Appium] Non-default server args:
2016-08-18 18:16:24:211 - info: [Appium] log: '/tmp/iOS-Framework/appium/logs/test_complete_a_user_choice_web_traffic_offer.log'
2016-08-18 18:16:24:313 - info: [Appium] Appium REST http interface listener started on 0.0.0.0:4723
2016-08-18 18:16:24:615 - info: [HTTP] --> GET /wd/hub/status {}
2016-08-18 18:16:24:618 - info: [MJSONWP] Calling AppiumDriver.getStatus() with args: []
2016-08-18 18:16:24:635 - info: [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.5.3"...
2016-08-18 18:16:24:645 - info: [HTTP] <-- GET /wd/hub/status 200 25 ms - 121
2016-08-18 18:16:24:692 - info: [HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"launchTimeout":60000,"newCommandTimeout":180,"sendKeyStrategy":"setValue","showIOSLog":true,"app":"/tmp/iOS-Framework/build/Debug-iphonesimulator/SampleApplication-D