-
Notifications
You must be signed in to change notification settings - Fork 3
/
shelve_test.go
49 lines (41 loc) · 907 Bytes
/
shelve_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package p4
import (
"fmt"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestConn_UserReshelve(t *testing.T) {
var (
conn *Conn
err error
)
conn, err = setup(t)
Convey("test changes", t, func() {
So(err, ShouldBeNil)
Convey("List shelved", func() {
conn = conn.WithClient("root_arl_mainline")
conn.ChangeUser("guanxiao", "C72AFEA55FC4B855443D2429D2557BC8")
message, err := conn.Reshelve(16309)
fmt.Println(message)
So(message, ShouldNotBeNil)
So(err, ShouldBeNil)
})
})
}
func TestConn_DeleteShelve(t *testing.T) {
var (
conn *Conn
err error
)
conn, err = setup(t)
Convey("test changes", t, func() {
So(err, ShouldBeNil)
Convey("List shelved", func() {
conn = conn.WithClient("root_arl_mainline")
message, err := conn.DeleteShelve(17529)
fmt.Println(message)
So(message, ShouldNotBeNil)
So(err, ShouldBeNil)
})
})
}