public void testInitializingRegistryWithOrphanedServiceAssembly() throws Exception(Code)
The repository in this case will have a service assemmbly which is deployed to
various instances in the registry. The target components are missing in the repos.
When the registry is initialized the orphaned service assembly should be removed
from all the instances. The repository should still have the assembly.
This tests the cleanup logic when the registry has orphan service assemblies in
the server/cluster refs.
public void testInitializingRegistryWithPartialRegistryCleanup() throws Exception(Code)
The repository in this case will have only one component. When the registry is
initialized all the registered entities in the registry
are expected to be cleaned up except the SunSequencingEngine component.
This tests the cleanup logic when the registry has registered entities
most of which are missing in the repository, except one component.
testInitializingRegistryWithRegistryCleanup
public void testInitializingRegistryWithRegistryCleanup() throws Exception(Code)
The repository is empty so all the registered entities in the registry
are expected to be cleaned up. This tests the cleanup logic when the registry
has registered entities which are missing in the repository.
testInitializingRegistryWithRepositoryCleanup
public void testInitializingRegistryWithRepositoryCleanup() throws Exception(Code)
This tests the case when a service assembly is there in the repository,
but not the registry. The repository should be cleanedup.
testReadingCorruptRegistry
public void testReadingCorruptRegistry() throws Exception(Code)
Test reading from a bad registry and a missing-backup. The expected
result is a failure to initialize the registry.
Test Registry Creation, when the registry.xml and registry-backup.xml have
not been created. i.e. build the registry from scratch.
throws: Exception - if an unexpected error occurs