Skip to content

Instantly share code, notes, and snippets.

View weissjeffm's full-sized avatar

Jeff Weiss weissjeffm

View GitHub Profile
nil)
'(tool-bar-mode nil)
'(undo-tree-auto-save-history t)
'(undo-tree-visualizer-timestamps t)
'(uniquify-buffer-name-style (quote post-forward-angle-brackets) nil (uniquify))
'(virtualenv-root "~/.virtualenvs/")
'(visible-bell nil)
'(uniquify-buffer-name-style (quote post-forward-angle-brackets) nil (uniquify))
'(virtualenv-root "~/.virtualenvs/")
'(visible-bell nil)
'(yagist-authenticate-function (quote yagist-oauth2-authentication) t)
'(yagist-github-token "32850b37f0394bf2e54326f66c60d73b7823f60d")
'(yagist-github-user "weissjeffm")
'(yagist-view-gist t)
[jweiss@localhost pytestbase]$ sudo docker build -t py_test_base .
Sending build context to Docker daemon 5.12 kB
Sending build context to Docker daemon
Step 0 : FROM fedora:20
Pulling repository fedora
88b42ffd1f7c: Download complete
511136ea3c5a: Download complete
c69cab00d6ef: Download complete
---> 88b42ffd1f7c
Step 1 : RUN yum install -y gcc postgresql-devel libxml2-devel libxslt-devel zeromq3-devel git nano python-pip python-devel
;; fix websocket to not send origin header, so that ipython stops complaining about it
(eval-after-load 'websocket
'(defun websocket-create-headers (url key protocol extensions)
"Create connections headers for the given URL, KEY, PROTOCOL and EXTENSIONS.
These are defined as in `websocket-open'."
(format (concat "Host: %s\r\n"
"Upgrade: websocket\r\n"
"Connection: Upgrade\r\n"
"Sec-WebSocket-Key: %s\r\n"
;"Origin: %s\r\n"
(defun websocket-create-headers (url key protocol extensions)
"Create connections headers for the given URL, KEY, PROTOCOL and EXTENSIONS.
These are defined as in `websocket-open'."
(message (format "url: %s key: %s protocol: %s extensions: %s" url key protocol extensions))
(format (concat "Host: %s\r\n"
"Upgrade: websocket\r\n"
"Connection: Upgrade\r\n"
"Sec-WebSocket-Key: %s\r\n"
;"Origin: %s\r\n"
"Sec-WebSocket-Version: 13\r\n"
[----] I, [2014-07-22T15:56:19.937177 #30406:66088c] INFO -- : MIQ(EmsAmazon.with_provider_connection) Connecting through EmsAmazon: [ec2-east]
[----] I, [2014-07-22T15:56:20.081532 #30410:125a87c] INFO -- : MIQ(EmsOpenstack.with_provider_connection) Connecting through EmsOpenstack: [ibm-x3530m4-02]
[----] I, [2014-07-22T15:56:21.433306 #30406:66088c] INFO -- : MIQ(Authentication.validation_successful) [ExtManagementSystem] [1000000000002], previously valid/invalid on: []/[], previous status: []
[----] I, [2014-07-22T15:56:22.662855 #30406:66088c] INFO -- : MIQ(MiqQueue.put) Message id: [1000000013304], id: [], Zone: [default], Role: [], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqEvent.raise_evm_event], Timeout: [600], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: [["EmsAmazon", 1000000000002], "ems_auth_valid", {}]
[----] I, [2014-07-22T15:56:22.720168 #30406:66088c] INFO -- : EmsRefreshWorkerAmazon started. ID [1000000000039], PID
@weissjeffm
weissjeffm / *magit-commit*
Created July 21, 2014 18:04
tiny little change
Changes in stash@{0}^2^..stash@{0}
1 file changed, 1 insertion(+)
cfme/automate/explorer.py | 1 +
Modified cfme/automate/explorer.py
diff --git a/cfme/automate/explorer.py b/cfme/automate/explorer.py
index 8bf3aa4..e932f78 100644
--- a/cfme/automate/explorer.py
+++ b/cfme/automate/explorer.py
@@ -270,0 +271 @@ class Class(TreeNode, Updateable):
==================================== ERRORS ====================================
_____________ ERROR at setup of cfme/tests/automate/test_class.py ______________
cfme/tests/automate/test_class.py:11: in <module>
> make_namespace = pytest.fixture(ta.make_namespace, scope='module')
E TypeError: fixture() got multiple values for keyword argument 'scope'
'''Python lisp-like tracing library. Prints to stdout a nested
display of function calls with arguments and return values. Also
prints exceptions when exceptions are thrown.
It works by temporarily replacing all functions/methods within the
listed classes/modules with traced versions. Then when the 'trace'
block exits, all the original values are restored.
Notes:
def pytest_runtest_call(__multicall__, item):
"""hook to run each test with traced function calls"""
print "in hook" + str(item)
with function_trace.trace_on(to_trace,
depths=depths,
tracer=function_trace.PerThreadFileTracer(
'./tracelogs/' + item.name.replace("/", "_"))):
__multicall__.execute()