File tree Expand file tree Collapse file tree 5 files changed +10
-19
lines changed
services/inventory/server Expand file tree Collapse file tree 5 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import "runtime"
66type DefaultCollector struct {}
77
88// CollectPosture returns minimal posture information for unsupported platforms
9- func (c * DefaultCollector ) CollectPosture () (* DevicePosture , error ) {
9+ func (* DefaultCollector ) CollectPosture () (* DevicePosture , error ) {
1010 posture := & DevicePosture {
1111 OS : OperatingSystem {
1212 Name : UnknownValue ,
Original file line number Diff line number Diff line change @@ -215,9 +215,7 @@ func TestService_initialRegistration(t *testing.T) {
215215}
216216
217217// TestService_updatePosture tests posture updates
218-
219218func TestService_updatePosture (t * testing.T ) {
220-
221219 t .Run ("successful posture update" , func (t * testing.T ) {
222220 updateRequests := 0
223221 mockInventory := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
Original file line number Diff line number Diff line change 1- Flask == 3.0.3
2- gunicorn == 21.2.0
3- requests == 2.32.3
4- opentelemetry-sdk == 1.26.0
5- opentelemetry-exporter-otlp-proto-http == 1.26.0
6- opentelemetry-instrumentation-flask == 0.47b0
7- prometheus-client == 0.20.0
8- psycopg [binary ]== 3.1.19
1+ flask
2+ pytest
3+ psycopg
4+ opentelemetry-api
5+ opentelemetry-sdk
6+ opentelemetry-exporter-otlp
7+ opentelemetry-instrumentation-flask
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import (
1515
1616 "github.com/go-chi/chi/v5"
1717 "github.com/go-chi/chi/v5/middleware"
18+
1819 // Register pgx driver for database/sql usage
1920 _ "github.com/jackc/pgx/v5/stdlib"
2021
@@ -210,7 +211,7 @@ func (s *Server) requireClientCertMiddleware(next http.Handler) http.Handler {
210211 })
211212}
212213
213- func (s * Server ) health (w http.ResponseWriter , r * http.Request ) {
214+ func (s * Server ) health (w http.ResponseWriter , _ * http.Request ) {
214215 w .WriteHeader (http .StatusOK )
215216 if err := json .NewEncoder (w ).Encode (map [string ]string {statusKey : statusOKValue }); err != nil {
216217 log .Printf ("failed to encode health response: %v" , err )
You can’t perform that action at this time.
0 commit comments