Skip to content

Commit

Permalink
- Fix struct types after rebasing from BSR container validate PR
Browse files Browse the repository at this point in the history
  • Loading branch information
elimt committed Jul 28, 2023
1 parent e5259c2 commit e1097d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion internal/bsr/bsr.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ type ContainerValidation struct {
Name string
ContainerType ContainerType
Error *multierror.Error
FileChecksumValidations ChecksumValidation
FileChecksumValidations ContainerChecksumValidation
SubContainers []*ContainerValidation
}

Expand Down
18 changes: 9 additions & 9 deletions internal/bsr/bsr_validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ func TestBSR_Validate_Valid(t *testing.T) {
storage storage.FS
sessionId string
sessionRecordingId string
expectedSessionChecksums ChecksumValidation
expectedConnectionChecksums ChecksumValidation
expectedChannelChecksums ChecksumValidation
expectedSessionChecksums ContainerChecksumValidation
expectedConnectionChecksums ContainerChecksumValidation
expectedChannelChecksums ContainerChecksumValidation
expectedSessionContainerSize int
expectedConnectionContainerSize int
expectedChannelContainerSize int
Expand Down Expand Up @@ -178,7 +178,7 @@ func TestBSR_Validate_Valid(t *testing.T) {

return fs
}(),
expectedSessionChecksums: ChecksumValidation{
expectedSessionChecksums: ContainerChecksumValidation{
bsrPubKeyFileName: &FileChecksumValidation{
Filename: bsrPubKeyFileName,
Passed: true,
Expand Down Expand Up @@ -212,7 +212,7 @@ func TestBSR_Validate_Valid(t *testing.T) {
Passed: true,
},
},
expectedConnectionChecksums: ChecksumValidation{
expectedConnectionChecksums: ContainerChecksumValidation{
"connection-recording-summary.json": &FileChecksumValidation{
Filename: "connection-recording-summary.json",
Passed: true,
Expand All @@ -222,7 +222,7 @@ func TestBSR_Validate_Valid(t *testing.T) {
Passed: true,
},
},
expectedChannelChecksums: ChecksumValidation{
expectedChannelChecksums: ContainerChecksumValidation{
"channel-recording-summary.json": &FileChecksumValidation{
Filename: "channel-recording-summary.json",
Passed: true,
Expand Down Expand Up @@ -284,7 +284,7 @@ func TestBSR_Validate_Valid(t *testing.T) {
return fs
}(),

expectedSessionChecksums: ChecksumValidation{
expectedSessionChecksums: ContainerChecksumValidation{
bsrPubKeyFileName: &FileChecksumValidation{
Filename: bsrPubKeyFileName,
Passed: true,
Expand Down Expand Up @@ -323,7 +323,7 @@ func TestBSR_Validate_Valid(t *testing.T) {
Error: errors.New("checksum mismatch"),
},
},
expectedConnectionChecksums: ChecksumValidation{
expectedConnectionChecksums: ContainerChecksumValidation{
"connection-recording-summary.json": &FileChecksumValidation{
Filename: "connection-recording-summary.json",
Passed: true,
Expand All @@ -333,7 +333,7 @@ func TestBSR_Validate_Valid(t *testing.T) {
Passed: true,
},
},
expectedChannelChecksums: ChecksumValidation{
expectedChannelChecksums: ContainerChecksumValidation{
"channel-recording-summary.json": &FileChecksumValidation{
Filename: "channel-recording-summary.json",
Passed: true,
Expand Down

0 comments on commit e1097d8

Please sign in to comment.