Commit Graph

8 Commits

Author SHA1 Message Date
Joe Gordon 3561772f8b Move unit tests into unit test directory
In order to pave the way for functional testing, move existing unit
tests into a directory labeled unit. A subsequent patch will add a
directory for functional tests.

Change-Id: I0adb8b9f14451acb382c725d31f5387b4b6d82bb
2015-01-27 13:06:06 -08:00
Jamie Lennox 48ba2f5ab2 Convert Quota tests to httpretty
Change-Id: I0b7e7a342f9dbb8d9db2d45e4a90ccb23210001a
blueprint: httpretty-testing
2014-07-04 17:10:51 +10:00
shihanzhang ff815fb4d0 Remove invalid parameter of quota-update
nova quota-update doesn't support update '--gigabytes' and '--volumes', but
CLI  include these two parameter, so it should remove these two parameter
from novaclient

Change-Id: I9db39dd397ba3368f214377f37b56ac4f4f3864c
Closes-bug: #1277673
2014-02-11 14:57:46 +08:00
Chris Yeoh cfd38a7ef6 Adds first part of quotas support for Nova V3 API
Adds support and tests for the os-quotas extension
for the Nova V3 API. Note that compared to the V2
version this removes the ability to set quotas
which are not relevant to the V3 API (eg injected
file quotas are not relevant because the
os-personalities extension has been removed)

Partially implements blueprint v3-api

Change-Id: Ifa1c77428424bedf7fb88ef6d7b3843376799d24
2013-12-19 23:36:00 +10:30
liyingjun 8b5dcee15e Add user quota client API support
Implements blueprint user-quota-related-client-api

    This patch adds user arguments to the following subcommands:
        * quota-show
        * quota-update
        * quota-delete

Change-Id: I6556de366a758f7550e9b26357f231666caae419
2013-07-30 10:59:25 +08:00
gengjh 267dbd292c Support force update quota
Once we have additional check when update quota in
https://review.openstack.org/#/c/25887/, we need provide --force option
when run 'nova quota-update'.

Since the change in nova server has been merged, we need re-enable the
changes in nova client side.

Fix bug 1160749

Change-Id: Iceb67c5816312fafed8a68e48a8a136c03d0bb5b
2013-06-18 21:04:57 +08:00
Aarti Kriplani d43b923d8a Delete a quota through admin api.
Exposes the quota-delete api implemented as part of
blueprint admin-api-for-delete-quota
Change-Id: Iab358f0fcf2dfb41bcd9a3a5b73d590d3f55cd6c
2013-06-06 20:54:46 +05:30
Monty Taylor c34c371e96 Move tests into the novaclient package.
tests/__init__.py implies a package in the global namespace. These
tests are not global python tests, but rather tests for novaclient.

Change-Id: Ifeb8082aa010d15dddc9ae02e35589bc78ad48cc
2013-05-25 08:23:14 +02:00