mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 07:28:06 +00:00
Remove commented code
This commit is contained in:
@@ -807,15 +807,6 @@ func TestUpdateSecretHandler(t *testing.T) {
|
|||||||
|
|
||||||
mockOpClient := &mocks.TestClient{}
|
mockOpClient := &mocks.TestClient{}
|
||||||
mockOpClient.On("GetItemByID", mock.Anything, mock.Anything).Return(createItem(), nil)
|
mockOpClient.On("GetItemByID", mock.Anything, mock.Anything).Return(createItem(), nil)
|
||||||
//mocks.DoGetItemFunc = func(uuid string, vaultUUID string) (*onepassword.Item, error) {
|
|
||||||
//
|
|
||||||
// item := onepassword.Item{}
|
|
||||||
// item.Fields = generateFields(testData.opItem["username"], testData.opItem["password"])
|
|
||||||
// item.Version = itemVersion
|
|
||||||
// item.Vault.ID = vaultUUID
|
|
||||||
// item.ID = uuid
|
|
||||||
// return &item, nil
|
|
||||||
//}
|
|
||||||
h := &SecretUpdateHandler{
|
h := &SecretUpdateHandler{
|
||||||
client: cl,
|
client: cl,
|
||||||
opClient: mockOpClient,
|
opClient: mockOpClient,
|
||||||
|
Reference in New Issue
Block a user