You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
1.5 KiB

  1. package rpctest
  2. import (
  3. _ "github.com/tendermint/tendermint/config/tendermint_test"
  4. "testing"
  5. )
  6. //--------------------------------------------------------------------------------
  7. // Test the HTTP client
  8. func TestHTTPStatus(t *testing.T) {
  9. testStatus(t, "HTTP")
  10. }
  11. func TestHTTPGenPriv(t *testing.T) {
  12. testGenPriv(t, "HTTP")
  13. }
  14. func TestHTTPGetAccount(t *testing.T) {
  15. testGetAccount(t, "HTTP")
  16. }
  17. func TestHTTPSignedTx(t *testing.T) {
  18. testSignedTx(t, "HTTP")
  19. }
  20. func TestHTTPBroadcastTx(t *testing.T) {
  21. testBroadcastTx(t, "HTTP")
  22. }
  23. func TestHTTPGetStorage(t *testing.T) {
  24. testGetStorage(t, "HTTP")
  25. }
  26. func TestHTTPCallCode(t *testing.T) {
  27. testCallCode(t, "HTTP")
  28. }
  29. func TestHTTPCallContract(t *testing.T) {
  30. testCall(t, "HTTP")
  31. }
  32. func TestHTTPNameReg(t *testing.T) {
  33. testNameReg(t, "HTTP")
  34. }
  35. //--------------------------------------------------------------------------------
  36. // Test the JSONRPC client
  37. func TestJSONStatus(t *testing.T) {
  38. testStatus(t, "JSONRPC")
  39. }
  40. func TestJSONGenPriv(t *testing.T) {
  41. testGenPriv(t, "JSONRPC")
  42. }
  43. func TestJSONGetAccount(t *testing.T) {
  44. testGetAccount(t, "JSONRPC")
  45. }
  46. func TestJSONSignedTx(t *testing.T) {
  47. testSignedTx(t, "JSONRPC")
  48. }
  49. func TestJSONBroadcastTx(t *testing.T) {
  50. testBroadcastTx(t, "JSONRPC")
  51. }
  52. func TestJSONGetStorage(t *testing.T) {
  53. testGetStorage(t, "JSONRPC")
  54. }
  55. func TestJSONCallCode(t *testing.T) {
  56. testCallCode(t, "JSONRPC")
  57. }
  58. func TestJSONCallContract(t *testing.T) {
  59. testCall(t, "JSONRPC")
  60. }
  61. func TestJSONNameReg(t *testing.T) {
  62. testNameReg(t, "JSONRPC")
  63. }