-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test, script and documentation improvements
- Loading branch information
Kristel
committed
Dec 28, 2024
1 parent
0dbb936
commit fa62bc0
Showing
10 changed files
with
112 additions
and
33 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,33 @@ | ||
# How to use the `mvn-*.sh` scripts | ||
|
||
## Execute from parent directory | ||
|
||
The scripts are set-up in a way that they are expected to be executed from their parent directory. | ||
|
||
Example: | ||
|
||
`> ./scripts/mvn-clean-verify-site.sh` | ||
|
||
## Tado secrets required for integration tests | ||
|
||
The mvn scripts which include the `verify` goal execute the integration tests. | ||
These tests expect environment variables to be present which contain your tado username and password. | ||
|
||
1. Lookup your tado username and password | ||
2. In the `scripts` directory, create a file named `set-secrets.sh` which looks like this: | ||
(see `set-secrets.sh.example` for an example) | ||
|
||
``` | ||
#!/bin/bash | ||
export TADO_USERNAME='<fill in your tado username here>' | ||
export TADO_PASSWORD='<fill in your tado password here' | ||
``` | ||
|
||
## Tado home, zone, etc. identifiers required for integration tests | ||
|
||
The mvn scripts which include the `verify` goal execute the integration tests. | ||
|
||
The tests use tado home, zone, etc. identifiers as specified in | ||
`tado-api-test/src/test/resources/application.yaml` | ||
|
||
You need to update those identifiers to execute the tests on your own home. |
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 +1,3 @@ | ||
source ./scripts/set-secrets.sh | ||
|
||
mvn clean verify -P local-api-spec --file pom.xml |
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 +1,5 @@ | ||
mvn clean verify site -P local-api-spec --file pom.xml | ||
source ./scripts/set-secrets.sh | ||
|
||
mvn clean verify site -P local-api-spec --file pom.xml | ||
|
||
mvn site --file pom.xml |
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 +1,5 @@ | ||
mvn verify site site:stage -P local-api-spec --file pom.xml | ||
source ./scripts/set-secrets.sh | ||
|
||
mvn verify -P local-api-spec --file pom.xml | ||
|
||
mvn site --file pom.xml |
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 +1,3 @@ | ||
source ./scripts/set-secrets.sh | ||
|
||
mvn verify -P local-api-spec --file pom.xml |
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,3 @@ | ||
#!/bin/bash | ||
export TADO_USERNAME='<fill in>' | ||
export TADO_PASSWORD='<fill in>' |
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,3 @@ | ||
source ./scripts/set-secrets.sh | ||
|
||
echo $TADO_USERNAME |
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