5 Commits

Author SHA1 Message Date
liu-sheng
02328d3337 Allow admin user to get all tenant's floating IPs
When getting floatingips with Nova API, the results will be filtered
with the 'tenant_id'.
So, we can only get the floatingips belonging to the tenant of the current
context.
When ceilometer invokes novaclient to list floatingips, it will get an
empty list because the tenant is 'service'.
we should allow an admin user to index all tenants's floatingip by adding a
parameter 'all_tenants'.
This patch provides CLI support

Change-Id: I35a2155401247d49017bf3c03341b082cb87750d
Closes-bug: #1262124
2014-04-02 09:31:04 +08:00
zhang-jinnan
93f9e68ca2 Replace assertEqual(None, *) with assertIsNone in tests
Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: I6deee90c31adf61d80e2678a5f29ba9e187281c9
2014-02-19 12:12:12 +08:00
lizheming
40e433469d assertTrue(isinstance) replace by assertIsInstance
some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by testtools

Closes-Bug: #1268480
Change-Id: Ie3b3e49ea3cc4357a65605ad54ff4ee1fbde12c7
2014-01-15 10:49:12 +08:00
Sushil Kumar
3ecaeb416e Enables H306 pep8 rules
Updates tox.ini to reduce ignored rules.

Updates code for H306 violation.

Change-Id: I9beea02510a1122afb55ad3df3b37f770fe05134
2013-12-12 17:43:08 +00:00
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