Search in sources :

Example 1 with BucketspacesConfig

use of com.yahoo.vespa.config.content.core.BucketspacesConfig in project vespa by vespa-engine.

the class ContentSearchClusterTest method require_that_all_document_types_belong_to_default_bucket_space_by_default.

@Test
public void require_that_all_document_types_belong_to_default_bucket_space_by_default() throws Exception {
    BucketspacesConfig config = getBucketspacesConfig(createClusterWithGlobalType());
    assertEquals(2, config.documenttype().size());
    assertDocumentType("global", "default", config.documenttype(0));
    assertDocumentType("regular", "default", config.documenttype(1));
    // Safeguard against flipping the switch
    assertFalse(config.enable_multiple_bucket_spaces());
}
Also used : BucketspacesConfig(com.yahoo.vespa.config.content.core.BucketspacesConfig) Test(org.junit.Test)

Aggregations

BucketspacesConfig (com.yahoo.vespa.config.content.core.BucketspacesConfig)1 Test (org.junit.Test)1