1414import java .io .File ;
1515import java .io .FileInputStream ;
1616import java .io .IOException ;
17- import java .io .InputStream ;
1817import java .security .KeyManagementException ;
1918import java .security .KeyStore ;
2019import java .security .KeyStoreException ;
2120import java .security .NoSuchAlgorithmException ;
2221import java .security .UnrecoverableKeyException ;
2322import java .security .cert .CertificateException ;
2423import java .util .Collections ;
25- import java .util .Objects ;
26- import java .util .Scanner ;
2724
2825import static org .assertj .core .api .Assertions .assertThat ;
2926import static org .assertj .core .api .Assertions .assertThatCode ;
@@ -159,9 +156,16 @@ public void shouldStartTheWholeEnchilada() throws IOException, InterruptedExcept
159156 .withVhost ("vhost2" , true )
160157 .withExchange ("direct-exchange" , "direct" )
161158 .withExchange ("topic-exchange" , "topic" )
159+ .withExchange ("vhost1" , "topic-exchange-2" , "topic" , false , false , true , Collections .emptyMap ())
160+ .withExchange ("vhost2" , "topic-exchange-3" , "topic" )
161+ .withExchange ("topic-exchange-4" , "topic" , false , false , true , Collections .emptyMap ())
162162 .withQueue ("queue1" )
163163 .withQueue ("queue2" , true , false , ImmutableMap .of ("x-message-ttl" , 1000 ))
164+ .withQueue ("vhost1" , "queue3" , true , false , ImmutableMap .of ("x-message-ttl" , 1000 ))
165+ .withQueue ("vhost2" , "queue4" )
164166 .withBinding ("direct-exchange" , "queue1" )
167+ .withBinding ("vhost1" , "topic-exchange-2" , "queue3" )
168+ .withBinding ("vhost2" , "topic-exchange-3" , "queue4" , Collections .emptyMap (), "ss7" , "queue" )
165169 .withUser ("user1" , "password1" )
166170 .withUser ("user2" , "password2" , ImmutableSet .of ("administrator" ))
167171 .withPermission ("vhost1" , "user1" , ".*" , ".*" , ".*" )
@@ -175,15 +179,15 @@ public void shouldStartTheWholeEnchilada() throws IOException, InterruptedExcept
175179
176180 assertThat (container .execInContainer ("rabbitmqadmin" , "list" , "queues" )
177181 .getStdout ())
178- .contains ("queue1" , "queue2" );
182+ .contains ("queue1" , "queue2" , "queue3" , "queue4" );
179183
180184 assertThat (container .execInContainer ("rabbitmqadmin" , "list" , "exchanges" )
181185 .getStdout ())
182- .contains ("direct-exchange" , "topic-exchange" );
186+ .contains ("direct-exchange" , "topic-exchange" , "topic-exchange-2" , "topic-exchange-3" , "topic-exchange-4" );
183187
184188 assertThat (container .execInContainer ("rabbitmqadmin" , "list" , "bindings" )
185189 .getStdout ())
186- .contains ("direct-exchange" );
190+ .contains ("direct-exchange" , "topic-exchange-2" , "topic-exchange-3" );
187191
188192 assertThat (container .execInContainer ("rabbitmqadmin" , "list" , "users" )
189193 .getStdout ())
0 commit comments