-
Notifications
You must be signed in to change notification settings - Fork 332
Local setup for end2end tests #3062
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
d862a45
New script for running backend locally
pcapriotti 8b5ff16
Add nginz to script
pcapriotti ff17515
Check prerequisites
pcapriotti 74c9484
Wait for check_status
pcapriotti c4f3686
Start services synchronously
pcapriotti 8ee4262
Send SIGTERM again if processes don't terminate
pcapriotti 270136e
Small refactoring
pcapriotti 41646c1
Support multiple instances of the same service
pcapriotti 61d1f50
Better handling of spawn failures
pcapriotti f01f406
Start nginx by copying the whole conf directory
pcapriotti 1eee317
Configure nginx's pid
pcapriotti 4685449
Add domains to logs and nginx upstreams
pcapriotti b508395
Avoid adding Host header twice to fed requests
pcapriotti 67e0ffe
Add DNS entries for local nginx instances
pcapriotti d52746b
Set log level to Warn on all services
pcapriotti ca62d72
Fix cannon port in integration configuration
pcapriotti aaddba7
Set log level dynamically for all services
pcapriotti e2d494d
Pass environment through to the main script
pcapriotti 13d29ec
Add service spawn timeout
pcapriotti 044e94b
Add a second cannon instance
pcapriotti 80449a6
Honour INTEGRATION_FEDERATION_TESTS variable
pcapriotti 220e368
Remove old integration.sh script
pcapriotti 0b1c704
Add CHANGELOG entry
pcapriotti a772785
Leftovers
pcapriotti 7f493e9
Add pyyaml to nix
pcapriotti 362d103
Replace timeout thread with a simple time check
pcapriotti 0d3834d
Move start-service-only logic to run-service
pcapriotti 2149ad6
Merge remote-tracking branch 'origin/develop' into pcapriotti/end2end
pcapriotti 64d8687
Set up different ES indices for the two backends
pcapriotti a1f1c24
Use alternate index for the second backend
pcapriotti 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 hidden or 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 hidden or 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 @@ | ||
| New integration test script with support for running end2end tests locally |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -21,5 +21,5 @@ drainOpts: | |
| millisecondsBetweenBatches: 500 | ||
| minBatchSize: 5 | ||
|
|
||
| logLevel: Info | ||
| logLevel: Warn | ||
| logNetStrings: false | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ galley: | |
| host: 0.0.0.0 | ||
| port: 8085 | ||
|
|
||
| logLevel: Debug | ||
| logLevel: Warn | ||
| logNetStrings: false | ||
|
|
||
| optSettings: | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -88,7 +88,7 @@ backendTwo: | |
| port: 9084 | ||
| cannon: | ||
| host: 127.0.0.1 | ||
| port: 9086 | ||
| port: 9083 | ||
|
|
||
| redis2: | ||
| host: 127.0.0.1 | ||
|
|
||
19 changes: 19 additions & 0 deletions
19
services/nginz/integration-test/conf/nginz/integration.conf
This file contains hidden or 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,19 @@ | ||
| # plain TCP/http listening for integration tests only. | ||
| listen 8080; | ||
| listen 8081; | ||
|
|
||
| # for nginx-without-tls, we need to use a separate port for http2 traffic, | ||
| # as nginx cannot handle unencrypted http1 and http2 trafic on the same | ||
| # port. | ||
| # This port is only used for trying out nginx http2 forwarding without TLS locally and should not | ||
| # be ported to any production nginz config. | ||
| listen 8090 http2; | ||
|
|
||
| ######## TLS/SSL block start ############## | ||
| # | ||
| # Most integration tests simply use the http ports 8080 and 8081 | ||
| # But to also test tls forwarding, this port can be used. | ||
| # This applies only locally, as for kubernetes (helm chart) based deployments, | ||
| # TLS is terminated at the ingress level, not at nginz level | ||
| listen 8443 ssl http2; | ||
| listen [::]:8443 ssl http2; |
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.
Uh oh!
There was an error while loading. Please reload this page.