Skip to content
Snippets Groups Projects
Commit e90b3366 authored by Florian Sesser's avatar Florian Sesser
Browse files

Add system tests for issuer metrics accessibility

parent 72074728
No related branches found
No related tags found
3 merge requests!180merge develop into production,!177merge develop into staging,!146Manage access to payment metrics
Pipeline #977 passed
......@@ -294,5 +294,14 @@ in {
code, log = client.execute('cat /tmp/stdout /tmp/stderr')
client.log(log)
raise
# The issuer metrics should be accessible from the monitoring network.
issuer.execute('ifconfig lo:fauxvpn 172.23.23.2/24')
issuer.wait_until_succeeds("nc -z 172.23.23.2 80")
issuer.succeed('curl --silent --insecure --fail --output /dev/null http://172.23.23.2/metrics')
# The issuer metrics should NOT be accessible from any other network.
issuer.fail('curl --silent --insecure --fail --output /dev/null http://localhost/metrics')
client.fail('curl --silent --insecure --fail --output /dev/null http://issuer/metrics')
issuer.execute('ifconfig lo:fauxvpn down')
'';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment