registry: Add tests for registry exporter #144
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/xk6-frostfs#144
Loading…
Reference in a new issue
No description provided.
Delete branch "elebedeva/xk6-frostfs:fix/registry-export-grpc-obj"
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?
Signed-off-by: Ekaterina Lebedeva ekaterina.lebedeva@yadro.com
2d26a5c3b9
to36ae1b6bdb
@ -0,0 +25,4 @@
require.NotEqual(t, "", mode, "test mode should be either \"s3\" or\"grpc\"")
dbName := "registry" + mode + ".db"
jsonName := "registry" + mode + ".json"
How about to use temp dir for db and json?
fixed
Add tests for registry exporterto WIP: Add tests for registry exporter36ae1b6bdb
toc7425dcfc9
WIP: Add tests for registry exporterto Add tests for registry exporterCould you also add
registry:
prefix to both commits?The commit message for
23e02c2448
is exquisite!c7425dcfc9
tob2c94fb80a
@ -0,0 +91,4 @@
if div <= 0 {
return 0, fmt.Errorf("invalid divider %v", div)
}
for {
Is this equivalent?
return 1 + rand.Intn(div - 1), nil
Good point, thanks.
Also found a problem in
runExportChangedTest()
: if an originallen(expected.objects) == 1
there is a panic. So made the length-by-default for everyexpected.objects[]
to be not less than2
.b2c94fb80a
to58c6e8965e
58c6e8965e
tof90a645594
Add tests for registry exporterto registry: Add tests for registry exporter