@@ -30,7 +30,7 @@ var module = require('../../src/docker-compose-manager'),
30
30
logger = require ( '../../src/logger/logger' ) ;
31
31
32
32
describe ( 'Docker compose manager Module tests' , function ( ) {
33
- this . timeout ( 60000 ) ;
33
+ this . timeout ( 120000 ) ;
34
34
35
35
it ( 'The module exposes "dockerComposeUp" function' , ( ) => {
36
36
@@ -82,19 +82,20 @@ describe('Docker compose manager Module tests', function () {
82
82
} ) ;
83
83
84
84
it ( 'Functions sequence' , done => {
85
- var file = __dirname + '/../docker-compose.yaml' ;
85
+ var file = __dirname + '/../without-environment/docker-compose.yaml' ;
86
+
86
87
module . dockerComposeUp ( file ) . then ( ( ) => {
87
88
return module . dockerComposeStop ( file ) ;
88
89
} ) . then ( ( ) => {
89
90
return module . dockerComposeStart ( file ) ;
90
91
} ) . then ( ( ) => {
91
- return module . dockerExec ( 'tests_mongo_1 ' , [ 'mongo' , '--version' ] ) ;
92
+ return module . dockerExec ( 'withoutenvironment_mongo_1 ' , [ 'mongo' , '--version' ] ) ;
92
93
} ) . then ( ( ) => {
93
- return module . dockerInspectIPAddressOfContainer ( 'tests_mongo_1 ' , { network : "tests_default " } ) . then ( ip => {
94
+ return module . dockerInspectIPAddressOfContainer ( 'withoutenvironment_mongo_1 ' , { network : "withoutenvironment_default " } ) . then ( ip => {
94
95
expect ( ip ) . to . match ( / \b \d { 1 , 3 } \. \d { 1 , 3 } \. \d { 1 , 3 } \. \d { 1 , 3 } \b / ) ;
95
96
} ) ;
96
97
} ) . then ( ( ) => {
97
- return module . dockerInspectPortOfContainer ( 'tests_mongo_1 ' ) . then ( port => {
98
+ return module . dockerInspectPortOfContainer ( 'withoutenvironment_mongo_1 ' ) . then ( port => {
98
99
expect ( port ) . to . be . equal ( '27017' ) ;
99
100
} ) ;
100
101
} ) . then ( ( ) => {
0 commit comments