stable

Clone or download

Read-only

Make possible to test at the unit level the pipeline rendering metrics for Prometheus

To move to the enalean/prometheus-client library some logic will need to be added to clear data collected with the current version of the library. This contribution splits the existing code and covers it with tests so the existing changes can also be tested. No functional change. Part of request #13894: Move to enalean/prometheus-client Change-Id: I9826152ed4ba532dc27bc4ca07b75fd4a074d9ca

Modified Files

Name
A plugins/prometheus_metrics/include/BasicAuthCredential.php +75 −0 Go to diff View file
A plugins/prometheus_metrics/include/MetricsAuthentication.php +93 −0 Go to diff View file
M plugins/prometheus_metrics/include/MetricsController.php +64 −72 Go to diff View file
M plugins/prometheus_metrics/include/prometheus_metricsPlugin.class.php +22 −3 Go to diff View file
A plugins/prometheus_metrics/phpunit/.simpletest_skip +0 −0 Go to diff View file
A plugins/prometheus_metrics/phpunit/BasicAuthCredentialTest.php +53 −0 Go to diff View file
A plugins/prometheus_metrics/phpunit/MetricsAuthenticationTest.php +124 −0 Go to diff View file
A plugins/prometheus_metrics/phpunit/MetricsControllerTest.php +63 −0 Go to diff View file
A plugins/prometheus_metrics/phpunit/bootstrap.php +21 −0 Go to diff View file