26 Commits

Author SHA1 Message Date
Michael Basnight
7ab80b554d Rename from reddwarf to trove.
Implements Blueprint reddwarf-trove-rename

Change-Id: Ia9ee609bbc06a1d8b9d6917642529f30347541fd
2013-06-24 14:11:15 -07:00
Monty Taylor
98d42e50e3 Migrate to flake8.
Fixes bug 1172444

Change-Id: I09e1e2d03f41a175aa39760b5fc560ed0d9d30a5
2013-05-16 10:29:59 -07:00
Jenkins
d6c9cf6c4d Merge "added malformed json tests" 2013-05-10 16:57:32 +00:00
justin-hopper
b3c32e3f87 Controller and API changes for backups.
-API controller for backups
-adding swift url to the config
-Fixing failing tests
-Renaming 'instance' param.
 Checking for NotFound models so that the returned error is friendly
-adding feature to list all backups from a specific instance
-Adding checks for creating/deleting/restoring backups when it is not completed
-Adding unit tests for backup controller
-adding check to see if file is in swift
-Adding skeleton code for delete backup in the task manager
-Fixed backups API to pass in the backup_id during create_backup.
-adding int tests for backup controller
-Adding backup list and delete int tests
-Adding list backups for instance test
-Adding quota for create backup

BP: https://blueprints.launchpad.net/reddwarf/+spec/consistent-snapshots

Change-Id: I35c2fefcce4b3009e76ba7232c52dabf502a3ac0
2013-05-09 09:26:06 -07:00
Paul Lodronio
0ac1ba7e26 added malformed json tests
these tests are all being skipped because the code being tested is broken

bug #1177969
Change-Id: Iaf3c09bfda01b5ad883e9859906f831a3b2b5337
2013-05-08 18:06:20 -05:00
Jenkins
3c423f1885 Merge "Test no accept headers" 2013-03-11 18:48:10 +00:00
DJ Johnstone
b22056082d Test no accept headers
Created a test to validate that the api still responds correctly without accept headers being passed.

Change-Id: Ia6e145d857eed7c20b1a048ceaf41e2b301c1ea1
Implements: blueprint no-accept-header-validation
2013-03-08 12:18:27 -06:00
Tim Simpson
0fc4600e01 Tests the API in XML mode.
This form of testing has been nearly available for awhile but was not
turned on because it will increase the time of a full tox test run by
eight seconds. However there has recently been new features which do
not work at all with XML, so the time loss seems like a silly reason
to not gate on this.

implements blueprint test-with-xml

Change-Id: I98d892bb5c1a0c16425f80a28a296c70120318c8
2013-03-06 18:24:17 -06:00
daniel-a-nguyen
0a71ef9e88 Rate limits implementation
added unittest for limits
    reverted changes to openstack/common
    removed commented code
    cleaned up unittest
    added int-tests
    updated reference to XMLNS
    removed 1.1 XMLMS in wsgi

Implements: blueprint rate-limits
Change-Id: I842de3a6cae1859cc246264a5836abfd97fb8074
2013-03-05 14:17:36 -08:00
Michael Basnight
4374be7a20 Fixing run_tests.py so it emits an error upon failure.
fixes bug 1144683

Change-Id: If9ef4e53d012fed1c44ea5c099f2e750c167265d
2013-03-04 10:16:10 -06:00
Ed Cranford
90f8ca81d9 Modify-user features.
Grant, revoke, list user access.
Change user password and get single user.

Partially implements blueprint modify-users

Change-Id: I0001a7a9d1c527b88a1ed965f0f077c864e602cf
2013-02-19 20:40:26 -06:00
Joe Cruz
cd66821e86 Adds reset-task-status mgmt api instance action
When reset-task-status is called the instance's task status is set to NONE.

Partially implements: blueprint reset-task-status-mgmt-api

Change-Id: I3150b53c3feb586d4bcfa8a2f5807ecd53c89e26
2013-02-05 15:25:10 -06:00
Jenkins
db78f392cb Merge "Add unit tests for guestagent.volume.py" 2013-01-18 22:48:59 +00:00
ruiyuan-shen
49bf821843 Add unit tests for guestagent.volume.py
- more clean up on test_manager.py
- Migrate guestagent tests to unittest folder
- modify guestagent.manager.py so it recognize '_'

Bug # 1090139

Change-Id: I718a5212cd07c8bdb4e71796ba384574ce8275e9
2013-01-17 15:11:52 -08:00
Ed Cranford
ce6b98e2d1 Checks guest status during migration.
During a migration, waits for the guest and service to start up
following the status change to VERIFY_RESIZE. Confirms if everything
is all right, or reverts if not.

