Skip to content

Instantly share code, notes, and snippets.

View dwalleck's full-sized avatar

Daryl Walleck dwalleck

View GitHub Profile
@attr(type='negative')
@raises(exceptions.BadRequest)
def test_create_server_without_password(self):
""" Create a server without password"""
name = rand_name('server')
resp, server = self.client.create_server(name, self.image_ref,
self.flavor_ref, adminPass='')
@attr(type='negative')
@raises(exceptions.BadRequest)
test_data = [...some list of dictionaries with inputs to use and the expected exception ...]
def test_create_servers_negative_input(self):
for data in test_data:
yield self.create_delete_server, test_data, test_data['exception']
def create_delete_server(self, data, expected_exception):
try:
self.servers_client.create_server(data)
Traceback (most recent call last):
File "/Users/dwalleck/stackforge/cloudcafe/cloudcafe/compute/limits_api/models/limit.py", line 48, in _json_to_obj
json_dict = json.loads(serialized_str)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Invalid \escape: line 6 column 40 (char 128)
{
"limits" : {
"rate" : [
{
"regex" : "/v[^/]/(\d+)/?.*",
"uri" : "*",
"limit" : [
{
"next-available" : "2013-08-20T17:10:28.995Z",
"unit" : "MINUTE",
===============
Review Process
===============
The goal of the code review process is to provide constructive feedback to team
members and to ensure that any changes follow the direction of the OpenCafe project.
While a reviewer will look for any obvious logical flaws, the primary purpose of code
reviews is **not** to verify that the submitted code functions correctly.
That burden is on the submitter and any gating Jenkins jobs.
$ cafe-runner compute iad -m test_flavors -v 1
( (
) )
.........
| |___
| |_ |
| :-) |_| |
| |___|
|_______|
{"ports": [{"uuid": "bf31ae3e-b68c-4360-9861-1b11db2240d3", "links": [{"href": "http://127.0.0.1:6385/v1/ports/bf31ae3e-b68c-4360-9861-1b11db2240d3", "rel": "self"}, {"href": "http://127.0.0.1:6385/ports/bf31ae3e-b68c-4360-9861-1b11db2240d3", "rel": "bookmark"}], "address": "52:54:00:16:93:15"}]}
log_http_response /opt/stack/new/python-ironicclient/ironicclient/common/http.py:105
2014-04-12 03:50:40.339 6776 DEBUG ironicclient.common.http [-] curl -i -X PATCH -H 'X-Auth-Token: MIIV1AYJKoZIhvcNAQcCoIIVxTCCFcECAQExCTAHBgUrDgMCGjCCFCoGCSqGSIb3DQEHAaCCFBsEghQXeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNC0xMlQwMzo1MDo0MC4yODU0MDQiLCAiZXhwaXJlcyI6ICIyMDE0LTA0LTEyVDA0OjUwOjQwWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiOWVhYmQwNzE2YTM3NDFmODllMzkwNTQ4YWE2M2FlMDkiLCAibmFtZSI6ICJkZW1vIn19LCAic2VydmljZUNhdGFsb2ciOiBbeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMTI3LjAuMC4xOjg3NzYvdjEvOWVhYmQwNzE2YTM3NDFmODllMzkwNTQ4YWE2M2FlMDkiLCAicmVnaW9uI
$ cafe-runner compute devstack -D functional.flavors --dry-run
test_format_and_mount_disks (cloudroast.compute.admin.servers.test_server_live_migration.LiveMigratationServerTests)
test_live_migrate_server (cloudroast.compute.admin.servers.test_server_live_migration.LiveMigratationServerTests)
test_verify_ephemeral_disks_mounted (cloudroast.compute.admin.servers.test_server_live_migration.LiveMigratationServerTests)
test_create_server (cloudroast.compute.burn_in.test_create_server_burn_in.CreateServerBurnIn)
test_can_ping_created_server (cloudroast.compute.burn_in.test_create_server_burn_in.CreateServerBurnIn)
test_rescue_server (cloudroast.compute.burn_in.test_rescue_server_burn_in.RescueServerBurnIn)
test_unrescue_server (cloudroast.compute.burn_in.test_rescue_server_burn_in.RescueServerBurnIn)
test_resize_server (cloudroast.compute.burn_in.test_resize_server_burn_in.ResizeServerBurnIn)
"""
Copyright 2014 Rackspace
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
screen-n-cpu.log:2014-05-28 05:11:42.308 ERROR oslo.messaging._drivers.common [req-c5f58241-31b9-44be-8189-cda95f91a408 admin admin] ['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/opt/stack/nova/nova/exception.py", line 88, in wrapped\n payload)\n', ' File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/opt/stack/nova/nova/exception.py", line 71, in wrapped\n return f(self, context, *args, **kw)\n', ' File "/opt/stack/nova/nova/compu