@@ -143,6 +143,12 @@ describe('ConnectionWindowComponent', () => {
143143 password : 'root' ,
144144 database : 'acore_world' ,
145145 sslEnabled : true ,
146+ sshEnabled : false ,
147+ sshHost : '' ,
148+ sshPort : 22 ,
149+ sshUser : '' ,
150+ sshPassword : '' ,
151+ sshPrivateKey : '' ,
146152 ssl : { rejectUnauthorized : false } ,
147153 } ) ;
148154 expect ( component . error ) . toBeUndefined ( ) ;
@@ -165,6 +171,12 @@ describe('ConnectionWindowComponent', () => {
165171 password : 'helias123' ,
166172 database : 'helias_world' ,
167173 sslEnabled : false ,
174+ sshEnabled : false ,
175+ sshHost : '' ,
176+ sshPort : 22 ,
177+ sshUser : '' ,
178+ sshPassword : '' ,
179+ sshPrivateKey : '' ,
168180 } ) ;
169181
170182 expect ( component . error ) . toBeUndefined ( ) ;
@@ -188,7 +200,20 @@ describe('ConnectionWindowComponent', () => {
188200 page . clickElement ( page . connectBtn ) ;
189201
190202 expect ( connectSpy ) . toHaveBeenCalledTimes ( 1 ) ;
191- expect ( connectSpy ) . toHaveBeenCalledWith ( { host, port, user, password, database, sslEnabled : false } ) ;
203+ expect ( connectSpy ) . toHaveBeenCalledWith ( {
204+ host,
205+ port,
206+ user,
207+ password,
208+ database,
209+ sslEnabled : false ,
210+ sshEnabled : false ,
211+ sshHost : '' ,
212+ sshPort : 22 ,
213+ sshUser : '' ,
214+ sshPassword : '' ,
215+ sshPrivateKey : '' ,
216+ } ) ;
192217 expect ( component . error ) . toBeUndefined ( ) ;
193218 expect ( page . errorElement . innerHTML ) . not . toContain ( 'error-box' ) ;
194219 } ) ;
@@ -266,6 +291,12 @@ describe('ConnectionWindowComponent', () => {
266291 password,
267292 database : 'helias_world' ,
268293 sslEnabled : false ,
294+ sshEnabled : false ,
295+ sshHost : '' ,
296+ sshPort : 22 ,
297+ sshUser : '' ,
298+ sshPassword : '' ,
299+ sshPrivateKey : '' ,
269300 } ) ;
270301 expect ( connectSpy ) . toHaveBeenCalledTimes ( 1 ) ;
271302 expect ( connectSpy ) . toHaveBeenCalledWith ( {
@@ -275,6 +306,12 @@ describe('ConnectionWindowComponent', () => {
275306 password,
276307 database : 'helias_world' ,
277308 sslEnabled : false ,
309+ sshEnabled : false ,
310+ sshHost : '' ,
311+ sshPort : 22 ,
312+ sshUser : '' ,
313+ sshPassword : '' ,
314+ sshPrivateKey : '' ,
278315 } ) ;
279316 } ) ;
280317
@@ -295,6 +332,12 @@ describe('ConnectionWindowComponent', () => {
295332 password : '' ,
296333 database : 'helias_world' ,
297334 sslEnabled : false ,
335+ sshEnabled : false ,
336+ sshHost : '' ,
337+ sshPort : 22 ,
338+ sshUser : '' ,
339+ sshPassword : '' ,
340+ sshPrivateKey : '' ,
298341 } ) ;
299342 expect ( connectSpy ) . toHaveBeenCalledTimes ( 1 ) ;
300343 expect ( connectSpy ) . toHaveBeenCalledWith ( {
@@ -304,6 +347,12 @@ describe('ConnectionWindowComponent', () => {
304347 password : 'helias123' ,
305348 database : 'helias_world' ,
306349 sslEnabled : false ,
350+ sshEnabled : false ,
351+ sshHost : '' ,
352+ sshPort : 22 ,
353+ sshUser : '' ,
354+ sshPassword : '' ,
355+ sshPrivateKey : '' ,
307356 } ) ;
308357 } ) ;
309358 } ) ;
0 commit comments