Skip to content

Commit 383f99d

Browse files
committed
return empty fields
1 parent 34bab88 commit 383f99d

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

cmd/integration/make_backup/main.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ func main() {
702702
}
703703

704704
scheduleClient := pb.NewBackupScheduleServiceClient(conn)
705+
705706
schedules, err := scheduleClient.ListBackupSchedules(
706707
context.Background(), &pb.ListBackupSchedulesRequest{
707708
ContainerId: containerID,
@@ -714,6 +715,15 @@ func main() {
714715
if len(schedules.Schedules) > 0 {
715716
log.Panicf("got backup schedule, but none created: %s", schedules.Schedules[0].String())
716717
}
718+
schedules, err = scheduleClient.ListBackupSchedules(
719+
context.Background(), &pb.ListBackupSchedulesRequest{
720+
ContainerId: "",
721+
DatabaseNameMask: "%",
722+
},
723+
)
724+
if err != nil {
725+
log.Panicf("failed to list backup schedules: %v", err)
726+
}
717727
_, err = scheduleClient.CreateBackupSchedule(
718728
context.Background(), &pb.CreateBackupScheduleRequest{
719729
ContainerId: containerID,

internal/audit/audit_interceptor.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ func SetAuditFieldsForRequest(ctx context.Context, fields *AuditFields) {
2929
func GetAuditFieldsForRequest(requestID string) *AuditFields {
3030
v, ok := containerStore.Load(requestID)
3131
if !ok {
32-
return nil
32+
return &AuditFields{
33+
ContainerID: "",
34+
Database: "",
35+
}
3336
}
3437
return v.(*AuditFields)
3538
}

0 commit comments

Comments
 (0)