"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "graylog2-server/src/test/java/org/graylog2/indexer/indices/IndicesIT.java" between
graylog2-server-4.0.4.tar.gz and graylog2-server-4.0.5.tar.gz

About: Graylog is a fully integrated log management platform for collecting, indexing, and analyzing both structured and unstructured data from almost any source (builds on MongoDB database and Elasticsearch search engine). Server instance (source code).

IndicesIT.java  (graylog2-server-4.0.4):IndicesIT.java  (graylog2-server-4.0.5)
skipping to change at line 19 skipping to change at line 19
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details. * Server Side Public License for more details.
* *
* You should have received a copy of the Server Side Public License * You should have received a copy of the Server Side Public License
* along with this program. If not, see * along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>. * <http://www.mongodb.com/licensing/server-side-public-license>.
*/ */
package org.graylog2.indexer.indices; package org.graylog2.indexer.indices;
import com.github.joschi.jadconfig.util.Duration;
import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSet;
import com.google.common.eventbus.EventBus; import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe; import com.google.common.eventbus.Subscribe;
import org.assertj.jodatime.api.Assertions; import org.assertj.jodatime.api.Assertions;
import org.graylog.testing.elasticsearch.ElasticsearchBaseTest; import org.graylog.testing.elasticsearch.ElasticsearchBaseTest;
import org.graylog2.audit.NullAuditEventSender; import org.graylog2.audit.NullAuditEventSender;
import org.graylog2.indexer.IndexMappingFactory; import org.graylog2.indexer.IndexMappingFactory;
import org.graylog2.indexer.IndexNotFoundException; import org.graylog2.indexer.IndexNotFoundException;
import org.graylog2.indexer.IndexSet; import org.graylog2.indexer.IndexSet;
skipping to change at line 444 skipping to change at line 445
assertThat(indexSetStats.indices()).isEqualTo(2L); assertThat(indexSetStats.indices()).isEqualTo(2L);
assertThat(indexSetStats.size()).isNotZero(); assertThat(indexSetStats.size()).isNotZero();
} }
@Test @Test
public void numberOfMessagesReturnsCorrectSize() { public void numberOfMessagesReturnsCorrectSize() {
importFixture("org/graylog2/indexer/indices/IndicesIT.json"); importFixture("org/graylog2/indexer/indices/IndicesIT.json");
assertThat(indices.numberOfMessages("graylog_0")).isEqualTo(10); assertThat(indices.numberOfMessages("graylog_0")).isEqualTo(10);
} }
@Test
public void optimizeIndexJobDoesNotThrowException() {
importFixture("org/graylog2/indexer/indices/IndicesIT.json");
indices.optimizeIndex("graylog_0", 1, Duration.minutes(1));
}
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)