Add assertion asserting that the 'principalNameIndex' OQL Index is a FUNCTIONAL/RANGE Index and not a HASH Index.
Resolves gh-45.
This commit is contained in:
@@ -37,6 +37,7 @@ import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.data.gemfire.GemfireTemplate;
|
||||
import org.springframework.data.gemfire.IndexType;
|
||||
import org.springframework.data.gemfire.config.annotation.ClientCacheApplication;
|
||||
import org.springframework.data.gemfire.tests.integration.SpringApplicationContextIntegrationTestsSupport;
|
||||
import org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects;
|
||||
@@ -90,6 +91,7 @@ public class GemFireHttpSessionConfigurationIntegrationTests extends SpringAppli
|
||||
assertThat(sessionsRegion.getName()).isEqualTo(GemFireHttpSessionConfiguration.DEFAULT_SESSION_REGION_NAME);
|
||||
assertThat(principleNameIndex).isNotNull();
|
||||
assertThat(principleNameIndex.getName()).isEqualTo("principalNameIndex");
|
||||
assertThat(principleNameIndex.getType()).isEqualTo(IndexType.FUNCTIONAL.getGemfireIndexType());
|
||||
assertThat(principleNameIndex.getRegion()).isEqualTo(sessionsRegion);
|
||||
assertThat(getApplicationContext().getBean(SessionRepository.class)).isInstanceOf(GemFireOperationsSessionRepository.class);
|
||||
assertThat(sessionsRegionTemplate).isNotNull();
|
||||
|
||||
Reference in New Issue
Block a user