Exemple #1
0
 def setUp(self):
     super(TestWorkflowHandler, self).setUp()
     self.ctx = utils.dummy_context()
     self.CONF = self.useFixture(config.Config())
     self.CONF.config(auth_uri='http://fakeidentity.com',
                      group=auth.OPT_GROUP_NAME)
     self.CONF.config(keystone_version='3')
Exemple #2
0
    def setUp(self):
        super(TestCORSMiddleware, self).setUp()

        # Config fixture
        self.CONF = self.useFixture(config.Config())
        # Disable keystone
        self.CONF.config(enable_authentication=False)
        # Make sure the options are registered before overriding them.
        self.CONF.register_opts(cors_middleware.CORS_OPTS, 'cors')
        # Set our test data overrides.
        self.CONF.config(allowed_origin="http://valid.example.com",
                         group='cors')

        # Initialize the conf object. Make sure we pass empty args=[], else the
        # testr CLI arguments will be picked up.
        cfg.CONF(project='solum', args=[])

        # Create the application.
        self.app = api_app.setup_app()
Exemple #3
0
 def setUp(self):
     super(TestAuth, self).setUp()
     self.CONF = self.useFixture(config.Config())
     self.app = fakes.FakeApp()
Exemple #4
0
 def setUp(self):
     super(TestContext, self).setUp()
     self.CONF = self.useFixture(config.Config())