zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/test/blackbox/helpers_metrics.bash (about)

     1  METRICS_USER=observability
     2  METRICS_PASS=MySecreTPa55
     3  
     4  function metrics_route_check () {
     5      local servername="http://127.0.0.1:${1}/metrics"
     6      status_code=$(curl --write-out '%{http_code}' ${2}  --silent --output /dev/null ${servername})
     7  
     8      [ "$status_code" -eq ${3} ]
     9  }