Clean up unused sanity check modules
These are now replaced with built in Ansible modules Change-Id: I6e3f4b72243da1cfa76d32822ec4f75f689f7317
This commit is contained in:
parent
c72c001e7f
commit
5cb25c227c
@ -22,29 +22,13 @@
|
|||||||
# in upstream shade we will be able to use more of the shade module. Until then
|
# in upstream shade we will be able to use more of the shade module. Until then
|
||||||
# if we want to be 'stable' we really need to be using it as a passthrough
|
# if we want to be 'stable' we really need to be using it as a passthrough
|
||||||
|
|
||||||
import tempfile
|
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
import shade
|
import shade
|
||||||
|
|
||||||
|
|
||||||
class SanityChecks(object):
|
class SanityChecks(object):
|
||||||
@staticmethod
|
# TODO(pbourke): remove and replace with direct call to os_object
|
||||||
def keystone(cloud):
|
|
||||||
[tenant for tenant in cloud.keystone_client.tenants.list()]
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def glance(cloud):
|
|
||||||
with tempfile.NamedTemporaryfile(suffix='qcow2') as image:
|
|
||||||
cloud.create_image("test", filename=image.name,
|
|
||||||
disk_format="qcow2", container_format="bare")
|
|
||||||
testid = cloud.get_image_id("test")
|
|
||||||
cloud.delete_image(testid)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def cinder(cloud):
|
|
||||||
[volume for volume in cloud.cinder_client.volumes.list()]
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def swift(cloud):
|
def swift(cloud):
|
||||||
[container for container in cloud.swift_client.list()]
|
[container for container in cloud.swift_client.list()]
|
||||||
|
Loading…
Reference in New Issue
Block a user