hyperledger-labs / yui-fabric-ibc

IBC implementation in Hyperledger Fabric
Other
35 stars 9 forks source link

[DO NOT MERGE] Add integration test with Cross Framework #23

Closed bluele closed 3 years ago

bluele commented 3 years ago

NOTE: Currently make test is failed because ibc/testing module cannot use multiple IBC app modules(e.g. transfer and cross)

$ go test -v ./cross
=== RUN   TestAppTestSuite
=== RUN   TestAppTestSuite/TestInitiateTxSimple
I[2021-01-05|20:00:22.800] created new capability                       module=ibc name=ports/transfer
I[2021-01-05|20:00:22.800] port binded                                  module=x/ibc/port port=transfer
I[2021-01-05|20:00:22.800] claimed capability                           module=transfer name=ports/transfer capability=1
I[2021-01-05|20:00:22.800] created new capability                       module=ibc name=ports/cross
I[2021-01-05|20:00:22.800] port binded                                  module=x/ibc/port port=cross
I[2021-01-05|20:00:22.800] claimed capability                           module=cross name=ports/cross capability=2
I[2021-01-05|20:00:22.805] created new capability                       module=ibc name=ports/transfer
I[2021-01-05|20:00:22.805] port binded                                  module=x/ibc/port port=transfer
I[2021-01-05|20:00:22.805] claimed capability                           module=transfer name=ports/transfer capability=1
I[2021-01-05|20:00:22.805] created new capability                       module=ibc name=ports/cross
I[2021-01-05|20:00:22.805] port binded                                  module=x/ibc/port port=cross
I[2021-01-05|20:00:22.805] claimed capability                           module=cross name=ports/cross capability=2
I[2021-01-05|20:00:22.807] client created at height                     module=x/ibc/client client-id=client0Fortestchain1 height=0-1
I[2021-01-05|20:00:22.809] client created at height                     module=x/ibc/client client-id=client0Fortestchain0 height=0-1
I[2021-01-05|20:00:22.810] connection state updated                     module=x/ibc/connection connection-id=testchain0-conn0 previous-state=NONE new-state=INIT
I[2021-01-05|20:00:22.813] client state updated                         module=x/ibc/client client-id=client0Fortestchain0 height=0-2
I[2021-01-05|20:00:22.824] connection state updated                     module=x/ibc/connection connection-id=testchain1-conn0 previous-state=STATE_UNINITIALIZED_UNSPECIFIED new-state=TRYOPEN
I[2021-01-05|20:00:22.827] client state updated                         module=x/ibc/client client-id=client0Fortestchain1 height=0-2
I[2021-01-05|20:00:22.837] connection state updated                     module=x/ibc/connection connection-id=testchain0-conn0 previous-state=STATE_INIT new-state=OPEN
I[2021-01-05|20:00:22.840] client state updated                         module=x/ibc/client client-id=client0Fortestchain0 height=0-3
I[2021-01-05|20:00:22.843] connection state updated                     module=x/ibc/connection connection-id=testchain1-conn0 previous-state=TRYOPEN new-state=OPEN
I[2021-01-05|20:00:22.846] client state updated                         module=x/ibc/client client-id=client0Fortestchain1 height=0-3
I[2021-01-05|20:00:22.846] created new capability                       module=ibc name=ports/cross
I[2021-01-05|20:00:22.846] claimed capability                           module=cross name=ports/cross capability=3
I[2021-01-05|20:00:22.846] created new capability                       module=ibc name=ports/cross
I[2021-01-05|20:00:22.846] claimed capability                           module=cross name=ports/cross capability=3
I[2021-01-05|20:00:22.847] created new capability                       module=ibc name=capabilities/ports/cross/channels/testchain0-conn0-chan0/key
I[2021-01-05|20:00:22.847] channel state updated                        module=x/ibc/channel port-id=cross channel-id=testchain0-conn0-chan0 previous-state=NONE new-state=INIT
I[2021-01-05|20:00:22.847] claimed capability                           module=cross name=capabilities/ports/cross/channels/testchain0-conn0-chan0/key capability=3
I[2021-01-05|20:00:22.850] client state updated                         module=x/ibc/client client-id=client0Fortestchain0 height=0-4
I[2021-01-05|20:00:22.850] created new capability                       module=ibc name=ports/cross
I[2021-01-05|20:00:22.850] claimed capability                           module=cross name=ports/cross capability=3
I[2021-01-05|20:00:22.853] created new capability                       module=ibc name=capabilities/ports/cross/channels/testchain1-conn0-chan0/key
I[2021-01-05|20:00:22.853] channel state updated                        module=x/ibc/channel port-id=cross channel-id=testchain1-conn0-chan0 previous-state=STATE_UNINITIALIZED_UNSPECIFIED new-state=TRYOPEN
I[2021-01-05|20:00:22.853] claimed capability                           module=cross name=capabilities/ports/cross/channels/testchain1-conn0-chan0/key capability=3
I[2021-01-05|20:00:22.856] client state updated                         module=x/ibc/client client-id=client0Fortestchain1 height=0-4
I[2021-01-05|20:00:22.859] channel state updated                        module=x/ibc/channel port-id=cross channel-id=testchain0-conn0-chan0 previous-state=STATE_INIT new-state=OPEN
I[2021-01-05|20:00:22.863] client state updated                         module=x/ibc/client client-id=client0Fortestchain0 height=0-5
I[2021-01-05|20:00:22.866] channel state updated                        module=x/ibc/channel port-id=cross channel-id=testchain1-conn0-chan0 previous-state=TRYOPEN new-state=OPEN
I[2021-01-05|20:00:22.869] client state updated                         module=x/ibc/client client-id=client0Fortestchain1 height=0-5
I[2021-01-05|20:00:22.873] client state updated                         module=x/ibc/client client-id=client0Fortestchain0 height=0-6
I[2021-01-05|20:00:22.874] packet sent                                  module=x/ibc/channel packet="&{{1 cross testchain1-conn0-chan0 cross testchain0-conn0-chan0 [123 34 104 101 97 100 101 114 34 58 123 34 102 105 101 108 100 115 34 58 110 117 108 108 125 44 34 112 97 121 108 111 97 100 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 97 117 116 104 46 80 97 99 107 101 116 68 97 116 97 73 66 67 83 105 103 110 84 120 34 44 34 116 120 73 68 34 58 34 86 47 76 69 101 56 69 72 88 71 51 108 52 100 119 108 73 110 113 86 103 55 77 121 108 77 77 108 47 87 84 116 115 108 112 118 86 97 77 85 69 72 69 61 34 44 34 115 105 103 110 101 114 115 34 58 91 34 118 122 119 66 110 99 86 102 111 78 118 79 99 68 77 106 81 78 122 102 82 89 54 74 66 80 81 61 34 93 44 34 116 105 109 101 111 117 116 95 104 101 105 103 104 116 34 58 123 34 118 101 114 115 105 111 110 95 110 117 109 98 101 114 34 58 34 48 34 44 34 118 101 114 115 105 111 110 95 104 101 105 103 104 116 34 58 34 49 48 49 34 125 44 34 116 105 109 101 111 117 116 95 116 105 109 101 115 116 97 109 112 34 58 34 48 34 125 125] 0-101 0} {{[]} [123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 97 117 116 104 46 80 97 99 107 101 116 68 97 116 97 73 66 67 83 105 103 110 84 120 34 44 34 116 120 73 68 34 58 34 86 47 76 69 101 56 69 72 88 71 51 108 52 100 119 108 73 110 113 86 103 55 77 121 108 77 77 108 47 87 84 116 115 108 112 118 86 97 77 85 69 72 69 61 34 44 34 115 105 103 110 101 114 115 34 58 91 34 118 122 119 66 110 99 86 102 111 78 118 79 99 68 77 106 81 78 122 102 82 89 54 74 66 80 81 61 34 93 44 34 116 105 109 101 111 117 116 95 104 101 105 103 104 116 34 58 123 34 118 101 114 115 105 111 110 95 110 117 109 98 101 114 34 58 34 48 34 44 34 118 101 114 115 105 111 110 95 104 101 105 103 104 116 34 58 34 49 48 49 34 125 44 34 116 105 109 101 111 117 116 95 116 105 109 101 115 116 97 109 112 34 58 34 48 34 125]} 0xc001edb3b0}"
I[2021-01-05|20:00:22.878] client state updated                         module=x/ibc/client client-id=client0Fortestchain1 height=0-6
I[2021-01-05|20:00:22.881] packet received                              module=x/ibc/channel packet="{1 cross testchain1-conn0-chan0 cross testchain0-conn0-chan0 [123 34 104 101 97 100 101 114 34 58 123 34 102 105 101 108 100 115 34 58 110 117 108 108 125 44 34 112 97 121 108 111 97 100 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 97 117 116 104 46 80 97 99 107 101 116 68 97 116 97 73 66 67 83 105 103 110 84 120 34 44 34 116 120 73 68 34 58 34 86 47 76 69 101 56 69 72 88 71 51 108 52 100 119 108 73 110 113 86 103 55 77 121 108 77 77 108 47 87 84 116 115 108 112 118 86 97 77 85 69 72 69 61 34 44 34 115 105 103 110 101 114 115 34 58 91 34 118 122 119 66 110 99 86 102 111 78 118 79 99 68 77 106 81 78 122 102 82 89 54 74 66 80 81 61 34 93 44 34 116 105 109 101 111 117 116 95 104 101 105 103 104 116 34 58 123 34 118 101 114 115 105 111 110 95 110 117 109 98 101 114 34 58 34 48 34 44 34 118 101 114 115 105 111 110 95 104 101 105 103 104 116 34 58 34 49 48 49 34 125 44 34 116 105 109 101 111 117 116 95 116 105 109 101 115 116 97 109 112 34 58 34 48 34 125 125] 0-101 0}"
I[2021-01-05|20:00:22.882] packet sent                                  module=x/ibc/channel packet="&{{1 cross testchain0-conn0-chan0 cross testchain1-conn0-chan0 [123 34 104 101 97 100 101 114 34 58 123 34 102 105 101 108 100 115 34 58 110 117 108 108 125 44 34 112 97 121 108 111 97 100 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 97 116 111 109 105 99 46 115 105 109 112 108 101 46 80 97 99 107 101 116 68 97 116 97 67 97 108 108 34 44 34 116 120 95 105 100 34 58 34 86 47 76 69 101 56 69 72 88 71 51 108 52 100 119 108 73 110 113 86 103 55 77 121 108 77 77 108 47 87 84 116 115 108 112 118 86 97 77 85 69 72 69 61 34 44 34 116 120 34 58 123 34 99 114 111 115 115 95 99 104 97 105 110 95 99 104 97 110 110 101 108 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 120 99 99 46 67 104 97 110 110 101 108 73 110 102 111 34 44 34 112 111 114 116 34 58 34 99 114 111 115 115 34 44 34 99 104 97 110 110 101 108 34 58 34 116 101 115 116 99 104 97 105 110 48 45 99 111 110 110 48 45 99 104 97 110 48 34 125 44 34 115 105 103 110 101 114 115 34 58 91 34 118 122 119 66 110 99 86 102 111 78 118 79 99 68 77 106 81 78 122 102 82 89 54 74 66 80 81 61 34 93 44 34 99 97 108 108 95 105 110 102 111 34 58 34 101 121 74 116 90 88 82 111 98 50 81 105 79 105 74 106 98 51 86 117 100 71 86 121 73 105 119 105 89 88 74 110 99 121 73 54 87 49 49 57 34 44 34 114 101 116 117 114 110 95 118 97 108 117 101 34 58 110 117 108 108 44 34 111 98 106 101 99 116 115 34 58 91 93 125 125 125] 0-101 0} {{[]} [123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 97 116 111 109 105 99 46 115 105 109 112 108 101 46 80 97 99 107 101 116 68 97 116 97 67 97 108 108 34 44 34 116 120 95 105 100 34 58 34 86 47 76 69 101 56 69 72 88 71 51 108 52 100 119 108 73 110 113 86 103 55 77 121 108 77 77 108 47 87 84 116 115 108 112 118 86 97 77 85 69 72 69 61 34 44 34 116 120 34 58 123 34 99 114 111 115 115 95 99 104 97 105 110 95 99 104 97 110 110 101 108 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 120 99 99 46 67 104 97 110 110 101 108 73 110 102 111 34 44 34 112 111 114 116 34 58 34 99 114 111 115 115 34 44 34 99 104 97 110 110 101 108 34 58 34 116 101 115 116 99 104 97 105 110 48 45 99 111 110 110 48 45 99 104 97 110 48 34 125 44 34 115 105 103 110 101 114 115 34 58 91 34 118 122 119 66 110 99 86 102 111 78 118 79 99 68 77 106 81 78 122 102 82 89 54 74 66 80 81 61 34 93 44 34 99 97 108 108 95 105 110 102 111 34 58 34 101 121 74 116 90 88 82 111 98 50 81 105 79 105 74 106 98 51 86 117 100 71 86 121 73 105 119 105 89 88 74 110 99 121 73 54 87 49 49 57 34 44 34 114 101 116 117 114 110 95 118 97 108 117 101 34 58 110 117 108 108 44 34 111 98 106 101 99 116 115 34 58 91 93 125 125]} 0xc001b70310}"
I[2021-01-05|20:00:22.882] acknowledged written                         module=x/ibc/channel packet="{1 cross testchain1-conn0-chan0 cross testchain0-conn0-chan0 [123 34 104 101 97 100 101 114 34 58 123 34 102 105 101 108 100 115 34 58 110 117 108 108 125 44 34 112 97 121 108 111 97 100 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 97 117 116 104 46 80 97 99 107 101 116 68 97 116 97 73 66 67 83 105 103 110 84 120 34 44 34 116 120 73 68 34 58 34 86 47 76 69 101 56 69 72 88 71 51 108 52 100 119 108 73 110 113 86 103 55 77 121 108 77 77 108 47 87 84 116 115 108 112 118 86 97 77 85 69 72 69 61 34 44 34 115 105 103 110 101 114 115 34 58 91 34 118 122 119 66 110 99 86 102 111 78 118 79 99 68 77 106 81 78 122 102 82 89 54 74 66 80 81 61 34 93 44 34 116 105 109 101 111 117 116 95 104 101 105 103 104 116 34 58 123 34 118 101 114 115 105 111 110 95 110 117 109 98 101 114 34 58 34 48 34 44 34 118 101 114 115 105 111 110 95 104 101 105 103 104 116 34 58 34 49 48 49 34 125 44 34 116 105 109 101 111 117 116 95 116 105 109 101 115 116 97 109 112 34 58 34 48 34 125 125] 0-101 0}"
I[2021-01-05|20:00:22.885] client state updated                         module=x/ibc/client client-id=client0Fortestchain0 height=0-7
I[2021-01-05|20:00:22.888] packet acknowledged                          module=x/ibc/channel packet="{1 cross testchain1-conn0-chan0 cross testchain0-conn0-chan0 [123 34 104 101 97 100 101 114 34 58 123 34 102 105 101 108 100 115 34 58 110 117 108 108 125 44 34 112 97 121 108 111 97 100 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 97 117 116 104 46 80 97 99 107 101 116 68 97 116 97 73 66 67 83 105 103 110 84 120 34 44 34 116 120 73 68 34 58 34 86 47 76 69 101 56 69 72 88 71 51 108 52 100 119 108 73 110 113 86 103 55 77 121 108 77 77 108 47 87 84 116 115 108 112 118 86 97 77 85 69 72 69 61 34 44 34 115 105 103 110 101 114 115 34 58 91 34 118 122 119 66 110 99 86 102 111 78 118 79 99 68 77 106 81 78 122 102 82 89 54 74 66 80 81 61 34 93 44 34 116 105 109 101 111 117 116 95 104 101 105 103 104 116 34 58 123 34 118 101 114 115 105 111 110 95 110 117 109 98 101 114 34 58 34 48 34 44 34 118 101 114 115 105 111 110 95 104 101 105 103 104 116 34 58 34 49 48 49 34 125 44 34 116 105 109 101 111 117 116 95 116 105 109 101 115 116 97 109 112 34 58 34 48 34 125 125] 0-101 0}"
I[2021-01-05|20:00:22.891] client state updated                         module=x/ibc/client client-id=client0Fortestchain1 height=0-7
I[2021-01-05|20:00:22.894] client state updated                         module=x/ibc/client client-id=client0Fortestchain0 height=0-8
I[2021-01-05|20:00:22.898] packet received                              module=x/ibc/channel packet="{1 cross testchain0-conn0-chan0 cross testchain1-conn0-chan0 [123 34 104 101 97 100 101 114 34 58 123 34 102 105 101 108 100 115 34 58 110 117 108 108 125 44 34 112 97 121 108 111 97 100 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 97 116 111 109 105 99 46 115 105 109 112 108 101 46 80 97 99 107 101 116 68 97 116 97 67 97 108 108 34 44 34 116 120 95 105 100 34 58 34 86 47 76 69 101 56 69 72 88 71 51 108 52 100 119 108 73 110 113 86 103 55 77 121 108 77 77 108 47 87 84 116 115 108 112 118 86 97 77 85 69 72 69 61 34 44 34 116 120 34 58 123 34 99 114 111 115 115 95 99 104 97 105 110 95 99 104 97 110 110 101 108 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 120 99 99 46 67 104 97 110 110 101 108 73 110 102 111 34 44 34 112 111 114 116 34 58 34 99 114 111 115 115 34 44 34 99 104 97 110 110 101 108 34 58 34 116 101 115 116 99 104 97 105 110 48 45 99 111 110 110 48 45 99 104 97 110 48 34 125 44 34 115 105 103 110 101 114 115 34 58 91 34 118 122 119 66 110 99 86 102 111 78 118 79 99 68 77 106 81 78 122 102 82 89 54 74 66 80 81 61 34 93 44 34 99 97 108 108 95 105 110 102 111 34 58 34 101 121 74 116 90 88 82 111 98 50 81 105 79 105 74 106 98 51 86 117 100 71 86 121 73 105 119 105 89 88 74 110 99 121 73 54 87 49 49 57 34 44 34 114 101 116 117 114 110 95 118 97 108 117 101 34 58 110 117 108 108 44 34 111 98 106 101 99 116 115 34 58 91 93 125 125 125] 0-101 0}"
I[2021-01-05|20:00:22.898] acknowledged written                         module=x/ibc/channel packet="{1 cross testchain0-conn0-chan0 cross testchain1-conn0-chan0 [123 34 104 101 97 100 101 114 34 58 123 34 102 105 101 108 100 115 34 58 110 117 108 108 125 44 34 112 97 121 108 111 97 100 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 97 116 111 109 105 99 46 115 105 109 112 108 101 46 80 97 99 107 101 116 68 97 116 97 67 97 108 108 34 44 34 116 120 95 105 100 34 58 34 86 47 76 69 101 56 69 72 88 71 51 108 52 100 119 108 73 110 113 86 103 55 77 121 108 77 77 108 47 87 84 116 115 108 112 118 86 97 77 85 69 72 69 61 34 44 34 116 120 34 58 123 34 99 114 111 115 115 95 99 104 97 105 110 95 99 104 97 110 110 101 108 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 120 99 99 46 67 104 97 110 110 101 108 73 110 102 111 34 44 34 112 111 114 116 34 58 34 99 114 111 115 115 34 44 34 99 104 97 110 110 101 108 34 58 34 116 101 115 116 99 104 97 105 110 48 45 99 111 110 110 48 45 99 104 97 110 48 34 125 44 34 115 105 103 110 101 114 115 34 58 91 34 118 122 119 66 110 99 86 102 111 78 118 79 99 68 77 106 81 78 122 102 82 89 54 74 66 80 81 61 34 93 44 34 99 97 108 108 95 105 110 102 111 34 58 34 101 121 74 116 90 88 82 111 98 50 81 105 79 105 74 106 98 51 86 117 100 71 86 121 73 105 119 105 89 88 74 110 99 121 73 54 87 49 49 57 34 44 34 114 101 116 117 114 110 95 118 97 108 117 101 34 58 110 117 108 108 44 34 111 98 106 101 99 116 115 34 58 91 93 125 125 125] 0-101 0}"
I[2021-01-05|20:00:22.901] client state updated                         module=x/ibc/client client-id=client0Fortestchain1 height=0-8
I[2021-01-05|20:00:22.905] packet acknowledged                          module=x/ibc/channel packet="{1 cross testchain0-conn0-chan0 cross testchain1-conn0-chan0 [123 34 104 101 97 100 101 114 34 58 123 34 102 105 101 108 100 115 34 58 110 117 108 108 125 44 34 112 97 121 108 111 97 100 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 97 116 111 109 105 99 46 115 105 109 112 108 101 46 80 97 99 107 101 116 68 97 116 97 67 97 108 108 34 44 34 116 120 95 105 100 34 58 34 86 47 76 69 101 56 69 72 88 71 51 108 52 100 119 108 73 110 113 86 103 55 77 121 108 77 77 108 47 87 84 116 115 108 112 118 86 97 77 85 69 72 69 61 34 44 34 116 120 34 58 123 34 99 114 111 115 115 95 99 104 97 105 110 95 99 104 97 110 110 101 108 34 58 123 34 64 116 121 112 101 34 58 34 47 99 114 111 115 115 46 99 111 114 101 46 120 99 99 46 67 104 97 110 110 101 108 73 110 102 111 34 44 34 112 111 114 116 34 58 34 99 114 111 115 115 34 44 34 99 104 97 110 110 101 108 34 58 34 116 101 115 116 99 104 97 105 110 48 45 99 111 110 110 48 45 99 104 97 110 48 34 125 44 34 115 105 103 110 101 114 115 34 58 91 34 118 122 119 66 110 99 86 102 111 78 118 79 99 68 77 106 81 78 122 102 82 89 54 74 66 80 81 61 34 93 44 34 99 97 108 108 95 105 110 102 111 34 58 34 101 121 74 116 90 88 82 111 98 50 81 105 79 105 74 106 98 51 86 117 100 71 86 121 73 105 119 105 89 88 74 110 99 121 73 54 87 49 49 57 34 44 34 114 101 116 117 114 110 95 118 97 108 117 101 34 58 110 117 108 108 44 34 111 98 106 101 99 116 115 34 58 91 93 125 125 125] 0-101 0}"
I[2021-01-05|20:00:22.908] client state updated                         module=x/ibc/client client-id=client0Fortestchain0 height=0-9
--- PASS: TestAppTestSuite (0.11s)
    --- PASS: TestAppTestSuite/TestInitiateTxSimple (0.11s)
PASS
ok      github.com/datachainlab/fabric-ibc/cross        0.184s