This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nav_tree = {"cloud_intelligence": | |
[move_to_fn(main_menu.cloud_intelligence), | |
{"dashboard": click_fn(cloud_intelligence_menu.dashboard), | |
"reports": click_fn(cloud_intelligence_menu.reports), | |
"usage": click_fn(cloud_intelligence_menu.usage), | |
"chargeback": click_fn(cloud_intelligence_menu.chargeback), | |
"timelines": click_fn(cloud_intelligence_menu.timelines), | |
"rss": click_fn(cloud_intelligence_menu.rss)}], | |
"services": | |
[move_to_fn(main_menu.services), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_displayed(loc): | |
try: | |
return element(loc).is_displayed() | |
except NoSuchElementException: | |
return False | |
def wait_for_element(loc): | |
wait_until(lambda s: is_displayed(loc), "Element '{}' did not appear as expected.".format(loc)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cfme)[jweiss@localhost cfme_tests]$ py.test --help | |
Traceback (most recent call last): | |
File "/home/jweiss/.virtualenvs/cfme/bin/py.test", line 9, in <module> | |
load_entry_point('pytest==2.4.2', 'console_scripts', 'py.test')() | |
File "/home/jweiss/.virtualenvs/cfme/lib/python2.7/site-packages/_pytest/config.py", line 18, in main | |
config = _prepareconfig(args, plugins) | |
File "/home/jweiss/.virtualenvs/cfme/lib/python2.7/site-packages/_pytest/config.py", line 63, in _prepareconfig | |
pluginmanager=pluginmanager, args=args) | |
File "/home/jweiss/.virtualenvs/cfme/lib/python2.7/site-packages/_pytest/core.py", line 368, in __call__ | |
return self._docall(methods, kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def menu_item(text): | |
return "//div[@class='navbar']/a[.='{}']".format(text) | |
def make_menu_items(dct): | |
return {k: menu_item(v) for k, v in dct} | |
menu = Region(locators= | |
make_menu_items( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> pytest.main("-k test_accordion") | |
============================= test session starts ============================== | |
platform linux2 -- Python 2.7.5 -- pytest-2.3.4 | |
plugins: mozwebqa | |
collected 1602 items / 18 errors | |
==================================== ERRORS ==================================== | |
_ ERROR collecting cfme/lib/python2.7/site-packages/boto/manage/test_manage.py _ | |
cfme/lib/python2.7/site-packages/boto/manage/test_manage.py:6: in <module> | |
> volume = Volume.create() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in-package :clfswm) | |
(defun my-set-default-main-keys () | |
(define-main-key ("F1" :mod-4) 'help-on-clfswm) | |
(define-main-key ("Home" :mod-4 :control :shift) 'exit-clfswm) | |
(define-main-key ("Right" :mod-4) 'select-next-brother) | |
(define-main-key ("Left" :mod-4) 'select-previous-brother) | |
(define-main-key ("Up" :mod-4) 'select-previous-level) | |
(define-main-key ("Down" :mod-4) 'select-next-level) | |
(define-main-key ("Left" :control :mod-4) 'select-brother-spatial-move-left) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun floobits-force-update () | |
(interactive) | |
(mark-whole-buffer) | |
(kill-region (point) (mark)) | |
(yank)) | |
(global-set-key (kbd "C-c C-f") 'floobits-force-update) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sat6] | |
name=Satellite 6 MDP | |
baseurl=http://download.lab.bos.redhat.com/devel/candidate-trees/Satellite/latest-Satellite-6.0-RHEL-6/compose/Satellite/x86_64/os/ | |
enabled=1 | |
gpgcheck=0 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ERROR 2013-09-12 10:15:24 pulp_rest #5974] RestClient.post "https://10-16-6-195.rhq.lab.eng.bos.redhat.com/pulp/api/v2/users/", "{\"login\":\"admin\",\"name\":\"admin\",\"password\":\"nk5jwcs9TTwe9ook\"}", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Authorization"=>"OAuth oauth_body_hash=\"2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D\", oauth_consumer_key=\"katello\", oauth_nonce=\"0poifqivwIL1z73CAvtXylGUp6YFEs2aSksFNhlNAs\", oauth_signature=\"6%2B71efZJkt%2B%2Fwqvf4eg8rpqqytk%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1378995324\", oauth_version=\"1.0\"", "Content-Length"=>"62", "accept"=>"application/json", "content_type"=>"application/json", "pulp-user"=>"admin" | |
| \n# => 409 Conflict | application/json 191 bytes | |
| | |
[ERROR 2013-09-12 10:17:42 app 0f96393daf315717432b2ef2f50cb936 #6125] NoMethodError: undefined method `readable' for #<Class:0x000000058342a8> | |
| /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/dynamic_matchers.rb:55: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; remove print-method for webdriver due to https://github.com/semperos/clj-webdriver/issues/105 | |
(remove-method print-method org.openqa.selenium.WebDriver) | |
(remove-method print-method org.openqa.selenium.WebElement) |