Push bookeeping of names and ids down a level in deployer

The controller doesn't need to know the mappings, and it helps
to keep them closer to the actual AppDeployer, so in a future
change we can use the app names to look up functions.
This commit is contained in:
Dave Syer
2017-07-03 14:54:44 +01:00
parent 6d6c7ef8b3
commit 42a50861c0
3 changed files with 85 additions and 78 deletions

View File

@@ -63,7 +63,7 @@ public class FunctionExtractingFunctionCatalogTests {
@AfterClass
public static void close() {
if (id != null) {
deployer.undeploy(id);
deployer.undeploy("sample");
}
}
@@ -95,7 +95,7 @@ public class FunctionExtractingFunctionCatalogTests {
Collections.emptyMap());
AppDeploymentRequest request = new AppDeploymentRequest(definition, resource,
Collections.emptyMap(), Arrays.asList(args));
String deployed = deployer.deploy(request);
String deployed = deployer.deploy("sample", request);
return deployed;
}