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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user