Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ require (
github.com/x448/float16 v0.8.4 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
go.uber.org/zap v1.27.0
golang.org/x/crypto v0.26.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sys v0.24.0 // indirect
Expand Down
6 changes: 3 additions & 3 deletions taskfiles/Taskfile_gotest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ tasks:
-v \
-coverprofile={{.UNITTEST_DIR}}/main.out \
./...
gocov convert {{.UNITTEST_DIR}}/main.out > {{.UNITTEST_DIR}}/coverage.json
# gocov convert {{.UNITTEST_DIR}}/main.out > {{.UNITTEST_DIR}}/coverage.json

go:prodpublic:
desc: "run the integration tests"
Expand All @@ -59,7 +59,7 @@ tasks:
-v \
-coverprofile={{.UNITTEST_DIR}}/main.out \
./...
gocov convert {{.UNITTEST_DIR}}/main.out > {{.UNITTEST_DIR}}/coverage.json
# gocov convert {{.UNITTEST_DIR}}/main.out > {{.UNITTEST_DIR}}/coverage.json


go:unit:
Expand All @@ -80,4 +80,4 @@ tasks:
-v \
-coverprofile={{.UNITTEST_DIR}}/main.out \
./...
gocov convert {{.UNITTEST_DIR}}/main.out > {{.UNITTEST_DIR}}/coverage.json
# gocov convert {{.UNITTEST_DIR}}/main.out > {{.UNITTEST_DIR}}/coverage.json
23 changes: 0 additions & 23 deletions veracitytesting/testeventgenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ import (

"github.com/datatrails/go-datatrails-common-api-gen/assets/v2/assets"
"github.com/datatrails/go-datatrails-common-api-gen/attribute/v2/attribute"
"github.com/datatrails/go-datatrails-common/azbus"
"github.com/datatrails/go-datatrails-merklelog/massifs/snowflakeid"
"github.com/datatrails/go-datatrails-merklelog/mmrtesting"
"github.com/datatrails/go-datatrails-simplehash/simplehash"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/types/known/timestamppb"
)

Expand Down Expand Up @@ -143,27 +141,6 @@ func (g *EventTestGenerator) GenerateEventBatch(count int) []*assets.EventRespon
return events
}

func (g *EventTestGenerator) GenerateTenantEventMessageBatch(tenantIdentity string, count int) []*azbus.ReceivedMessage {
msgs := make([]*azbus.ReceivedMessage, 0, count)
for range count {
event := assets.EventMessage{
TenantId: tenantIdentity,
Event: g.GenerateNextEvent(tenantIdentity),
}
m := protojson.MarshalOptions{UseProtoNames: true}
data, err := m.Marshal(&event)
if err != nil {
g.T.Fatalf("failed to marshal event: %v", err)
}

props := make(map[string]any)
props[resourceChangedProperty] = resourceChangeMerkleLogStoredEvent

msgs = append(msgs, &azbus.ReceivedMessage{Body: data, ApplicationProperties: props})
}
return msgs
}

func (g *EventTestGenerator) GenerateNextEvent(tenantIdentity string) *assets.EventResponse {

assetIdentity := g.NewAssetIdentity()
Expand Down