Skip to content

Commit

Permalink
WIP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NSAmelchev committed May 14, 2024
1 parent 314f00c commit 49f8d30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.junit.Test;

import static org.apache.ignite.internal.IgniteNodeAttributes.ATTR_IGNITE_INSTANCE_NAME;
import static org.apache.ignite.internal.commandline.CommandHandler.EXIT_CODE_CONNECTION_FAILED;
import static org.apache.ignite.internal.commandline.CommandHandler.EXIT_CODE_OK;
import static org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.INDEX_FILE_NAME;
import static org.apache.ignite.internal.processors.cache.verify.IdleVerifyUtility.GRID_NOT_IDLE_MSG;
Expand Down Expand Up @@ -118,8 +119,10 @@ public void testRemoveMetadataAndRecreateWithDifferentCase() throws Exception {

cache.query(new SqlFieldsQuery("DROP TABLE PUBLIC.t1")).getAll();

assertEquals(EXIT_CODE_OK, execute("--meta", "remove", "--typeName", "CUSTOM_SQL_KEY_TYPE"));
assertEquals(EXIT_CODE_OK, execute("--meta", "remove", "--typeName", "CUSTOM_SQL_VALUE_TYPE"));
// todo
int expCode = commandHandler.equals(CLI_CMD_HND) ? EXIT_CODE_CONNECTION_FAILED : EXIT_CODE_OK;
assertEquals(expCode, execute("--meta", "remove", "--typeName", "CUSTOM_SQL_KEY_TYPE"));
assertEquals(expCode, execute("--meta", "remove", "--typeName", "CUSTOM_SQL_VALUE_TYPE"));

cache.query(new SqlFieldsQuery("CREATE TABLE t1(id INT PRIMARY KEY, str VARCHAR) " +
"WITH \"cache_name=" + DEFAULT_CACHE_NAME + ", key_type=CUSTOM_SQL_KEY_TYPE, value_type=CUSTOM_SQL_VALUE_type\"")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ClientClusterImpl extends ClientClusterGroupImpl implements ClientCluster

/** {@inheritDoc} */
@Override public void state(ClusterState newState) throws ClientException {
state(newState, false);
state(newState, true);
}

/** {@inheritDoc} */
Expand Down

0 comments on commit 49f8d30

Please sign in to comment.