File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 39
39
if : contains(github.event.pull_request.labels.*.name, 'test/api7') || github.event_name == 'push'
40
40
strategy :
41
41
matrix :
42
- version : [3.2.13.0, 3.2.14.5 ]
42
+ version : [3.2.13.0, 3.2.14.6 ]
43
43
env :
44
44
BACKEND_API7_DOWNLOAD_URL : https://run.api7.ai/api7-ee/api7-ee-v${{ matrix.version }}.tar.gz
45
45
BACKEND_API7_LICENSE : ${{ secrets.BACKEND_API7_LICENSE }}
Original file line number Diff line number Diff line change @@ -24,8 +24,13 @@ describe('Miscellaneous', () => {
24
24
} ) ;
25
25
} ) ;
26
26
27
- describe ( 'Sync resources with the description greater than 256 bytes' , ( ) => {
28
- const service1Name = 'service1' ;
27
+ describe ( 'Sync resources with the name/description greater than 256 bytes' , ( ) => {
28
+ const routeName = '' . padEnd ( 64 * 1024 , '0' ) ; // 65536 bytes
29
+ const service1Name = '' . padEnd ( 64 * 1024 , '0' ) ; // 65536 bytes
30
+ const route = {
31
+ name : routeName ,
32
+ uris : [ '/test' ] ,
33
+ } ;
29
34
const service1 = {
30
35
name : service1Name ,
31
36
description : '' . padEnd ( 64 * 1024 , '0' ) , // 65536 bytes
@@ -39,6 +44,7 @@ describe('Miscellaneous', () => {
39
44
} ,
40
45
] ,
41
46
} ,
47
+ routes : [ route ] ,
42
48
} as ADCSDK . Service ;
43
49
44
50
it ( 'Create services' , async ( ) =>
@@ -50,6 +56,8 @@ describe('Miscellaneous', () => {
50
56
const result = ( await dumpConfiguration ( backend ) ) as ADCSDK . Configuration ;
51
57
expect ( result . services ) . toHaveLength ( 1 ) ;
52
58
expect ( result . services [ 0 ] ) . toMatchObject ( service1 ) ;
59
+ expect ( result . services [ 0 ] ) . toMatchObject ( service1 ) ;
60
+ expect ( result . services [ 0 ] . routes [ 0 ] ) . toMatchObject ( route ) ;
53
61
} ) ;
54
62
55
63
it ( 'Delete service' , async ( ) =>
You can’t perform that action at this time.
0 commit comments