christroutner

bitbox-integration-test-results

Oct 13th, 2019
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. trout@pop-os:~/work/bch/bitbox-sdk$ npm run test:integration:emil
  2.  
  3. > [email protected] test:integration:emil /home/trout/work/bch/bitbox-sdk
  4. > TEST=integration SERVER=https://rest.api.bitcoin.com/v2/ nyc --reporter=text mocha --timeout 30000 test/integration --exit
  5.  
  6.  
  7.  
  8. #address
  9. #details
  10. calling https://rest.api.bitcoin.com/v2/
  11. ✓ should GET address details for a single address (1198ms)
  12. calling https://rest.api.bitcoin.com/v2/
  13. ✓ should GET address details for an array of addresses (1228ms)
  14. calling https://rest.api.bitcoin.com/v2/
  15. ✓ should throw an error for improper input
  16. calling https://rest.api.bitcoin.com/v2/
  17. ✓ should throw error on array size rate limit (629ms)
  18. #utxo
  19. ✓ should GET utxos for a single address (911ms)
  20. ✓ should GET utxo details for an array of addresses (789ms)
  21. ✓ should throw an error for improper input
  22. ✓ should throw error on array size rate limit (1058ms)
  23. #unconfirmed
  24. ✓ should GET unconfirmed details on a single address (716ms)
  25. ✓ should GET unconfirmed details on multiple addresses (816ms)
  26. ✓ should throw an error for improper input
  27. ✓ should throw error on array size rate limit (731ms)
  28. #transactions
  29. 1) should GET transactions for a single address
  30. 2) should get transactions on multiple addresses
  31. ✓ should throw an error for improper input
  32. ✓ should throw error on array size rate limit (813ms)
  33.  
  34. #block
  35. #detailsByHeight
  36. ✓ should GET block details for a given Height (1403ms)
  37. ✓ should GET block details for an array of blocks (1063ms)
  38. ✓ should throw an error for improper single input
  39. ✓ should throw error on array size rate limit (896ms)
  40. #detailsByHash
  41. ✓ should GET block details for a given hash (845ms)
  42. ✓ should GET block details for an array of hashes (3250ms)
  43. ✓ should throw an error for improper single input
  44. ✓ should throw error on array size rate limit (1120ms)
  45.  
  46. #blockchain
  47. #getBestBlockHash
  48. ✓ should GET best block hash (817ms)
  49. #getBlockHeader
  50. ✓ should GET block header for a single hash (717ms)
  51. ✓ should GET block headers for an array of hashes (819ms)
  52. ✓ should throw an error for improper input
  53. ✓ should throw error on array size rate limit (638ms)
  54. #getMempoolEntry
  55. ✓ should throw an error if txid is not in mempool (791ms)
  56. ✓ should throw an error for improper single input
  57. #getTxOutProof
  58. ✓ should get single tx out proof (918ms)
  59. ✓ should get an array of tx out proofs (1434ms)
  60. ✓ should throw an error for improper single input
  61. #verifyTxOutProof
  62. ✓ should verify a single proof (917ms)
  63. ✓ should verify an array of proofs (922ms)
  64. ✓ should throw an error for improper single input
  65. ✓ should throw error on array size rate limit (1326ms)
  66.  
  67. #control
  68. #getNetworkInfo
  69. ✓ should GET getNetworkInfo data (836ms)
  70.  
  71. #price
  72. #current
  73. #single currency
  74. ✓ should get current price for single currency (1445ms)
  75.  
  76. #rawtransaction
  77. #decodeRawTransaction
  78. ✓ should decode tx for a single hex (774ms)
  79. ✓ should decode an array of tx hexes (757ms)
  80. ✓ should throw an error for improper single input
  81. ✓ should throw error on array size rate limit (1011ms)
  82. #getRawTransaction
  83. ✓ should decode a single txid, with concise output (896ms)
  84. ✓ should decode a single txid, with verbose output (747ms)
  85. ✓ should decode an array of txids, with a concise output (992ms)
  86. ✓ should decode an array of txids, with a verbose output (982ms)
  87. ✓ should throw error on array size rate limit (965ms)
  88. #decodeScript
  89. ✓ should decode script for a single hex (814ms)
  90. sendRawTransaction
  91. ✓ should send a single transaction hex (737ms)
  92. ✓ should send an array of tx hexes (920ms)
  93. ✓ should throw an error for improper single input
  94. ✓ should throw error on array size rate limit (735ms)
  95.  
  96. #Transaction
  97. #details
  98. ✓ should GET details for a given txid (721ms)
  99. ✓ should GET details for an array of txids (743ms)
  100. ✓ should throw an error for improper single input
  101. err: { error: 'Array too large.' }
  102. ✓ should throw error on array size rate limit (950ms)
  103.  
  104. #util
  105. #validateAddress
  106. ✓ should return false for testnet addr on mainnet (625ms)
  107. ✓ should return false for bad address (781ms)
  108. 3) should return validate valid address
  109. 4) should validate an array of addresses
  110. ✓ should throw an error for improper single input
  111. ✓ should throw error on array size rate limit (1100ms)
  112. #sweep
  113. result: 0
  114. ✓ should return balance only (1118ms)
  115. result: 0
  116. ✓ should sweep funds (916ms)
  117.  
  118. #rate-limits
  119. Unexpected error:
  120. 5) should throw an error when RPM rate limits are triggered
  121.  
  122.  
  123. 62 passing (59s)
  124. 5 failing
  125.  
  126. 1) #address
  127. #transactions
  128. should GET transactions for a single address:
  129. TypeError: Cannot convert undefined or null to object
  130. at Function.keys (<anonymous>)
  131. at Object.getOwnEnumerableProperties (node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js:28:17)
  132. at Proxy.assertKeys (node_modules/chai/lib/chai/core/assertions.js:2347:18)
  133. at Proxy.methodWrapper (node_modules/chai/lib/chai/utils/addMethod.js:57:25)
  134. at Function.assert.hasAnyKeys (node_modules/chai/lib/chai/interface/assert.js:1707:66)
  135. at Context.it (test/integration/address.js:292:14)
  136. at process._tickCallback (internal/process/next_tick.js:68:7)
  137.  
  138. 2) #address
  139. #transactions
  140. should get transactions on multiple addresses:
  141. TypeError: Cannot convert undefined or null to object
  142. at Function.keys (<anonymous>)
  143. at Object.getOwnEnumerableProperties (node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js:28:17)
  144. at Proxy.assertKeys (node_modules/chai/lib/chai/core/assertions.js:2347:18)
  145. at Proxy.methodWrapper (node_modules/chai/lib/chai/utils/addMethod.js:57:25)
  146. at Function.assert.hasAnyKeys (node_modules/chai/lib/chai/interface/assert.js:1707:66)
  147. at Context.it (test/integration/address.js:326:14)
  148. at process._tickCallback (internal/process/next_tick.js:68:7)
  149.  
  150. 3) #util
  151. #validateAddress
  152. should return validate valid address:
  153.  
  154. AssertionError: expected { Object (isvalid, address, ...) } to have keys 'isvalid', 'address', 'scriptPubKey', 'ismine', 'iswatchonly', and 'isscript'
  155. + expected - actual
  156.  
  157. [
  158. "address"
  159. + "ismine"
  160. + "isscript"
  161. "isvalid"
  162. + "iswatchonly"
  163. "scriptPubKey"
  164. ]
  165.  
  166. at Context.it (test/integration/util.js:55:14)
  167. at process._tickCallback (internal/process/next_tick.js:68:7)
  168.  
  169. 4) #util
  170. #validateAddress
  171. should validate an array of addresses:
  172.  
  173. AssertionError: expected { Object (isvalid, address, ...) } to have keys 'isvalid', 'address', 'scriptPubKey', 'ismine', 'iswatchonly', and 'isscript'
  174. + expected - actual
  175.  
  176. [
  177. "address"
  178. + "ismine"
  179. + "isscript"
  180. "isvalid"
  181. + "iswatchonly"
  182. "scriptPubKey"
  183. ]
  184.  
  185. at Context.it (test/integration/util.js:76:14)
  186. at process._tickCallback (internal/process/next_tick.js:68:7)
  187.  
  188. 5) #rate-limits
  189. should throw an error when RPM rate limits are triggered:
  190.  
  191. Unexpected error
  192. + expected - actual
  193.  
  194. -true
  195. +false
  196.  
  197. at Context.it (test/integration/z9-rate-limits.js:51:16)
  198. at process._tickCallback (internal/process/next_tick.js:68:7)
Advertisement
Add Comment
Please, Sign In to add comment