jUDDI
  1. jUDDI
  2. JUDDI-256

We need a test for CustodyTransfer

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0beta
    • Fix Version/s: 3.3
    • Component/s: core, uddi-tck
    • Labels:
      None

      Description

      We have no test that exercises this API. We need one to make sure it works.

      This relies on some form of replication to work to do the actual transfer, as described in the spec.

        Issue Links

          Activity

          Hide
          Alex O'Ree added a comment -

          I've added 6 unit tests for transfers within the same node. One issue was uncovered in the current trunk.

          [WARNING] [talledLocalContainer] Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
          [WARNING] [talledLocalContainer] at java.util.ArrayList.RangeCheck(ArrayList.java:547)
          [WARNING] [talledLocalContainer] at java.util.ArrayList.get(ArrayList.java:322)
          [WARNING] [talledLocalContainer] at org.apache.juddi.validation.ValidateCustodyTransfer.validateTransferEntities(
          ValidateCustodyTransfer.java:188)
          [WARNING] [talledLocalContainer] at org.apache.juddi.api.impl.UDDICustodyTransferImpl.transferEntities(UDDICustod
          yTransferImpl.java:212)
          [WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          from
          org.apache.juddi.v3.tck.UDDI_150_CustodyTransferIntegrationTest.InvalidTransferTokenModified

          Basically, I modified the key bag after the token was issued and then attempted to transfer.

          Show
          Alex O'Ree added a comment - I've added 6 unit tests for transfers within the same node. One issue was uncovered in the current trunk. [WARNING] [talledLocalContainer] Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 [WARNING] [talledLocalContainer] at java.util.ArrayList.RangeCheck(ArrayList.java:547) [WARNING] [talledLocalContainer] at java.util.ArrayList.get(ArrayList.java:322) [WARNING] [talledLocalContainer] at org.apache.juddi.validation.ValidateCustodyTransfer.validateTransferEntities( ValidateCustodyTransfer.java:188) [WARNING] [talledLocalContainer] at org.apache.juddi.api.impl.UDDICustodyTransferImpl.transferEntities(UDDICustod yTransferImpl.java:212) [WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [WARNING] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) from org.apache.juddi.v3.tck.UDDI_150_CustodyTransferIntegrationTest.InvalidTransferTokenModified Basically, I modified the key bag after the token was issued and then attempted to transfer.
          Hide
          Alex O'Ree added a comment -

          Reopening this, we don't yet have replication and thus cannot test custody transfer across nodes

          Show
          Alex O'Ree added a comment - Reopening this, we don't yet have replication and thus cannot test custody transfer across nodes
          Hide
          ASF subversion and git services added a comment -

          Commit 70903c27054e1ebb8c064cc3a1afce9842c07cb5 in juddi's branch refs/heads/master from Alex O'Ree
          [ https://git-wip-us.apache.org/repos/asf?p=juddi.git;h=70903c2 ]

          JUDDI-256 adding basic unit test for transfer to/from publishers on the same node
          JUDDI-272 adding hooks for node to node transfer

          Show
          ASF subversion and git services added a comment - Commit 70903c27054e1ebb8c064cc3a1afce9842c07cb5 in juddi's branch refs/heads/master from Alex O'Ree [ https://git-wip-us.apache.org/repos/asf?p=juddi.git;h=70903c2 ] JUDDI-256 adding basic unit test for transfer to/from publishers on the same node JUDDI-272 adding hooks for node to node transfer
          Hide
          ASF subversion and git services added a comment -

          Commit 15ed423ba60de94a2253a87d73b4b6e49fb35339 in juddi's branch refs/heads/master from Alex O'Ree
          [ https://git-wip-us.apache.org/repos/asf?p=juddi.git;h=15ed423 ]

          JUDDI-256 cleaning up the test case

          Show
          ASF subversion and git services added a comment - Commit 15ed423ba60de94a2253a87d73b4b6e49fb35339 in juddi's branch refs/heads/master from Alex O'Ree [ https://git-wip-us.apache.org/repos/asf?p=juddi.git;h=15ed423 ] JUDDI-256 cleaning up the test case
          Hide
          ASF subversion and git services added a comment -

          Commit d7195270482912abf42a29e2ed7b647dd5cb910a in juddi's branch refs/heads/master from Alex O'Ree
          [ https://git-wip-us.apache.org/repos/asf?p=juddi.git;h=d719527 ]

          JUDDI-241 fixing several issues with publisher assertions
          JUDDI-256 updating the tck to fire up two nodes, setup synchronization, then perform a custody transfer
          JUDDI-905 done for now, reports transactions/second for a number of basic save/delete operations
          JUDDI-906 tck now fires up two nodes, replication is working yet, but needs some additional test cases
          JUDDI-907 service code is in place, still need a ui component and test cases
          JUDDI-908 functionality fixed, test case still needed

          Show
          ASF subversion and git services added a comment - Commit d7195270482912abf42a29e2ed7b647dd5cb910a in juddi's branch refs/heads/master from Alex O'Ree [ https://git-wip-us.apache.org/repos/asf?p=juddi.git;h=d719527 ] JUDDI-241 fixing several issues with publisher assertions JUDDI-256 updating the tck to fire up two nodes, setup synchronization, then perform a custody transfer JUDDI-905 done for now, reports transactions/second for a number of basic save/delete operations JUDDI-906 tck now fires up two nodes, replication is working yet, but needs some additional test cases JUDDI-907 service code is in place, still need a ui component and test cases JUDDI-908 functionality fixed, test case still needed
          Hide
          ASF subversion and git services added a comment -

          Commit c9ec98421d9041a81742cc326fb34e17c631bee5 in juddi's branch refs/heads/master from Alex O'Ree
          [ https://git-wip-us.apache.org/repos/asf?p=juddi.git;h=c9ec984 ]

          JUDDI-256 this should fix some of the bb failures
          JUDDI-906 this should fix some of the bb failures

          Show
          ASF subversion and git services added a comment - Commit c9ec98421d9041a81742cc326fb34e17c631bee5 in juddi's branch refs/heads/master from Alex O'Ree [ https://git-wip-us.apache.org/repos/asf?p=juddi.git;h=c9ec984 ] JUDDI-256 this should fix some of the bb failures JUDDI-906 this should fix some of the bb failures

            People

            • Assignee:
              Alex O'Ree
              Reporter:
              Kurt T Stam
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development