Skip to content

Instantly share code, notes, and snippets.

View stephendonner's full-sized avatar

Stephen Donner stephendonner

View GitHub Profile
@stephendonner
stephendonner / gist:5457402
Last active December 16, 2015 15:39
qa-contribute@mozilla.org template for Web QA-specific outreach
Greetings from Mozilla's Web QA team. Thanks for your interest in helping us test Mozilla's many Web properties! If you are interested in manual testing, a great place to get started is at https://quality.mozilla.org/teams/web-qa/#Manual. Likewise, if you are interested in automated testing, you can start by looking at https://quality.mozilla.org/teams/web-qa/#Automated.
Are you familiar with some/most of our Web properties? If not, you can take a look at the projects listed on and linked to in https://wiki.mozilla.org/QA/Execution/Web_Testing#Current_Projects_.2B_Webdev_Processes to get an idea of what we do. Is there a specific type of test or tests/testing you'd like to perform? We have opportunities for bug verification, exploratory testing, new-feature testing, and a lot more, so please let us know.
Often, the best step is to stop by IRC (#mozwebqa on irc.mozilla.org) and say Hi; if you'd like to one-click chat with us, just click on http://widget.mibbit.com/?settings=0a187437b06ca9bcb0cff2a717e985c5
The plan: rename these on the boxes themselves (while Jenkins is "paused") (http://www.unix.com/red-hat/42941-change-hostname.html?) and then update Jenkins itself to have the nodes labeled accordingly.
We haven't yet got devices or credentials for devices, nor boxes, set up for inari-3 nor inari-5
Inaris:
=======
inari-1
inari-2 (have credentials, but no phone w/SIM, nothing yet hooked up)
inari-3 (box doesn't yet exist, no credentials yet)
inari-4
Come join our community!
From downloading Firefox to installing over a bajillion add-ons, our group ensures high quality, secure, user-friendly websites, including mozilla.org, addons.mozilla.org, support.mozilla.org and more!
Ways to get involved:
*File suggested fixes and help improve our products.
*New to QA? We'd love to work with you and help you get started with manual testing, security testing and writing test cases.
*Interested in writing automated tests? We use a combination of Selenium and Python.
@stephendonner
stephendonner / new-flash.sh
Created December 6, 2013 17:26
1) grab an engineering mozilla-central build from pvtbuilds, for Hamachi 2) rename it to be "hamachi.zip" 3) put it in the same folder as this flash script 4) chmod +x new-flash.sh (or whatever you want to call the file) 5) ./new-flash.sh
#!/bin/bash -xe
wait_for_device() {
SERIAL=MSM7627A
DEVICE=05c6
# to break out if failed after so many tries.
# RETRYTIME*MAXWAITTIME is how long the max wait time will be
RETRYTIME=1
MAXWAITTIME=60
@stephendonner
stephendonner / not-docker-compose.yml
Created May 4, 2016 05:26
This is just a working pastebin for what will become, hopefully, a bonafide docker-compose.yml file for ZAP-CLI
# this will all go in a docker-compose.yml file
# XXX WRITE COPIOUS COMMENTS
docker run -u zap -p 8080:8080 -d owasp/zap2docker-stable zap.sh -daemon -port 8080 -host 0.0.0.0 -config api.disablekey=true
# XXX TODO: dynamically find the container id (using @m8ttyb's
docker exec ac68d9afcfad28123720080418cb3370dca03ee52252315e4d21227777eefd04 zap-cli open-url 'https://www.allizom.org'
# XXX TODO: beef up/flesh out the active-scan options we're passing in
docker exec trusting_bhabha zap-cli active-scan 'https://www.allizom.org'
# next, we need to do a docker exec [container ID or name] zap-cli open-url
# XXX - FIXME: we need to dynamically pass in the container ID / name
lastID='docker ps -l'
docker exec lastID zap-cli open-url
Error response from daemon: Container 144db6c684d5f36679e30eaa5b783b34e1fc69ca9db09734c848948474d96717 is not running
sdonners-MBP:docker-zap sdonner$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
29662e9a51b0 owasp/zap2docker-stable "zap.sh -daemon -port" 8 minutes ago Up 8 minutes 0.0.0.0:8080->8080/tcp pedantic_goodall
sdonners-MBP:docker-zap sdonner$ docker stop pedantic_goodall
pedantic_goodall
@stephendonner
stephendonner / gist:7030ec119f982e98c18d0c650d4a6d64
Created May 6, 2016 21:26
Now we're cooking with bacon, but looks like there are too many cooks!
sdonners-MBP:docker-zap sdonner$ ./run-docker.sh
6e3498ce9add9f683ea8d29c54742e05fed6324c800b905b57043bf93bca452e
[INFO] Accessing URL https://www.allizom.org/en-US/firefox/
Traceback (most recent call last):
File "/usr/local/bin/zap-cli", line 9, in <module>
load_entry_point('zapcli==0.1.1', 'console_scripts', 'zap-cli')()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
@stephendonner
stephendonner / gist:b1ca66e1e00625c873ed6875bcfceaf8
Created May 6, 2016 21:39
Sweet smell of (early) success!
sdonners-MBP:docker-zap sdonner$ ./run-docker.sh
7df1fca135a4da660a9670fd21f293705a34efd53a3f466d9727317586a9b531
[INFO] Accessing URL https://www.allizom.org/en-US/firefox/
[INFO] Running an active scan...
Found Java version 1.7.0_91
Available memory: 2002 MB
Setting jvm heap size: -Xmx512m
241 [main] INFO org.zaproxy.zap.DaemonBootstrap - OWASP ZAP 2.4.3 started.
628 [main] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE - dataFileCache open start
636 [main] INFO hsqldb.db.HSQLDB379AF3DEBD.ENGINE - dataFileCache open end
sdonners-MacBook-Pro:Addon-Tests sdonner$ git branch
master
* switch-to-tox
sdonners-MacBook-Pro:Addon-Tests sdonner$ tox -e tests -- --variables=/Users/sdonner/Desktop/AMO.json --driver Firefox
tests installed: apipkg==1.4,axl==0.5.1,cffi==1.8.3,cryptography==1.5,enum34==1.1.6,execnet==1.4.1,fxapom==1.9.0,hawkauthlib==0.1.1,idna==2.1,ipaddress==1.0.17,ndg-httpsclient==0.4.2,numpy==1.11.1,py==1.4.31,pyasn1==0.1.9,PyBrowserID==0.11.0,pycparser==2.14,PyFxA==0.2.0,PyJWT==1.4.2,pyOpenSSL==16.1.0,pytest==3.0.2,pytest-base-url==1.1.0,pytest-html==1.10.0,pytest-selenium==1.3.1,pytest-variables==1.4,pytest-xdist==1.15.0,pytz==2016.6.1,requests==2.11.1,scipy==0.18.1,selenium==2.53.6,six==1.10.0,WebOb==1.6.1
tests runtests: PYTHONHASHSEED='4196361723'
tests runtests: commands[0] | pytest --variables=/Users/sdonner/Desktop/AMO.json --driver Firefox
============================= test session starts ==============================
platform darwin -- Python 2.7.11, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 -- /Users/sdonner/A