File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ func TestService_initialRegistration(t *testing.T) {
7676 t .Run ("successful registration with healthy posture" , func (t * testing.T ) {
7777 // Create mock inventory server
7878 registrationRequests := 0
79- mockInventory := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
79+ mockInventory := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
8080 if r .URL .Path == "/v1/devices" && r .Method == http .MethodPost {
8181 registrationRequests ++
8282
@@ -218,7 +218,7 @@ func TestService_initialRegistration(t *testing.T) {
218218func TestService_updatePosture (t * testing.T ) {
219219 t .Run ("successful posture update" , func (t * testing.T ) {
220220 updateRequests := 0
221- mockInventory := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
221+ mockInventory := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
222222 if strings .Contains (r .URL .Path , "/posture" ) && r .Method == http .MethodPost {
223223 updateRequests ++
224224
Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ import (
1010 "github.com/aws/aws-sdk-go-v2/service/ssm"
1111)
1212
13- const (
14- initialCapacity = 0
15- )
16-
1713// SSMManager implements secret management using AWS Systems Manager Parameter Store
1814type SSMManager struct {
1915 client * ssm.Client
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import (
1212
1313// VaultManager implements secret management using HashiCorp Vault
1414const (
15- emptyString = ""
1615 valueKey = "value"
1716 dataKey = "data"
1817 vaultAddrKey = "VAULT_ADDR"
You can’t perform that action at this time.
0 commit comments