-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hoang Quoc Trung <[email protected]>
- Loading branch information
1 parent
b7cde0a
commit 7b8747f
Showing
4 changed files
with
41 additions
and
63 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
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,27 @@ | ||
# Contributing guidelines | ||
|
||
Feel free to open PRs to improve the code base, tests or add further preflight and postflight checks. | ||
|
||
Currently E2E tests are run manually based on the infrastructure bootstrapped in `e2e/terraform`. It's highly recommended that you run both unit tests and integration tests on your PRs | ||
|
||
|
||
**Unit test (also on the CI)** | ||
|
||
```console | ||
go test -v ./... | ||
``` | ||
|
||
**Integration tests (WIP)** | ||
|
||
```console | ||
# Initial setup | ||
cd e2e/terraform | ||
terraform apply | ||
|
||
# Running tests | ||
go run main.go \ | ||
--src-project=$SRC_PROJECT \ | ||
--src-instance=$SRC_INSTANCE \ | ||
--dst-project=$DST_PROJECT \ | ||
--dst-instance=$DST_INSTANCE | ||
``` |
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
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