Implements blueprint migration-check-guest-status

Change-Id: Ia7c7ed1fd0070429fed93323ca559d1c0742bd8f
2013-01-17 16:59:16 -06:00
Jenkins
8296ea6f69 Merge "Add unit tests for guestagent.models.py Delete guestagent.utils.py since it is no longer invoked anywhere." 2013-01-12 01:21:55 +00:00
Steve Leon
b1f061b2e8 Adding guest agent pkg unit tests and running them with testr
Added unit tests for reddwarf.guestagent.pkg module.
Added tests for package install, remove and version
Changing the test runner of unittests to be run by testr instead of probocis/nose
Remove probocis reference from the dbaas test
Moved dbaas.py to reddwarf/tests/unittests

tracked by bug #1090139

Change-Id: Ia25fbe996d04d39e83edef0369de0e7fccce579e
2013-01-11 15:06:25 -08:00
ruiyuan-shen
2e346c4dee Add unit tests for guestagent.models.py
Delete guestagent.utils.py since it is no longer invoked anywhere.

Bug # 1090139

Change-Id: Iad3fad6f2b5bdb813b499dc8ce7181e6f8fb0231
2013-01-09 13:27:04 -08:00
Anna Shen
fc12c6f0df Add unit test for guestagent.service.py and query.py
Bug # 1090139

Change-Id: Ib6ddf1f1823ccec348cf552daaee0c127940aa29
2013-01-02 16:39:50 -08:00
Anna Shen
cbe81d1461 ADD unit tests for guestagent/manager.py
BUG# 1090139

Change-Id: I745b42d3eee34bc37d1c92033b3bde15c12dafa7
2012-12-28 12:29:35 -08:00
Michael Basnight
c8a5bc39dc Update oslo codebase within reddwarf.
* Updated logging,cfg,setup to new oslo
* Split out the paste ini from the conf files
* Modified reddwarf-api/server to use new modules
* Modified reddwarf-manage to use new cfg
* Added rpc helper for rpc services
* Modified reddwarf-taskmanager to use rpc helper
* Modified reddwarf-guestagent to use new rpc helper
* Fixed guestagent api to use rpc proxy
* Fixed taskmanager module to conform to new rpc
* Updated guestagent manager/pkg to use new rpc
* Updated api paste to use keystoneclient auth_token
* Updated managers to use periodic tasks

Implements: blueprint reddwarf/upgrade-oslo

Change-Id: I9ad1b441eca855a4304454014ae746ec51bef8f3
2012-12-18 21:18:28 -06:00
Steve Leon
732f4102b3 Adding some dbaas.py unittests
The tests added are createDB, deleteDB and deleteUser

tracked in Bug #1090139

Change-Id: I811a85bfe37ec4282864ec81328dc40c9b15f4ef
2012-12-14 10:38:47 -08:00
Tim Simpson
9a5d82bf90 No longer import db_api while parsing db __init__.
The db_api field of reddwarf/db/__init__.py was grabbed by importing a
module using utils.import_object. The imported module was always the
sqlalchemy api module, which is nested under the file that imports it,
which caused import errors in multiple contexts. This commit changes
every use of db_api to call a function to load it first, which seems
to fix these problems.

Change-Id: I9515efe02831b521d7f14674e0a2913e476b207d
Fixes: bug #1080706
2012-11-21 13:30:50 -06:00
Tim Simpson
c007356a78 Adding tests to Reddwarf.
The tests come from the Reddwarf Integration repository. wsgi_intercept
is used to allow the test code to hit the server code directly. It also
properly sets up the SqlLite database before each run.

* Adds an "event simulator" which queues up functions that would
  normally be spawned with eventlet. The various sleep functions are
  then swapped with a method that runs these faux-events.

* Adds many of the Reddwarf Integration tests. The idea is these
  could still run in a richer, real environment, but are running here
  enables us to quickly check feature breaks for each commit and
  lowers the learning curve necessary to test the API. The downside
  is some of these tests still have artifacts of their origins, such
  as (unused) classes to connect to MySQL databases. Some more work
  will be necessary to separate the "real mode" functionality of these
  tests further.

Implements: blueprint tox-tests
Change-Id: I9857f265c1cb46832906ef5e6a0c7bb4a092e637
2012-11-19 12:33:40 -06:00
Ed Cranford
1521f62002 PEP8 on a comment and removed a log debug line. 2012-04-23 15:20:11 -05:00
mbasnight
6a3f66f0e9 Adding the venv/unit test framework stuff
* run_tests stuff
* gerrit stuff
* test-requires for pip
2012-02-22 21:20:45 -06:00