@@ -135,30 +135,30 @@ describe('docker', function () {
135135 // });
136136 //});
137137
138- it ( 'command ps' , function ( done ) {
139- this . timeout ( 15000 ) ;
140- var docker = new Docker ( {
141- machinename : config . DockerMachineName ,
142- } ) ;
143- console . log ( 'docker' , docker ) ;
144- assert . isNotNull ( docker ) ;
145- var failed = false ;
146- var err = null ;
147- docker . command ( 'ps' ) . then ( function ( data ) {
148- console . log ( 'data = ' , data ) ;
149- assert . isNotNull ( data ) ;
150- } ) . catch ( function ( error ) {
151- assert . isNotNull ( error ) ;
152- err = error ;
153- failed = true ;
154- console . log ( 'error = ' , error ) ;
155- } ) . finally ( function ( ) {
156- console . log ( 'finally ' ) ;
157- assert . isFalse ( failed ) ;
158- assert . isNull ( err ) ;
159- done ( ) ;
160- } ) ;
161- } ) ;
138+ // it('command ps', function (done) {
139+ // this.timeout(15000);
140+ // var docker = new Docker({
141+ // machinename: config.DockerMachineName,
142+ // });
143+ // console.log('docker', docker);
144+ // assert.isNotNull(docker);
145+ // var failed = false;
146+ // var err = null;
147+ // docker.command('ps').then(function (data) {
148+ // console.log('data = ', data);
149+ // assert.isNotNull(data);
150+ // }).catch(function (error) {
151+ // assert.isNotNull(error);
152+ // err = error;
153+ // failed = true;
154+ // console.log('error = ', error);
155+ // }).finally(function () {
156+ // console.log('finally ');
157+ // assert.isFalse(failed);
158+ // assert.isNull(err);
159+ // done();
160+ // });
161+ // });
162162
163163
164164 //it('command images', function (done) {
@@ -186,6 +186,29 @@ describe('docker', function () {
186186 // });
187187 //});
188188
189+ it ( 'command network ls' , function ( done ) {
190+ this . timeout ( 15000 ) ;
191+ var docker = new Docker ( { } ) ;
192+ assert . isNotNull ( docker ) ;
193+ var failed = false ;
194+ var err = null ;
195+ docker . command ( '--tlsverify --tlscacert="/home/apollo/.docker/machine/certs/ca.pem" --tlscert="/home/apollo/.docker/machine/certs/cert.pem" --tlskey="/home/apollo/.docker/machine/certs/key.pem" -H=tcp://52.62.82.61:3376 network ls' ) . then ( function ( data ) {
196+ console . log ( 'data = ' , data ) ;
197+ assert . isNotNull ( data ) ;
198+ } ) . catch ( function ( error ) {
199+ assert . isNotNull ( error ) ;
200+ err = error ;
201+ failed = true ;
202+ console . log ( 'error = ' , error ) ;
203+ } ) . finally ( function ( ) {
204+ console . log ( 'finally ' ) ;
205+ assert . isFalse ( failed ) ;
206+ assert . isNull ( err ) ;
207+ done ( ) ;
208+ } ) ;
209+ } ) ;
210+
211+
189212} ) ;
190213
191214
0 commit comments