frostfsid: Restrict keys to a single subject #123
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-contract#123
Loading…
Reference in a new issue
No description provided.
Delete branch "achuprov/frostfs-contract:bugfix/restrict_primary_key"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #118
Signed-off-by: Alexander Chuprov a.chuprov@yadro.com
71bb3a65b7
toa98caa7210
@ -604,6 +604,44 @@ func TestFrostFSID_GroupManagement(t *testing.T) {
})
}
func TestAdditionalKeyFromPrimarySubject(t *testing.T) {
@achuprov have you used coverage to see whether test covers everything you have written?
Yes, all modified branches are covered by tests. Test coverage is 83% for
Frostfid
and 86% forNNS
.@ -97,2 +97,4 @@
groupCounterKey = 'c'
namespaceGroupsNamesPrefix = 'm'
// allAddressPrefix contains all keys and signifies that the key has been used.
allAddressPrefix = 'A'
Please, add this prefix to scheme within
doc.go
added
a98caa7210
to68e011efce
68e011efce
to874a8cc321
@ -215,1 +222,4 @@
addressKey := addressKey(contract.CreateStandardAccount(key))
if storage.Get(ctx, addressKey) != nil {
panic("key is occupied")
Can the error message be more specific?
What about migration?
874a8cc321
toe47a12f3a6
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
e47a12f3a6
to7a8c64b966