test_integration.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:capstone 作者: rackerlabs 项目源码 文件源码
def test_with_domain_id(self):
        data = generate_password_auth_data({
            'name': self.username,
            'password': self.password,
        })
        resp = self.authenticate(data)
        token = resp.headers['X-Subject-Token']

        data = generate_token_auth_data_with_scope(
            token_id=token,
            scope={'domain': {'id': self.project_id}})
        resp = self.authenticate(data, httplib.FORBIDDEN)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号