@@ -3,12 +3,13 @@ package internal
3
3
import (
4
4
"context"
5
5
"errors"
6
+ "net/http"
7
+ "testing"
8
+
6
9
model "github.com/ctreminiom/go-atlassian/v2/pkg/infra/models"
7
10
"github.com/ctreminiom/go-atlassian/v2/service"
8
11
"github.com/ctreminiom/go-atlassian/v2/service/mocks"
9
12
"github.com/stretchr/testify/assert"
10
- "net/http"
11
- "testing"
12
13
)
13
14
14
15
func Test_internalAQLImpl_Filter (t * testing.T ) {
@@ -18,7 +19,7 @@ func Test_internalAQLImpl_Filter(t *testing.T) {
18
19
Page : 2 ,
19
20
ResultPerPage : 25 ,
20
21
IncludeAttributes : true ,
21
- IncludeAttributesDeep : true ,
22
+ IncludeAttributesDeep : 12 ,
22
23
IncludeTypeAttributes : true ,
23
24
IncludeExtendedInfo : true ,
24
25
}
@@ -55,7 +56,7 @@ func Test_internalAQLImpl_Filter(t *testing.T) {
55
56
client .On ("NewRequest" ,
56
57
context .Background (),
57
58
http .MethodGet ,
58
- "jsm/assets/workspace/workspace-uuid-sample/v1/aql/objects?includeAttributes=true&includeAttributesDeep=true &includeExtendedInfo=true&includeTypeAttributes=true&page=2&qlQuery=Name+LIKE+Test&resultPerPage=25" ,
59
+ "jsm/assets/workspace/workspace-uuid-sample/v1/aql/objects?includeAttributes=true&includeAttributesDeep=12 &includeExtendedInfo=true&includeTypeAttributes=true&page=2&qlQuery=Name+LIKE+Test&resultPerPage=25" ,
59
60
"" ,
60
61
nil ).
61
62
Return (& http.Request {}, nil )
@@ -83,7 +84,7 @@ func Test_internalAQLImpl_Filter(t *testing.T) {
83
84
client .On ("NewRequest" ,
84
85
context .Background (),
85
86
http .MethodGet ,
86
- "jsm/assets/workspace/workspace-uuid-sample/v1/aql/objects?includeAttributes=true&includeAttributesDeep=true &includeExtendedInfo=true&includeTypeAttributes=true&page=2&qlQuery=Name+LIKE+Test&resultPerPage=25" ,
87
+ "jsm/assets/workspace/workspace-uuid-sample/v1/aql/objects?includeAttributes=true&includeAttributesDeep=12 &includeExtendedInfo=true&includeTypeAttributes=true&page=2&qlQuery=Name+LIKE+Test&resultPerPage=25" ,
87
88
"" ,
88
89
nil ).
89
90
Return (& http.Request {}, errors .New ("error, unable to create the http request" ))
0 commit comments