Skip to content

Commit 01b1a90

Browse files
committed
create app before deploy in all integ tests
1 parent 00acda1 commit 01b1a90

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public void shouldCallExistingFn() throws Exception {
3232
IntegrationTestRule.TestContext tc = testRule.newTest();
3333
tc.withDirFrom("funcs/simpleFunc").rewritePOM();
3434

35+
tc.runFn("--verbose", "create", "app", tc.appName());
3536
tc.runFn("--verbose", "deploy", "--app", tc.appName(), "--local");
3637
tc.runFn("config", "app", tc.appName(), "GREETING", "Salutations");
3738

@@ -45,6 +46,7 @@ public void shouldCallExistingFn() throws Exception {
4546

4647
@Test()
4748
public void checkBoilerPlate() throws Exception {
49+
tc.runFn("--verbose", "create", "app", tc.appName());
4850
for (String runtime : new String[]{"java8", "java11"}) {
4951
IntegrationTestRule.TestContext tc = testRule.newTest();
5052

@@ -67,7 +69,7 @@ public static class InspectResponse {
6769
public void shouldHandleTrigger() throws Exception {
6870
IntegrationTestRule.TestContext tc = testRule.newTest();
6971
tc.withDirFrom("funcs/httpgwfunc").rewritePOM();
70-
72+
tc.runFn("--verbose", "create", "app", tc.appName());
7173
tc.runFn("--verbose", "deploy", "--app", tc.appName(), "--local");
7274

7375
// Get me the trigger URL

0 commit comments

Comments
 (0)