'Creates a minimal test server via the compute API
Ensures the server is created and can be retrieved from the compute API
and waits for it to be ACTIVE.
:returns: created server (dict)'

def _create_server(self):

    fake_network.set_stub_network_methods(self)
    server = self._build_minimal_create_server_request()
    created_server = self.api.post_server({'server': server})
    self.assertTrue(created_server['id'])
    created_server_id = created_server['id']
    found_server = self.api.get_server(created_server_id)
    self.assertEqual(created_server_id, found_server['id'])
    found_server = self._wait_for_state_change(found_server, 'BUILD')
    self.assertEqual('ACTIVE', found_server['status'])
    return found_server
