added
target service test
This commit is contained in:
parent
bd705e9616
commit
82d717c79a
|
@ -3,7 +3,7 @@ package target
|
|||
import (
|
||||
"testing"
|
||||
//"git.loafle.net/overflow/overflow_proxy_service/proxy/member"
|
||||
"encoding/json"
|
||||
|
||||
|
||||
"git.loafle.net/overflow/overflow_proxy_service/proxy/member"
|
||||
)
|
||||
|
@ -29,24 +29,15 @@ func TestCreateTarget(t *testing.T) {
|
|||
|
||||
}
|
||||
|
||||
func TestMashal(t *testing.T){
|
||||
|
||||
func TestFindAll(t *testing.T) {
|
||||
tt := Target{
|
||||
Ip:3232235882,
|
||||
Port:5432,
|
||||
TargetType:"DATABASE",
|
||||
Kinds:"PostgreSQL",
|
||||
Version:"9.5.0",
|
||||
VendorName:"PostgreSQL 9.5.0",
|
||||
Member:&member.MemberService{Id:"1"},
|
||||
}
|
||||
|
||||
ts := NewTargetService()
|
||||
|
||||
|
||||
|
||||
bytes, _ := json.Marshal(tt)
|
||||
|
||||
t.Log(string(bytes))
|
||||
|
||||
str := ts.List(&tt)
|
||||
t.Log(str)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user