6
0

test_test.go 589 B

12345678910111213141516171819202122232425262728293031
  1. package handler
  2. import (
  3. "fmt"
  4. "lims_adapter/common"
  5. "testing"
  6. )
  7. var (
  8. url = "http://192.168.0.102:9981/dashoo.lims.adapter-0.1-jlw"
  9. tenant = "EmGVD5szuT"
  10. username = "dashoo"
  11. password = "Yzr0t0P4VH5HfjmIVuMQ0CRpu/zkFbJWEN7uO7qIAarMuEDSLVkcHOUEAp+HGXf+ZwxpVJM1zqzlW9br1NJDgw=="
  12. )
  13. func TestNullable(t *testing.T) {
  14. token := common.Token(tenant, username, password)
  15. resp, err := common.TestRpcxHandler(tenant, token, url, "Test", "Nullable",
  16. `
  17. {
  18. "Str": "",
  19. "Int": 0,
  20. "Bool": false,
  21. "Slice": []
  22. }
  23. `,
  24. )
  25. common.PrintIndentJson(resp)
  26. fmt.Println(err)
  27. }