29 Commits

Author SHA1 Message Date
Julien Danjou
414507227e Remove Python 2.6 classifier
Trove does not support Python 2.6 anymore starting with Kilo and might
not work correctly with it, so remove the classifier.

Change-Id: Ida17ce3ce76258442222b591846e1e1717119eed
2014-12-02 09:57:52 +01:00
Ionuț Arțăriși
a5d745dd87 rename and fix the db_wipe command
* rename db_wipe to db_recreate
* make --repo-path an optional argument for db_wipe and use it
* add command line help strings for db_wipe

Closes-Bug: #1279734

Change-Id: I1a1d3ad56989026fb10f6c57bb479814dc51328e
2014-03-10 10:16:03 +01:00
He Yongli
52db0a385a Remove extraneous vim configuration comments
Remove vim setting, Remove line containing:
comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4

at the top of source code files, except for files in
openstack/common.

Change-Id: I5e2aad6dca8407890fc3c2afbda541bd4f124ea8
Closes-Bug: #1229324
2014-02-27 15:05:21 +08:00
Michael Basnight
b06db4ab7f Migrating trove to entry points
PBR/Distribute generates binscripts for us. By moving the
binscript code into the source tree, we can unit test it
as well. Run setup.py develop to generate the binscripts for
development use.

implements blueprint entrypoints-for-binscripts
Change-Id: I9ad4bb4ddc55f64bcd806c588a795cd6e0847aa9
2014-02-01 01:19:58 +00:00
Zhenguo Niu
d4b324573f Enclose command args in with_venv.sh
It will support argument with blanks.

Change-Id: I83313290a964bf10fe46570f43cf213ceab8a326
Fixes: bug #1220937
2013-09-09 15:02:40 +08:00
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
b11db36f47 Updated to use normal requirements names.
Change-Id: I20545a3250c7db826b5c9133b8a94e3a8b2a3dbf
2013-06-03 18:44:20 -04:00
Monty Taylor
fc930eb91d Migrate to pbr.
Fixes bug 1179007

Change-Id: If7c187f3b4833bdd7f2c0632c061afdcacb9832f
2013-06-03 18:44:17 -04:00
Monty Taylor
98d42e50e3 Migrate to flake8.
Fixes bug 1172444

Change-Id: I09e1e2d03f41a175aa39760b5fc560ed0d9d30a5
2013-05-16 10:29:59 -07: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
justin-hopper
770c0fd83b Refreshed Oslo Code
Change to auth_tok to auth_token
    Added dependency on oslo.config package
    Remove reddwarf.openstack.common.cfg

Change-Id: I61af7a54d09f3d1d6b6efe470ea6308be8ace2e7
Fixes: bug #1175757
2013-05-08 16:11:02 -07:00
Tim Simpson
8855ea83a8 Pinning proboscis to a specific version.
fixes bug #1152370
Change-Id: I9ef270a8c50fd9e3aedbfaf1545c31af2c051769
2013-03-08 13:05:42 -06:00
daniel-a-nguyen
cd6e9d7677 Update test-requires to point to rd cli tarball
Sync up the client code to server code for absolute/rate limits
Implements: blueprint rate-limits

Change-Id: I2d465216fa8432674e268eb3a18b5f4cbde2692c
2013-03-08 10:15:03 -08:00
ruiyuan-shen
0e929485b4 Add python-keystoneclient to deployment dependency for reddwarf
Bug #1150904

Change-Id: Ife20228c771dcaad201dc871ed3e2079d7fd6de1
2013-03-06 17:35:25 -08:00
Jenkins
9fc2231647 Merge "Use tarball for python-reddwarfclient dependency" 2013-03-06 23:37:47 +00: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
Vipul Sabhaya
ddaf6decfa Use tarball for python-reddwarfclient dependency
* Openstack-ci creates a tarball at tarballs.o.o when tag matches:
  ref: ^refs/tags/([0-9]+\.)+[0-9]*
        (alpha|beta|candidate|rc|a|b|c|r|g)[0-9]*$

Fixes bug#1131509

Change-Id: I5e3d00c57dfe977f6e9a01dea25b97c8fcdf0d1d
2013-03-04 18:07:17 -08: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
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
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
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
Nikhil Manchanda
5e7757faa6 Update tools/install_venv.py to work w/ latest pip
pip dropped the -E option as of 1.1; now to install in a virtualenv,
you just explicitly activate the virtualenv.  This commit fakes the
same behavior of explicitly specifying a virtualenv for installation
by altering tools/with_venv.sh to optionally take the -E flag

Fixes Bug #1081200

Change-Id: I470ba9563864337b8af2a79ae463e269ba66bf8f
2012-11-21 15:34:14 -05: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
Tim Simpson
11a3e531f7 Removes the vestigial tests.
This gets rid of the misleading tests in this repo which have not been
relied on for most of this project's life (for historical reasons, tests
are currently stored in the reddwarf_lite-integration repo).

Change-Id: Ic452396ac50ea252bbd34d41638c2f337da3ed2a
2012-11-02 16:19:55 -05:00
Monty Taylor
bdbb0a64a6 Aligned tox file with project.
Change-Id: Ib391c0d1025605fccda6405865bba5780ebb0c74
2012-10-26 13:21:45 -04:00
Monty Taylor
bc518af78b Added .gitreview file. 2012-10-26 13:12:07 -04:00
Tim Simpson
334a36ab68 Got the unit test venv environment working. 2012-03-07 08:47:10 -06: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