@@ -85,7 +85,7 @@ public override async Task StartContainersForScenarioRun(String scenarioName)
8585 IContainerService securityServiceTestUIContainer = SetupSecurityServiceTestUIContainer ( this . SecurityServiceTestUIContainerName ,
8686 this . SecurityServiceContainerName ,
8787 this . SecurityServicePort ,
88- this . TestNetworks . Last ( ) ,
88+ this . TestNetworks ,
8989 ( "estateUIClient" , "Secret1" ) ) ;
9090
9191 this . SecurityServiceTestUIPort = securityServiceTestUIContainer . ToHostExposedEndpoint ( "5004/tcp" ) . Port ;
@@ -162,7 +162,7 @@ private static void ExecuteBashCommand(String command)
162162 private IContainerService SetupSecurityServiceTestUIContainer ( String containerName ,
163163 String securityServiceContainerName ,
164164 Int32 securityServiceContainerPort ,
165- INetworkService networkService ,
165+ List < INetworkService > networkServices ,
166166 ( String clientId , String clientSecret ) clientDetails )
167167 {
168168 // Management API Container
@@ -174,13 +174,16 @@ private IContainerService SetupSecurityServiceTestUIContainer(String containerNa
174174 . UseImage ( "securityservicetestui" ) . ExposePort ( 5004 )
175175 . Build ( ) . Start ( ) . WaitForPort ( "5004/tcp" , 30000 ) ;
176176
177- networkService . Attach ( securityServiceTestUIContainer , false ) ;
177+ foreach ( INetworkService networkService in networkServices ) {
178+ networkService . Attach ( securityServiceTestUIContainer , false ) ;
179+ }
178180
179181 return securityServiceTestUIContainer ;
180182 }
181183
182- public override async Task < IContainerService > SetupSecurityServiceContainer ( INetworkService networkService ,
183- List < String > additionalEnvironmentVariables = null ) {
184+ public override async Task < IContainerService > SetupSecurityServiceContainer ( List < INetworkService > networkServices ,
185+ List < String > additionalEnvironmentVariables = null )
186+ {
184187 this . Trace ( "About to Start Security Container" ) ;
185188
186189 List < String > environmentVariables = this . GetCommonEnvironmentVariables ( DockerPorts . SecurityServiceDockerPort ) ;
@@ -204,7 +207,9 @@ public override async Task<IContainerService> SetupSecurityServiceContainer(INet
204207 // Now build and return the container
205208 IContainerService builtContainer = securityServiceContainer . Build ( ) . Start ( ) . WaitForPort ( $ "{ DockerPorts . SecurityServiceDockerPort } /tcp", 30000 ) ;
206209
207- networkService . Attach ( builtContainer , false ) ;
210+ foreach ( INetworkService networkService in networkServices ) {
211+ networkService . Attach ( builtContainer , false ) ;
212+ }
208213
209214 this . Trace ( "Security Service Container Started" ) ;
210215 this . Containers . Add ( builtContainer ) ;
@@ -216,6 +221,7 @@ public override async Task<IContainerService> SetupSecurityServiceContainer(INet
216221 return builtContainer ;
217222 }
218223
224+
219225 #endregion
220226 }
221227}
0 commit comments