

def testSignatureAcls(self):
    fingerprint = '95B457D16843B21EA3FC73BBC7C32FC1F94E405E'
    self.addQuickTestComponent('test:doc', '1.0-1-1')
    self.cfg.signatureKey = fingerprint
    rootLabel = versions.Label('localhost@rpl:linux')
    repos = self.openRepository()
    self.addUserAndRole(repos, rootLabel, 'foo', 'bar')
    repos.addAcl(rootLabel, 'foo', '.*', None)
    oldUser = self.cfg.user
    try:
        self.cfg.user = conarycfg.UserInformation()
        self.cfg.user.addServerGlob('localhost', 'foo', 'bar')
        self.assertRaises(errors.InsufficientPermission, cvccmd.sourceCommand, self.cfg, ['sign', 'test:doc'], {
            
        })
    finally:
        self.cfg.user = oldUser

dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/sigtest.py SigTest.testSignatureAcls/original