mirror of https://github.com/poanetwork/gecko.git
added importuser test
This commit is contained in:
parent
f655592a1c
commit
e2ba60d3ac
|
@ -255,6 +255,17 @@ func TestServiceExportImport(t *testing.T) {
|
||||||
newKS := Keystore{}
|
newKS := Keystore{}
|
||||||
newKS.Initialize(logging.NoLog{}, memdb.New())
|
newKS.Initialize(logging.NoLog{}, memdb.New())
|
||||||
|
|
||||||
|
{
|
||||||
|
reply := ImportUserReply{}
|
||||||
|
if err := newKS.ImportUser(nil, &ImportUserArgs{
|
||||||
|
Username: "bob",
|
||||||
|
Password: "",
|
||||||
|
User: exportReply.User,
|
||||||
|
}, &reply); err == nil {
|
||||||
|
t.Fatal("Should have errored due to incorrect password")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
reply := ImportUserReply{}
|
reply := ImportUserReply{}
|
||||||
if err := newKS.ImportUser(nil, &ImportUserArgs{
|
if err := newKS.ImportUser(nil, &ImportUserArgs{
|
||||||
|
|
Loading…
Reference in New Issue