Skip to content

Instantly share code, notes, and snippets.

View tonytan4ever's full-sized avatar

Tony Tan tonytan4ever

View GitHub Profile
'''
"flavorRef": "http://127.0.0.1:8888/v1.0/000/flavors/standard"
'''
from cassandra.cluster import Cluster
def init_db():
cluster = Cluster(["localhost"])
session = cluster.connect()
if status == 'edge host already created or pending':
if workFlowProgress is not None and \
'error' in workFlowProgress.lower():
LOG.info("SPS Pending with Error:" %
workFlowProgress)
continue
else:
pass
# Not sure about this status yet, comment it out now
# elif status == 'CPS Cancelled':
try:
driver.find_element_by_id("startserverbtn_env4a").click()
except NoSuchElementException:
print driver.find_element_by_id("start_form_env4a").text
self.assertTrue('The Studyserver is running as process' in driver.find_element_by_id("start_form_env4a").text)
else:
WebDriverWait(driver, 30).until(
EC.text_to_be_present_in_element((By.CSS_SELECTOR, "span.success"),
'The Studyserver has been sucessfully started')
)
# Copyright (c) 2015 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
{
"requestList": [
{
"enrollmentId": 22755,
"jobId": 78293,
"lastStatusChange": "2015-12-09T17:01:00Z",
"parameters": [
{
"name": "cnameHostname",
"value": "secure1.san1.altcdn.com"
ww1.scdn1.secure.raxcdn.com
ww1.scdn1.secure.raxcdn.com
ww2.scdn4.secure.raxcdn.com
ww3.scdn1.secure.raxcdn.com
[formatters]
keys=normal,normal_with_name,debug
[formatter_normal]
format=%(asctime)s %(levelname)s %(message)s
[formatter_normal_with_name]
format=(%(name)s): %(asctime)s %(levelname)s %(message)s
# Copyright (c) 2016 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
00:07:41 [] INFO Slf4jLogger started
00:07:41 [EventStream(akka://deepdive)] DEBUG logger log1-Slf4jLogger started
00:07:41 [EventStream(akka://deepdive)] DEBUG Default Loggers started
00:07:41 [Main$(akka://deepdive)] INFO Running pipeline with configuration from /root/deepdive/app/aidgrade/run/20160304/000739.333667602/deepdive.conf
00:07:41 [SettingsParser$(akka://deepdive)] INFO Database settings: user postgres, dbname deepdive_aidgrade, host 172.17.0.2, port 5432.
00:07:41 [SettingsParser$(akka://deepdive)] INFO {
"calibration" : {
"holdout_fraction" : 0.25,
"holdout_query" : null,
"observation_query" : null
File "/home/jenkins/workspace/gate-poppy-python34/.tox/py34/lib/python3.4/site-packages/openstack/nose_plugin.py", line 253, in startTest
2016-03-08 16:24:08.840 | 2016-03-08 16:24:08.827 7933 ERROR poppy [instance: <Mock name='mock().instance' id='139786482736376'>] self.stream.write((' ' * 4 + str(name)).ljust(65))
2016-03-08 16:24:08.841 | 2016-03-08 16:24:08.827 7933 ERROR poppy [instance: <Mock name='mock().instance' id='139786482736376'>] UnicodeEncodeError: 'ascii' codec can't encode character '\xfc' in position 40: ordinal not in range(128)