diff --git a/.golangci.yml b/.golangci.yml index f4fbed2f51..88f10bb240 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -59,4 +59,4 @@ linters: - nonamedreturns issues: - new-from-rev: 3221f76 \ No newline at end of file + new-from-rev: 9af4477 \ No newline at end of file diff --git a/extension/agenthealth/handler/stats/agent/agent.go b/extension/agenthealth/handler/stats/agent/agent.go index 9190dd2e03..5bc84133db 100644 --- a/extension/agenthealth/handler/stats/agent/agent.go +++ b/extension/agenthealth/handler/stats/agent/agent.go @@ -15,7 +15,7 @@ const ( ) type Stats struct { - CPUPercent *float64 `json:"cpu,omitempty"` + CpuPercent *float64 `json:"cpu,omitempty"` MemoryBytes *uint64 `json:"mem,omitempty"` FileDescriptorCount *int32 `json:"fd,omitempty"` ThreadCount *int32 `json:"th,omitempty"` diff --git a/internal/tls/testdata/server.crt b/internal/tls/testdata/server.crt index 9ec52f236c..12424f7b27 100644 --- a/internal/tls/testdata/server.crt +++ b/internal/tls/testdata/server.crt @@ -1,24 +1,24 @@ -----BEGIN CERTIFICATE----- -MIIEGTCCAgGgAwIBAgIRALga8S14PvM8VOWrduv9pOcwDQYJKoZIhvcNAQELBQAw -EjEQMA4GA1UEChMHUm9vdCBDQTAeFw0yNDEyMDQwODE1NTJaFw0yNDEyMDQwOTE1 -NTJaMBUxEzARBgNVBAoTCkt1YmVybmV0ZXMwggEiMA0GCSqGSIb3DQEBAQUAA4IB -DwAwggEKAoIBAQC8T8FGMSQm82McUNXH+U8NfCeC2weWPk9O+WVswxLzosJSBIld -akSu1jbsi1Q/Pt3g4C7NI2k4B2KnaanezG216oivI4W0XkDNOC0Bcyw+2k+CSsYE -DnRuLiqwS6JgaM7Q3tdxBDQYwiaaqEeH3ceVh3c4liYbG0ykIYEd1fVA/QxEz4sR -JxKoTacNCO3RkRExL1S19o6v4vZdcPuVsXUHFCqP0/bcGxLLx4DeWu9WbtyLPuWZ -0ZAC9dutwhMo/89pGkEcQeg3HzCCIknN7eCOWqKF9BhfFLpt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AwPBhP9/j6rQrDVH62zjHmEOjU/WsJQflgLfh +VJ/oIhLTDdGHhamJabpBr6RroxJVXo+vjfUf5LUc5vw54emx7PWOW4opuL3cE6J/ +URmA9CJX4wBeYyEHHoHFlPD9vV5GxOFQ57UimQK/bNl5jh1zxPPAY0j5OwReJRGH +1mrzt6pfGQeYFHMXbkFA5HU5P7Q5VF0cDCef9s1bxglSiMsEDaLOOyKvJ/w= -----END CERTIFICATE----- diff --git a/internal/tls/testdata/server.key b/internal/tls/testdata/server.key index 8e96664b42..0efcb40bb3 100644 --- a/internal/tls/testdata/server.key +++ b/internal/tls/testdata/server.key @@ -1,28 +1,28 @@ -----BEGIN PRIVATE KEY----- -MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC8T8FGMSQm82Mc -UNXH+U8NfCeC2weWPk9O+WVswxLzosJSBIldakSu1jbsi1Q/Pt3g4C7NI2k4B2Kn -aanezG216oivI4W0XkDNOC0Bcyw+2k+CSsYEDnRuLiqwS6JgaM7Q3tdxBDQYwiaa -qEeH3ceVh3c4liYbG0ykIYEd1fVA/QxEz4sRJxKoTacNCO3RkRExL1S19o6v4vZd -cPuVsXUHFCqP0/bcGxLLx4DeWu9WbtyLPuWZ0ZAC9dutwhMo/89pGkEcQeg3HzCC -IknN7eCOWqKF9BhfFLptAMlrj2/A4+2Pj3Wxmpj+vROe0FuZfwBSNMdzJxIKUij3 -l/L+qMKVAgMBAAECgf9ywCcGnuto0OeUWa3sLf/+N6ncE5yL8Wxis5car8TcslG3 -qQwL4LX51I+jlUPBRo3ueq4KU4nKmrWDTuA05F32fPTNxNe1EbprU9AZEhXkNyQ8 -QVRpJGXOvlNFGtHX7gYZQbIHLIiSjbz4gZMVOBBnDiWYVebincAWRFRp2feZoY34 -i7XPCtA7qsEsMpANNkRVNT287pmIqCJAkUqOB1P5hxLXi9xMdYOCre/eJtevwnhp -jAtrtrHDC1xCTSxoJjMZOhYN+3GDOjqKRmfux1Nd5cO7T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ZwwZH6WYgo9KA3036iTiF6fUx1doh5 +WB3M0M6SUTBFZzqzAq3vYYEWhns7A7Se/2w8N1+0HrRQnXu5aHK1RGo+iwKBgEST +hRx7fi/dK/xsl9oDyN4SPdPLlcmjPZ6/cb23RgUMZaAGiThmfu1hLU6pphMpkdKX +yzx6W9Wu2NTYPpT/WK8Ks4olYDjXaCnlrZR8BKz5E0Qq1OLej21ta0+5d+FbNSPA +o2u2EXEqUubVYxaUeYrpPAMiNzGNgAU+avTvvJaBAoGBAKely84irwZicpex79T/ +KYV3VOMYs6wETNSLdKkR9G2WEI4OsEw0qGm9pZXzS6lKOSXxW6fOzwI0/vhnmT4O +hBxeR+PriPFqD80ASXeVeVOEjMXQEjZ8Po+FfUvVu8zMNIPDwJ+hy94FE5kkDBte +vy6FnjMquTvekIsRwo/OOdz3 -----END PRIVATE KEY----- diff --git a/internal/tls/testdata/tls-ca.crt b/internal/tls/testdata/tls-ca.crt index 9220263fc0..4b861f4f40 100644 --- a/internal/tls/testdata/tls-ca.crt +++ b/internal/tls/testdata/tls-ca.crt @@ -1,29 +1,29 @@ -----BEGIN CERTIFICATE----- MIIE9jCCAt6gAwIBAgIBATANBgkqhkiG9w0BAQsFADASMRAwDgYDVQQKEwdSb290 -IENBMB4XDTI0MTIwNDA4MTU1N1oXDTM0MTIwNDA4MTU1N1owEjEQMA4GA1UEChMH -Um9vdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMg+wco5sO07 -d4hHUCK0J5zIGO7ko7sr3qYOR2HnfF2BRh0kVTkcmIIXaFsjfKWIKGDTi5hYeMWG -A8HMvznqJEeDwEqurgpK/LmR1x7x6VkZFXv7KE3mJTxceBg36xzyi9+AFbdFYmRT -z0hKGsxFQsbtJJZTIw5QZ8mssC6c4Sph8G4G4xthBOK6x3VA9sudlGyLEr3O9QId -Gz2s+izeas8Th6RvgYDM6PwKo5pMBOpMZsa1QDwkSH4090OKJh8gNmVpzekaJfnJ -9AXPMTRb6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