Commits

Olemis Lang  committed bec4741

Trac RPC [ refs #10738 ] : Refresh patch to apply it against r13710

  • Participants
  • Parent commits 06211ea
  • Branches t10738

Comments (0)

Files changed (1)

File t10738/t10738_r13203_ticket_create_validate.diff

 # HG changeset patch
-# Parent 44d0d9332c3fbd12538b97e35dff8704ce2815a1
+# Parent 862c4e51bd555fbfec474921060ee297c37e150a
 TracRpc #10738 : Invoke ticket manipulators validations on ticket.create
 
-diff -r 44d0d9332c3f trunk/setup.py
---- a/trunk/setup.py	Wed May 22 16:13:10 2013 +0200
-+++ b/trunk/setup.py	Tue Feb 18 12:59:52 2014 -0500
+diff -r 862c4e51bd55 trunk/setup.py
+--- a/trunk/setup.py	Fri Feb 21 09:57:47 2014 +0100
++++ b/trunk/setup.py	Thu Mar 06 13:44:39 2014 -0500
 @@ -19,7 +19,7 @@
  
  setup(
      license='BSD',
      author='Alec Thomas',
      author_email='alec@swapoff.org',
-diff -r 44d0d9332c3f trunk/tracrpc/tests/ticket.py
---- a/trunk/tracrpc/tests/ticket.py	Wed May 22 16:13:10 2013 +0200
-+++ b/trunk/tracrpc/tests/ticket.py	Tue Feb 18 12:59:52 2014 -0500
+diff -r 862c4e51bd55 trunk/tracrpc/tests/ticket.py
+--- a/trunk/tracrpc/tests/ticket.py	Fri Feb 21 09:57:47 2014 +0100
++++ b/trunk/tracrpc/tests/ticket.py	Thu Mar 06 13:44:39 2014 -0500
 @@ -153,19 +153,19 @@
          t2 = self.admin.ticket.create("2", "", {'type': 'task', 'owner': 'B'})
          t3 = self.admin.ticket.create("3", "", {'type': 'defect', 'owner': 'A'})
                  self.admin.ticket.query("order=type&col=status&col=reporter"))
          # clean
          self.assertEquals(0, self.admin.ticket.delete(t1))
-@@ -373,6 +373,60 @@
-                           "</methodResponse>\n", response.read())
+@@ -374,6 +374,60 @@
          self.admin.ticket.delete(1)
  
+ 
 +    def test_create_ticket_validate(self):
 +        # Enable ticket manipulator
 +        plugin = os.path.join(rpc_testenv.tracdir, 'plugins', 'TicketManipulator.py')
  class RpcTicketVersionTestCase(TracRpcTestCase):
      
      def setUp(self):
-diff -r 44d0d9332c3f trunk/tracrpc/ticket.py
---- a/trunk/tracrpc/ticket.py	Wed May 22 16:13:10 2013 +0200
-+++ b/trunk/tracrpc/ticket.py	Tue Feb 18 12:59:52 2014 -0500
+diff -r 862c4e51bd55 trunk/tracrpc/ticket.py
+--- a/trunk/tracrpc/ticket.py	Fri Feb 21 09:57:47 2014 +0100
++++ b/trunk/tracrpc/ticket.py	Thu Mar 06 13:44:39 2014 -0500
 @@ -46,7 +46,8 @@
          yield ('TICKET_CREATE', ((int, str, str),
                                   (int, str, str, dict),