3232import java .util .function .Consumer ;
3333import java .util .function .Function ;
3434import java .util .stream .Collectors ;
35+ import java .util .stream .IntStream ;
3536import org .apache .ignite .Ignite ;
3637import org .apache .ignite .IgniteException ;
3738import org .apache .ignite .client .ClientAuthenticationException ;
6667import org .apache .ignite .testframework .junits .logger .GridTestLog4jLogger ;
6768import org .apache .logging .log4j .Level ;
6869import org .jetbrains .annotations .Nullable ;
70+ import org .junit .Ignore ;
6971import org .junit .Test ;
72+ import org .junit .runner .RunWith ;
73+ import org .junit .runners .Parameterized ;
7074
7175import static org .apache .ignite .testframework .GridTestUtils .assertThrows ;
7276import static org .apache .ignite .testframework .GridTestUtils .runAsync ;
7680/**
7781 * Checks the service awareness feature of the thin client.
7882 */
83+ @ RunWith (Parameterized .class )
7984public class ServiceAwarenessTest extends AbstractThinClientTest {
8085 /** */
8186 private static final String ATTR_NODE_IDX = "test.node.idx" ;
@@ -98,6 +103,16 @@ public class ServiceAwarenessTest extends AbstractThinClientTest {
98103 /** */
99104 private static ListeningTestLogger clientLogLsnr ;
100105
106+ /** */
107+ @ Parameterized .Parameter
108+ public int idx ;
109+
110+ /** */
111+ @ Parameterized .Parameters (name = "idx={0}" )
112+ public static Object [] commandHandlers () {
113+ return IntStream .range (0 , 50 ).boxed ().toArray ();
114+ }
115+
101116 /** {@inheritDoc} */
102117 @ Override protected IgniteConfiguration getConfiguration (String igniteInstanceName ) throws Exception {
103118 IgniteConfiguration cfg = super .getConfiguration (igniteInstanceName );
@@ -163,6 +178,7 @@ private static ServiceConfiguration serviceCfg() {
163178
164179 /** */
165180 @ Test
181+ @ Ignore
166182 public void testDelayedServiceRedeploy () throws Exception {
167183 TestBlockingDiscoverySpi testDisco = ((TestBlockingDiscoverySpi )grid (0 ).configuration ().getDiscoverySpi ());
168184
@@ -268,6 +284,7 @@ public void testNodesLeaveMultiThreaded() throws Exception {
268284 * Tests change of the minor cluster topology version doesn't trigger the service topology update.
269285 */
270286 @ Test
287+ @ Ignore
271288 public void testMinorTopologyVersionDoesntAffect () throws Exception {
272289 try (IgniteClient client = startClient ()) {
273290 ServicesTest .TestServiceInterface svc = client .services ().serviceProxy (SRV_NAME , ServicesTest .TestServiceInterface .class );
@@ -309,6 +326,7 @@ public void testMinorTopologyVersionDoesntAffect() throws Exception {
309326 * Tests the service topology update with a gap of service invocation during forced service redeployment.
310327 */
311328 @ Test
329+ @ Ignore
312330 public void testForcedServiceRedeployWhileClientIsIdle () throws Exception {
313331 try (IgniteClient client = startClient ()) {
314332 ServicesTest .TestServiceInterface svc = client .services ().serviceProxy (SRV_NAME , ServicesTest .TestServiceInterface .class );
@@ -442,6 +460,7 @@ private void doTestClusterTopChangesWhileServiceCalling(boolean shrinkTop, int s
442460 * {@link ClientClusterGroup} is set.
443461 */
444462 @ Test
463+ @ Ignore
445464 public void testWithNoSubCluster () {
446465 doTestServiceAwarenessForClusterGroup (null );
447466 }
@@ -451,6 +470,7 @@ public void testWithNoSubCluster() {
451470 * is passed as {@link ClientClusterGroup}.
452471 */
453472 @ Test
473+ @ Ignore
454474 public void testWithOneCorrectServer () {
455475 doTestServiceAwarenessForClusterGroup (Collections .singletonList (grid (1 ).localNode ().id ()));
456476 }
@@ -460,6 +480,7 @@ public void testWithOneCorrectServer() {
460480 * servers are passed as {@link ClientClusterGroup} to invoke the service on.
461481 */
462482 @ Test
483+ @ Ignore
463484 public void testWithTwoCorrectServers () {
464485 doTestServiceAwarenessForClusterGroup (Arrays .asList (grid (1 ).localNode ().id (), grid (2 ).localNode ().id ()));
465486 }
@@ -470,6 +491,7 @@ public void testWithTwoCorrectServers() {
470491 * the service on.
471492 */
472493 @ Test
494+ @ Ignore
473495 public void testWithOneCorrectOneIncorrectServers () {
474496 doTestServiceAwarenessForClusterGroup (Arrays .asList (grid (0 ).localNode ().id (), grid (2 ).localNode ().id ()));
475497 }
@@ -479,6 +501,7 @@ public void testWithOneCorrectOneIncorrectServers() {
479501 * server (having no service instance) are passed as {@link ClientClusterGroup} to invoke the service on.
480502 */
481503 @ Test
504+ @ Ignore
482505 public void testWithIncorrectServer () {
483506 doTestServiceAwarenessForClusterGroup (Collections .singletonList (grid (0 ).localNode ().id ()));
484507 }
0 commit comments