[Persistence] Use identifier service to get key

Retrieve key from identifier service for all persist operations.

Fixes https://github.com/nasa/openmct/issues/1013
This commit is contained in:
Pete Richards
2016-06-14 10:56:54 -07:00
parent 3480809129
commit 2d5824c4ab
2 changed files with 14 additions and 7 deletions

View File

@@ -101,6 +101,7 @@ define(
});
mockIdentifierService.parse.andReturn(mockIdentifier);
mockIdentifier.getSpace.andReturn(SPACE);
mockIdentifier.getKey.andReturn(id);
persistence = new PersistenceCapability(
mockCacheService,
mockPersistenceService,