-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new context and make integration tests stricter (#321)
I added a new context and I noticed that the tests were still passing Turns out the `.Contains` condition on the output was still matching I changed to a strict `Equal` and remove the stderr output from there The subpath image is unused so far, but it will be in a future PR
- Loading branch information
1 parent
530ca55
commit 398defa
Showing
5 changed files
with
74 additions
and
5 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,3 +1,4 @@ | ||
another | ||
* default | ||
other | ||
subpath |
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,34 @@ | ||
events{} | ||
|
||
http { | ||
# this is required to proxy Grafana Live WebSocket connections. | ||
map $http_upgrade $connection_upgrade { | ||
default upgrade; | ||
'' close; | ||
} | ||
|
||
upstream grafana { | ||
server grafana_subpath:3002; | ||
} | ||
|
||
server { | ||
listen 3003; | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
server_name 0.0.0.0; | ||
|
||
location /grafana/ { | ||
proxy_set_header Host $host; | ||
proxy_pass http://grafana; | ||
} | ||
|
||
# Proxy Grafana Live WebSocket connections. | ||
location /api/live/ { | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection $connection_upgrade; | ||
proxy_set_header Host $host; | ||
proxy_pass http://grafana; | ||
} | ||
} | ||
} |