@@ -106,53 +106,60 @@ describe('apigw', () => {
106106 subDomain : expect . stringContaining ( '.apigw.tencentcs.com' ) ,
107107 protocols : inputs . protocols ,
108108 environment : 'release' ,
109- apiList : [ {
110- path : '/' ,
111- bindType : 'API' ,
112- internalDomain : null ,
113- method : 'GET' ,
114- apiName : 'index' ,
115- apiId : expect . stringContaining ( 'api-' ) ,
116- created : true ,
117- usagePlan : {
109+ apiList : [
110+ {
111+ path : '/' ,
112+ bindType : 'API' ,
113+ internalDomain : null ,
114+ method : 'GET' ,
115+ apiName : 'index' ,
116+ apiId : expect . stringContaining ( 'api-' ) ,
118117 created : true ,
119- secrets : {
120- 'created' : false ,
121- 'secretIds' : [ ] ,
118+ usagePlan : {
119+ created : true ,
120+ secrets : {
121+ created : false ,
122+ secretIds : [ ] ,
123+ } ,
124+ usagePlanId : expect . stringContaining ( 'usagePlan-' ) ,
122125 } ,
123- usagePlanId : expect . stringContaining ( 'usagePlan-' ) ,
124126 } ,
125- } , {
126- path : '/mo' ,
127- method : 'GET' ,
128- apiName : 'mo' ,
129- internalDomain : null ,
130- apiId : expect . stringContaining ( 'api-' ) ,
131- created : true ,
132- } , {
133- path : '/auto' ,
134- method : 'GET' ,
135- apiName : 'auto-http' ,
136- internalDomain : null ,
137- apiId : expect . stringContaining ( 'api-' ) ,
138- created : true ,
139- } , {
140- path : '/ws' ,
141- method : 'GET' ,
142- apiName : 'ws-test' ,
143- internalDomain : null ,
144- apiId : expect . stringContaining ( 'api-' ) ,
145- created : true ,
146- } , {
147- path : '/wsf' ,
148- method : 'GET' ,
149- apiName : 'ws-scf' ,
150- internalDomain : expect . stringContaining ( 'http://set-websocket.cb-common.apigateway.tencentyun.com' ) ,
151- apiId : expect . stringContaining ( 'api-' ) ,
152- created : true ,
153- } ] ,
127+ {
128+ path : '/mo' ,
129+ method : 'GET' ,
130+ apiName : 'mo' ,
131+ internalDomain : null ,
132+ apiId : expect . stringContaining ( 'api-' ) ,
133+ created : true ,
134+ } ,
135+ {
136+ path : '/auto' ,
137+ method : 'GET' ,
138+ apiName : 'auto-http' ,
139+ internalDomain : null ,
140+ apiId : expect . stringContaining ( 'api-' ) ,
141+ created : true ,
142+ } ,
143+ {
144+ path : '/ws' ,
145+ method : 'GET' ,
146+ apiName : 'ws-test' ,
147+ internalDomain : null ,
148+ apiId : expect . stringContaining ( 'api-' ) ,
149+ created : true ,
150+ } ,
151+ {
152+ path : '/wsf' ,
153+ method : 'GET' ,
154+ apiName : 'ws-scf' ,
155+ internalDomain : expect . stringContaining (
156+ 'http://set-websocket.cb-common.apigateway.tencentyun.com' ,
157+ ) ,
158+ apiId : expect . stringContaining ( 'api-' ) ,
159+ created : true ,
160+ } ,
161+ ] ,
154162 } ) ;
155-
156163 } ) ;
157164
158165 test ( 'should remove apigw success' , async ( ) => {
@@ -165,4 +172,3 @@ describe('apigw', () => {
165172 expect ( detail ) . toBeNull ( ) ;
166173 } ) ;
167174} ) ;
168-
0 commit comments