feature/add_mocks #117

Merged
alexvanin merged 2 commits from dkirillov/frostfs-http-gw:feature/add_mocks into master 2024-06-18 13:22:16 +00:00
Collaborator
There is no content yet.
dkirillov self-assigned this 2024-06-17 14:57:56 +00:00
dkirillov added 2 commits 2024-06-17 14:57:58 +00:00
70908e7be0 [#XX] Fix integration test after updating dependencies
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
/ DCO (pull_request) Failing after 1m41s Details
/ Builds (1.21) (pull_request) Successful in 2m17s Details
/ Builds (1.22) (pull_request) Successful in 1m37s Details
/ Vulncheck (pull_request) Successful in 2m34s Details
/ Lint (pull_request) Failing after 4m47s Details
/ Tests (1.21) (pull_request) Successful in 3m17s Details
/ Tests (1.22) (pull_request) Successful in 3m12s Details
4270140663
[#XX] Add mocked handler for tests
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
dkirillov force-pushed feature/add_mocks from 4270140663 to 7b49e81e0b 2024-06-17 14:58:48 +00:00 Compare
dkirillov force-pushed feature/add_mocks from 7b49e81e0b to 98c43c74a3 2024-06-18 06:28:15 +00:00 Compare
dkirillov changed title from WIP: feature/add_mocks to feature/add_mocks 2024-06-18 06:49:58 +00:00
dkirillov requested review from storage-services-committers 2024-06-18 06:50:06 +00:00
dkirillov requested review from storage-services-developers 2024-06-18 06:50:06 +00:00
alexvanin reviewed 2024-06-18 07:55:21 +00:00
@ -0,0 +32,4 @@
}
// Container implements frostfs.FrostFS interface method.
func (x *FrostFS) Container(ctx context.Context, layerPrm handler.PrmContainer) (*container.Container, error) {

We keep parameter definition outside of this package so FrostFS interface can be defined without import of this package, right?

We keep parameter definition outside of this package so `FrostFS` interface can be defined without import of this package, right?
Poster
Collaborator

Right

Right
alexvanin marked this conversation as resolved
@ -0,0 +130,4 @@
// }
//
// return res, nil
// }

Unused?

Unused?
alexvanin marked this conversation as resolved
@ -0,0 +227,4 @@
// }
//
// return nil
//}

Unused?

Unused?
alexvanin marked this conversation as resolved
@ -0,0 +351,4 @@
// }
//
// return table, nil
//}

Unused?

Unused?
alexvanin marked this conversation as resolved
@ -0,0 +368,4 @@
return true
}
for _, rec := range table.Records() {

Can we simplify access check somehow so we won't depend on eACL? Maybe we can define a list of cnr + owner + op + objID tuples which are allowed and all others are denied?

Can we simplify access check somehow so we won't depend on eACL? Maybe we can define a list of `cnr + owner + op + objID` tuples which are allowed and all others are denied?
alexvanin marked this conversation as resolved
@ -36,2 +35,4 @@
}
// PrmContainer groups parameters of FrostFS.Container operation.
type PrmContainer struct {

What you think about having separate go file for frostfs interface and parameter definitions? frostfs.go and frostfs_mock.go looks good in my opinion.

What you think about having separate go file for frostfs interface and parameter definitions? `frostfs.go` and `frostfs_mock.go` looks good in my opinion.
Poster
Collaborator

It isn't so big to move this to separate file I suppose

It isn't so big to move this to separate file I suppose
alexvanin marked this conversation as resolved
dkirillov force-pushed feature/add_mocks from 98c43c74a3 to 3741e3b003 2024-06-18 09:04:31 +00:00 Compare
alexvanin approved these changes 2024-06-18 13:22:06 +00:00
alexvanin merged commit 3741e3b003 into master 2024-06-18 13:22:16 +00:00
alexvanin deleted branch feature/add_mocks 2024-06-18 13:22:20 +00:00
alexvanin referenced this issue from a commit 2024-06-25 15:12:23 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-http-gw#117
There is no content yet.