Example #1
0
 def test_authenticate(self):
     auth = OpenStackIdentity_2_0_Connection_VOMS(auth_url='http://none',
                                                  user_id=None,
                                                  key='/tmp/proxy.pem',
                                                  token_scope='test',
                                                  tenant_name="VO")
     auth.authenticate()
    def setUp(self):
        mock_cls = OpenStackIdentity_2_0_Connection_VOMSMockHttp
        mock_cls.type = None
        OpenStackIdentity_2_0_Connection_VOMS.conn_class = mock_cls

        self.auth_instance = OpenStackIdentity_2_0_Connection_VOMS(
            auth_url="http://none", user_id=None, key="/tmp/proxy.pem", tenant_name="VO"
        )
        self.auth_instance.auth_token = "mock"
 def test_authenticate(self):
     auth = OpenStackIdentity_2_0_Connection_VOMS(
         auth_url="http://none",
         user_id=None,
         key="/tmp/proxy.pem",
         token_scope="test",
         tenant_name="VO",
     )
     auth.authenticate()
    def setUp(self):
        mock_cls = OpenStackIdentity_2_0_Connection_VOMSMockHttp
        mock_cls.type = None
        OpenStackIdentity_2_0_Connection_VOMS.conn_class = mock_cls

        self.auth_instance = OpenStackIdentity_2_0_Connection_VOMS(auth_url='http://none',
                                                                   user_id=None,
                                                                   key='/tmp/proxy.pem',
                                                                   tenant_name='VO')
        self.auth_instance.auth_token = 'mock'