-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ WIP ]Added Terratest Plan #6
Closed
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
08d1ea9
Update the output and updated the script to support the latest versio…
4378548
Added Terratest cases
8bd1f45
Updated the new test cases and restructure code
3c36d01
Updated the README.md file with instruction to run the test
4f9a07c
Create go.yml
vaibhavp 5b52519
Create ci.yml
vaibhavp e31563b
Update go.yml
vaibhavp c19a9ba
Merge branch 'master' of https://github.com/vp15591/terraform-gcp-yug…
5cfbb22
Merge branch 'ci' of https://github.com/vp15591/terraform-gcp-yugabyt…
537f205
Updated the workflow
a457321
Updated working directory in workflow
vaibhavp 3585593
Update go.yml
vaibhavp e2e5986
Update go.yml
vaibhavp 89f09f5
Update go.yml
vaibhavp 3368f6f
Gopack related file removed
45968a3
Merge branch 'test-plan' of https://github.com/vp15591/terraform-gcp-…
93888ab
Update go.yml
vaibhavp 1902515
Update go.yml
vaibhavp 06cba3c
Update go.yml
vaibhavp 56b5936
Update go.yml
vaibhavp 3898d86
Update go.yml
vaibhavp 792761b
Update go.yml
vaibhavp f976be2
Update go.yml
vaibhavp 990481d
Update go.yml
vaibhavp d81a12b
Update go.yml
vaibhavp 96d79c3
Update go.yml
vaibhavp 70748e3
Update go.yml
vaibhavp b679d82
Update go.yml
vaibhavp cca6653
Update go.yml
vaibhavp c0293ff
Update go.yml
vaibhavp 2b0f211
Update go.yml
vaibhavp 025098d
Update go.yml
vaibhavp fcf392d
Update go.yml
vaibhavp b0acc61
Updated test code to user env variable
269364b
Updated env variable
ff1f55c
Update go.yml
vaibhavp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,50 @@ | ||
name: continuous-integration | ||
on: [push] | ||
jobs: | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
env: | ||
GCP_KEY: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
GOOGLE_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | ||
|
||
steps: | ||
- name: Google Cloud Platform (GCP) CLI - gcloud | ||
uses: actions-hub/[email protected] | ||
env: | ||
# Project id | ||
PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | ||
# GCP authorization credentials | ||
APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
with: | ||
args: auth list | ||
|
||
- name: Set up Go 1.13 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13.5 | ||
id: go | ||
|
||
- name: Setup Terraform environment | ||
uses: marocchino/[email protected] | ||
with: | ||
# The terraform version to download (if necessary) and use. Example: 0.12.13 | ||
version: 0.12.13 | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
|
||
- name: Get dependencies | ||
run: | | ||
cd ./test | ||
go mod download | ||
|
||
- name: Build | ||
run: | | ||
echo "$GCP_KEY" | base64 -d > /tmp/account.json | ||
export GOOGLE_APPLICATION_CREDENTIALS="/tmp/account.json" | ||
cd ./test | ||
go test -v -timeout 90m yugabyte_test.go |
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 @@ | ||
vendor |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[submodule "utilities"] | ||
path = utilities | ||
url = https://github.com/YugaByte/utilities.git | ||
branch = master |
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
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,5 @@ | ||
create_universe.sh | ||
install_software.sh | ||
start_master.sh | ||
start_tserver.sh | ||
yugabyte-db |
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,9 @@ | ||
module terraform-gcp-yugabyte/test | ||
|
||
go 1.13 | ||
|
||
require ( | ||
github.com/Pallinder/go-randomdata v1.2.0 | ||
github.com/gruntwork-io/terratest v0.23.4 | ||
github.com/stretchr/testify v1.4.0 | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should do this test on a few OS's - such as ad Ubuntu and others. We can not assume the end-user will always use Ubuntu. I think Github action allows you to run the same workflow for a combination of OS - I would suggest exploring that.