584585586587588589590591592593594
.buildKeyspace(ThriftFamilyFactory.getInstance()); ctx.start(); try { KeyspaceDefinition keyspaceDef = ctx.getEntity().describeKeyspace(); Assert.fail(); } catch (ConnectionException e) { LOG.info(e.getMessage()); }
19771978197919801981198219831984198519861987
props.setProperty("strategy_options.replication_factor", "1"); try { ks.createKeyspaceIfNotExists(props); KeyspaceDefinition ksDef = ks.describeKeyspace(); Assert.assertNotNull(ksDef); } catch (Exception e) { Assert.fail(e.getMessage()); }