@@ -70,6 +70,18 @@ describe('Docker Events', function () {
7070 dockerEvents . handleDie ( { uuid : 'some-uuid' , id : 'some-id' , time : new Date ( ) . getTime ( ) } ) ;
7171 } ) ;
7272
73+ it ( 'should return if image builder image' , function ( done ) {
74+ var out = dockerEvents . handleDie ( {
75+ uuid : 'some-uuid' ,
76+ id : 'some-id' ,
77+ time : new Date ( ) . getTime ( ) ,
78+ host : 'http://localhost:4243' ,
79+ from : process . env . IMAGE_BUILDER
80+ } ) ;
81+ expect ( out ) . to . have . property ( 'skip' ) ;
82+ done ( ) ;
83+ } ) ;
84+
7385 describe ( 'while closing' , function ( ) {
7486 afterEach ( dockerEvents . close . bind ( dockerEvents ) ) ;
7587
@@ -133,7 +145,8 @@ describe('Docker Events', function () {
133145 uuid : 'some-uuid' ,
134146 id : 'some-id' ,
135147 time : new Date ( ) . getTime ( ) ,
136- host : 'http://127.0.0.1:4242'
148+ host : 'http://127.0.0.1:4242' ,
149+ from : 'container/name'
137150 } ;
138151 de . handleDie ( data ) ;
139152 } ) ;
@@ -244,7 +257,8 @@ describe('Docker Events', function () {
244257 uuid : uuid ( ) ,
245258 id : 'some-id' ,
246259 time : new Date ( ) . getTime ( ) ,
247- host : 'http://localhost:4243'
260+ host : 'http://localhost:4243' ,
261+ from : 'container/name'
248262 } ;
249263 dockerEvents . handleDie ( payload ) ;
250264 dockerEvents . handleDie ( payload ) ;
0 commit comments