-
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.
Landscape tests: switch to templates
We were modifying the fixtures too much: - find and replace for certificate - appending the hostagent URL section This meant that the config in the fixture bore little similarity to the one being used in the end. I switched to templates for the sake of clarity. Now the fixtures look much more like the final config.
- Loading branch information
1 parent
f29d7ef
commit 48e3800
Showing
6 changed files
with
57 additions
and
22 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
3 changes: 3 additions & 0 deletions
3
...cape/testdata/TestConnect/error_when_the_landscape_url_cannot_be_retrieved/landscape.conf
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 @@ | ||
[client] | ||
hello=world | ||
tags=wsl |
5 changes: 4 additions & 1 deletion
5
...ndscape/testdata/TestConnect/error_when_the_ssl_certificate_cannot_be_read/landscape.conf
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,2 +1,5 @@ | ||
[client] | ||
ssl_public_key = testdata/TestConnect/this_path_does_not_exist/certificate.pem | ||
ssl_public_key = testdata/TestConnect/this_path_does_not_exist/certificate.pem | ||
|
||
[host] | ||
url = {{ .HostURL }} |
5 changes: 4 additions & 1 deletion
5
...landscape/testdata/TestConnect/error_when_the_ssl_certificate_is_not_valid/landscape.conf
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,2 +1,5 @@ | ||
[client] | ||
ssl_public_key = %CERTPATH%/bad-certificate.pem | ||
ssl_public_key = {{ .CertPath }}/bad-certificate.pem | ||
|
||
[host] | ||
url = {{ .HostURL }} |
5 changes: 4 additions & 1 deletion
5
...proservices/landscape/testdata/TestConnect/success_with_an_ssl_certificate/landscape.conf
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,2 +1,5 @@ | ||
[client] | ||
ssl_public_key = %CERTPATH%/cert.pem | ||
ssl_public_key = {{ .CertPath }}/cert.pem | ||
|
||
[host] | ||
url = {{ .HostURL }} |
5 changes: 4 additions & 1 deletion
5
...l/proservices/landscape/testdata/TestConnect/success_with_non-empty_config/landscape.conf
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,6 @@ | ||
[client] | ||
hello=world | ||
tags=wsl | ||
tags=wsl | ||
|
||
[host] | ||
url = {{ .HostURL }} |