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.

76 lines
1.4 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. //--------------------------------------------------------------------------------
  33. // Test the JSONRPC client
  34. func TestJSONStatus(t *testing.T) {
  35. testStatus(t, "JSONRPC")
  36. }
  37. func TestJSONGenPriv(t *testing.T) {
  38. testGenPriv(t, "JSONRPC")
  39. }
  40. func TestJSONGetAccount(t *testing.T) {
  41. testGetAccount(t, "JSONRPC")
  42. }
  43. func TestJSONSignedTx(t *testing.T) {
  44. testSignedTx(t, "JSONRPC")
  45. }
  46. func TestJSONBroadcastTx(t *testing.T) {
  47. testBroadcastTx(t, "JSONRPC")
  48. }
  49. func TestJSONGetStorage(t *testing.T) {
  50. testGetStorage(t, "JSONRPC")
  51. }
  52. func TestJSONCallCode(t *testing.T) {
  53. testCallCode(t, "JSONRPC")
  54. }
  55. func TestJSONCallContract(t *testing.T) {
  56. testCall(t, "JSONRPC")
  57. }