Skip to content

Commit 3a09582

Browse files
committed
create app before deploy app
1 parent f9e02c7 commit 3a09582

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • integration-tests/src/test/java/com/fnproject/fn/integrationtest

integration-tests/src/test/java/com/fnproject/fn/integrationtest/FlowTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class FlowTest {
2626
public void shouldInvokeBasicFlow() throws Exception {
2727
IntegrationTestRule.TestContext tc = testRule.newTest();
2828
tc.withDirFrom("funcs/flowBasic").rewritePOM();
29+
tc.runFn("--verbose", "create", "app", tc.appName(), "--local");
2930
tc.runFn("--verbose", "deploy", "--app", tc.appName(), "--local");
3031
tc.runFn("config", "app", tc.appName(), "COMPLETER_BASE_URL", testRule.getFlowURL());
3132
CmdResult r = tc.runFnWithInput("1", "invoke", tc.appName(), "flowbasic");
@@ -37,6 +38,7 @@ public void shouldInvokeBasicFlow() throws Exception {
3738
public void shouldInvokeBasicFlowJDK8() throws Exception {
3839
IntegrationTestRule.TestContext tc = testRule.newTest();
3940
tc.withDirFrom("funcs/flowBasicJDK8").rewritePOM();
41+
tc.runFn("--verbose", "create", "app", tc.appName(), "--local");
4042
tc.runFn("--verbose", "deploy", "--app", tc.appName(), "--local");
4143
tc.runFn("config", "app", tc.appName(), "COMPLETER_BASE_URL", testRule.getFlowURL());
4244
CmdResult r = tc.runFnWithInput("1", "invoke", tc.appName(), "flowbasicj8");
@@ -48,6 +50,7 @@ public void shouldInvokeBasicFlowJDK8() throws Exception {
4850
public void shouldExerciseAllFlow() throws Exception {
4951
IntegrationTestRule.TestContext tc = testRule.newTest();
5052
tc.withDirFrom("funcs/flowAllFeatures").rewritePOM();
53+
tc.runFn("--verbose", "create", "app", tc.appName(), "--local");
5154
tc.runFn("--verbose", "deploy", "--app", tc.appName(), "--local");
5255
tc.runFn("config", "app", tc.appName(), "COMPLETER_BASE_URL", testRule.getFlowURL());
5356
CmdResult r = tc.runFnWithInput("1", "invoke", tc.appName(), "flowallfeatures");

0 commit comments

Comments
 (0)