Ejemplo n.º 1
0
    def setUp(self):
        super(CinderProtectionPluginTest, self).setUp()
        self.plugin = CinderProtectionPlugin()
        cfg.CONF.set_default('cinder_endpoint', 'http://127.0.0.1:8776/v2',
                             'cinder_client')

        self.cntxt = RequestContext(user_id='admin',
                                    project_id='abcd',
                                    auth_token='efgh')
        self.cinder_client = ClientFactory.create_client("cinder", self.cntxt)
        self.checkpoint = FakeCheckpoint()