Esempio n. 1
0
 def test_detail(self):
     sot = server.ServerDetail()
     self.assertEqual('server', sot.resource_key)
     self.assertEqual('servers', sot.resources_key)
     self.assertEqual('/servers/detail', sot.base_path)
     self.assertEqual('compute', sot.service.service_type)
     self.assertFalse(sot.allow_create)
     self.assertFalse(sot.allow_get)
     self.assertFalse(sot.allow_update)
     self.assertFalse(sot.allow_delete)
     self.assertTrue(sot.allow_list)
Esempio n. 2
0
 def test_get_all_metadata_ServerDetail(self):
     # This is tested explicitly so we know ServerDetail items are
     # properly having /detail stripped out of their base_path.
     self._test_get_all_metadata(server.ServerDetail(id=IDENTIFIER))