generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate deploy_test to integration tests in buildengine (#2505)
This tests the same things as the old test, but through slightly higher abstraction layer (cli instead of calling build engine functions directly) The same functions as in the original test should get called via the cli in the integration test. See #1585
- Loading branch information
Showing
3 changed files
with
39 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//go:build integration | ||
|
||
package buildengine | ||
|
||
import ( | ||
"testing" | ||
|
||
in "github.com/TBD54566975/ftl/internal/integration" | ||
) | ||
|
||
func TestDeploy(t *testing.T) { | ||
in.Run(t, | ||
in.WithTestDataDir("testdata"), | ||
in.CopyModule("another"), | ||
|
||
// Build first to make sure the files are there. | ||
in.Build("another"), | ||
in.FileExists("/another/.ftl/main"), | ||
|
||
// Test that the deployment works and starts correctly | ||
in.Deploy("another"), | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters