Mercurial > p > roundup > code
diff test/test_xmlrpc.py @ 5197:d957f4e9fd58
Trying to debug test failures on travis-ci that I can't reproduce
locally on two of my systems.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 18 Mar 2017 11:37:46 -0400 |
| parents | e9801faebbe4 |
| children | f070841dee95 |
line wrap: on
line diff
--- a/test/test_xmlrpc.py Sat Mar 18 10:44:10 2017 -0400 +++ b/test/test_xmlrpc.py Sat Mar 18 11:37:46 2017 -0400 @@ -203,12 +203,14 @@ self.db.security.addPermissionToRole('Project', 'Web Access') # Allow viewing keyword p = self.db.security.addPermission(name='View', klass='keyword') + print "View keyword class: %r"p self.db.security.addPermissionToRole('User', p) # Allow viewing interesting things (but not keyword) on issue # But users might only view issues where they are on nosy # (so in the real world the check method would be better) p = self.db.security.addPermission(name='View', klass='issue', properties=("title", "status"), check=lambda x,y,z: True) + print "View keyword class w/ props: %r"p self.db.security.addPermissionToRole('User', p) # Allow role "Project" access to whole issue p = self.db.security.addPermission(name='View', klass='issue') @@ -237,10 +239,12 @@ # this might check for keyword owner in the real world) p = self.db.security.addPermission(name='View', klass='issue', check=lambda x,y,z: False) + print "View issue class: %r"p self.db.security.addPermissionToRole('User', p) # Allow user to search for issue.status p = self.db.security.addPermission(name='Search', klass='issue', properties=("status",)) + print "View Search class w/ props: %r"p self.db.security.addPermissionToRole('User', p) keyw = {'keyword':self.db.keyword.lookup('d1')}
