-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: updated tests for function resource
- Loading branch information
Showing
3 changed files
with
16 additions
and
7 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 |
---|---|---|
@@ -1,14 +1,23 @@ | ||
# Qernal Terraform | ||
|
||
Running the tests; | ||
Before running the tests, you'll need to build and install the provider | ||
which can be done with; | ||
|
||
```bash | ||
go mod download | ||
make local-build | ||
make local-install | ||
``` | ||
|
||
Running the tests; | ||
|
||
```bash | ||
go test ./tests | ||
``` | ||
|
||
However, if you need to supply extra environment vars such as the token or a different | ||
build environment then this can be done like so; | ||
|
||
``` | ||
```bash | ||
QERNAL_CHAOS_ENDPOINT=https://chaos.qernal.com QERNAL_HYDRA_ENDPOINT=https://hydra.qernal.com QERNAL_TOKEN=$(cat ./qernal-token) go test ./tests | ||
``` |
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