class GlanceTestCase(unittest.TestCase): def setUp(self): self.glanceapi = GlanceAgentManager() def tearDown(self): pass def test_Glance_pushSystem(self): data = { "key" : "0.0.0.0", "linux_distro" : "CntOS 6.4", "platform" : "32bit", "os_name" : "Linux", "os_version" : "2.6.32-358.e16.i686", "uptime" : "1 days 16 hours 16 minutes 29 seconds", "last_check" : 1373358415, "hostname" : "appengine", "notes" : "0.0.0.0", } self.glanceapi.getServer(data['key']) def test_Glances_pushServer(self): data = { "key" : "0.0.0.0", "linux_distro" : "CntOS 6.4", "platform" : "32bit", "os_name" : "Linux", "os_version" : "2.6.32-358.e16.i686", "uptime" : "1 days 16 hours 16 minutes 29 seconds", "last_check" : 1373358415, "hostname" : "appengine", "notes" : "0.0.0.0", }
def setUp(self): self.glanceapi = GlanceAgentManager()