{"action":"closed","issue":{"url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/464","labels_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/464/comments","events_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/464/events","html_url":"https://github.com/lightblue-platform/lightblue-core/issues/464","id":106570499,"number":464,"title":"When unit testing using AbstractCRUDTestController, there needs to be a non-sustitution way to change the datasource on metadata","user":{"login":"dcrissman","id":1878960,"avatar_url":"https://avatars.githubusercontent.com/u/1878960?v=3","gravatar_id":"","url":"https://api.github.com/users/dcrissman","html_url":"https://github.com/dcrissman","followers_url":"https://api.github.com/users/dcrissman/followers","following_url":"https://api.github.com/users/dcrissman/following{/other_user}","gists_url":"https://api.github.com/users/dcrissman/gists{/gist_id}","starred_url":"https://api.github.com/users/dcrissman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcrissman/subscriptions","organizations_url":"https://api.github.com/users/dcrissman/orgs","repos_url":"https://api.github.com/users/dcrissman/repos","events_url":"https://api.github.com/users/dcrissman/events{/privacy}","received_events_url":"https://api.github.com/users/dcrissman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lightblue-platform/lightblue-core/labels/enhancement","name":"enhancement","color":"eb6420"},{"url":"https://api.github.com/repos/lightblue-platform/lightblue-core/labels/ready%20for%20review","name":"ready for review","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"dcrissman","id":1878960,"avatar_url":"https://avatars.githubusercontent.com/u/1878960?v=3","gravatar_id":"","url":"https://api.github.com/users/dcrissman","html_url":"https://github.com/dcrissman","followers_url":"https://api.github.com/users/dcrissman/followers","following_url":"https://api.github.com/users/dcrissman/following{/other_user}","gists_url":"https://api.github.com/users/dcrissman/gists{/gist_id}","starred_url":"https://api.github.com/users/dcrissman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcrissman/subscriptions","organizations_url":"https://api.github.com/users/dcrissman/orgs","repos_url":"https://api.github.com/users/dcrissman/repos","events_url":"https://api.github.com/users/dcrissman/events{/privacy}","received_events_url":"https://api.github.com/users/dcrissman/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-09-15T14:38:29Z","updated_at":"2015-09-15T15:41:44Z","closed_at":"2015-09-15T15:41:44Z","body":"Currently you can set the system parameter mongo.datasource to use substitution to alter metadata that has the substitution keys in it. The problem with that is for existing production metadata, there is no way to set the datasource without modifying the json. It would be nice to be able to  just drop in metadata and not need to change it.\r\n\r\nhttps://github.com/lightblue-platform/lightblue-esb-hook/blob/master/publish-hook/src/test/java/com/redhat/lightblue/hook/publish/BasePublishHookTest.java#L25"}}