Skip to content

Commit bef15bc

Browse files
committed
Trying to debug test failures on travis-ci that I can't reproduce
locally on two of my systems.
1 parent 00c34fe commit bef15bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_xmlrpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,14 @@ def testAuthFilter(self):
203203
self.db.security.addPermissionToRole('Project', 'Web Access')
204204
# Allow viewing keyword
205205
p = self.db.security.addPermission(name='View', klass='keyword')
206+
print "View keyword class: %r"p
206207
self.db.security.addPermissionToRole('User', p)
207208
# Allow viewing interesting things (but not keyword) on issue
208209
# But users might only view issues where they are on nosy
209210
# (so in the real world the check method would be better)
210211
p = self.db.security.addPermission(name='View', klass='issue',
211212
properties=("title", "status"), check=lambda x,y,z: True)
213+
print "View keyword class w/ props: %r"p
212214
self.db.security.addPermissionToRole('User', p)
213215
# Allow role "Project" access to whole issue
214216
p = self.db.security.addPermission(name='View', klass='issue')
@@ -237,10 +239,12 @@ def testAuthFilter(self):
237239
# this might check for keyword owner in the real world)
238240
p = self.db.security.addPermission(name='View', klass='issue',
239241
check=lambda x,y,z: False)
242+
print "View issue class: %r"p
240243
self.db.security.addPermissionToRole('User', p)
241244
# Allow user to search for issue.status
242245
p = self.db.security.addPermission(name='Search', klass='issue',
243246
properties=("status",))
247+
print "View Search class w/ props: %r"p
244248
self.db.security.addPermissionToRole('User', p)
245249

246250
keyw = {'keyword':self.db.keyword.lookup('d1')}

0 commit comments

Comments
 (0)