Skip to content

Commit cae1719

Browse files
author
kaanyalti
committed
enhancement(6394): remove commented code
1 parent 33ba842 commit cae1719

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

pkg/testing/tools/tools.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,6 @@ func InstallAgentWithPolicy(ctx context.Context, t *testing.T,
7575
if err := GetandSetUninstallTokens(ctx, t, kibClient, agentFixture, policy.ID); err != nil {
7676
return policy, err
7777
}
78-
// // If protected fetch uninstall token and set it for the fixture
79-
// resp, err := kibClient.GetPolicyUninstallTokens(ctx, policy.ID)
80-
// if err != nil {
81-
// return policy, fmt.Errorf("failed to fetch uninstal tokens: %w", err)
82-
// }
83-
// if len(resp.Items) == 0 {
84-
// return policy, fmt.Errorf("expected non-zero number of tokens: %w", err)
85-
// }
86-
//
87-
// if len(resp.Items[0].Token) == 0 {
88-
// return policy, fmt.Errorf("expected non-empty token: %w", err)
89-
// }
90-
//
91-
// uninstallToken := resp.Items[0].Token
92-
// t.Logf("Protected with uninstall token: %v", uninstallToken)
93-
// agentFixture.SetUninstallToken(uninstallToken)
9478
}
9579

9680
err = InstallAgentForPolicy(ctx, t, installOpts, agentFixture, kibClient, policy.ID)

0 commit comments

Comments
 (0)