jUDDI
  1. jUDDI
  2. JUDDI-256

We need a test for CustodyTransfer

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0beta
    • Fix Version/s: 3.3
    • Component/s: core
    • 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 -

          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
          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.

            People

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

              Dates

              • Created:
                Updated:

                Development