sanpwc commented on a change in pull request #388: URL: https://github.com/apache/ignite-3/pull/388#discussion_r725891825
########## File path: modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ITTablesApiTest.java ########## @@ -0,0 +1,308 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.ignite.internal.runner.app; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.Optional; +import java.util.UUID; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.TimeUnit; +import com.google.common.collect.Lists; +import org.apache.ignite.Ignite; +import org.apache.ignite.IgnitionManager; +import org.apache.ignite.internal.app.IgniteImpl; +import org.apache.ignite.internal.metastorage.MetaStorageManager; +import org.apache.ignite.internal.metastorage.client.WatchEvent; +import org.apache.ignite.internal.metastorage.client.WatchListener; +import org.apache.ignite.internal.metastorage.watch.AggregatedWatch; +import org.apache.ignite.internal.metastorage.watch.WatchAggregator; +import org.apache.ignite.internal.table.IgniteTablesInternal; +import org.apache.ignite.internal.table.TableImpl; +import org.apache.ignite.internal.testframework.IgniteAbstractTest; +import org.apache.ignite.internal.testframework.IgniteTestUtils; +import org.apache.ignite.internal.util.IgniteUtils; +import org.apache.ignite.lang.IgniteUuid; +import org.apache.ignite.schema.SchemaBuilders; +import org.apache.ignite.schema.definition.ColumnType; +import org.apache.ignite.table.Table; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.platform.commons.util.ReflectionUtils; +import org.mockito.Mockito; + +import static org.apache.ignite.internal.schema.configuration.SchemaConfigurationConverter.convert; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyLong; +import static org.mockito.Mockito.doAnswer; + +/** + * Integration tests to check consistent of java API on different nodes. + */ +public class ITTablesApiTest extends IgniteAbstractTest { + /** + * Schema name. + */ + public static final String SCHEMA = "PUBLIC"; + + /** + * Short table name. + */ + public static final String SHORT_TABLE_NAME = "tbl1"; + + /** + * Table name. + */ + public static final String TABLE_NAME = SCHEMA + "." + SHORT_TABLE_NAME; + + /** + * Nodes bootstrap configuration. + */ + private final LinkedHashMap<String, String> nodesBootstrapCfg = new LinkedHashMap<>() {{ + put("node0", "{\n" + Review comment: What about using TestInfo for node name generation? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
