Skip to content
Merged
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
3 changes: 2 additions & 1 deletion cmd/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"os"
"strings"
"time"

"code.cloudfoundry.org/clock"
Expand Down Expand Up @@ -750,7 +751,7 @@ var _ = Describe("Logs", func() {

err := command.Run(logsOpts)
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring("Unable to parse digest string"))
Expect(strings.ToLower(err.Error())).To(ContainSubstring("unable to parse digest string"))
})

It("returns error if verifying the log file sha fails", func() {
Expand Down
3 changes: 2 additions & 1 deletion release/pkg/compiled_package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package pkg_test

import (
"errors"
"strings"

"github.com/cloudfoundry/bosh-utils/crypto/cryptofakes"
fakes2 "github.com/cloudfoundry/bosh-utils/system/fakes"
Expand Down Expand Up @@ -188,7 +189,7 @@ var _ = Describe("NewCompiledPackageWithArchive", func() {
It("returns an error parsing the current digest", func() {
_, err := compiledPkg.RehashWithCalculator(fakeDigestCalculator, fakeArchiveReader)
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring("No digest algorithm found. Supported algorithms"))
Expect(strings.ToLower(err.Error())).To(ContainSubstring("no digest algorithm found. supported algorithms"))
})
})
})
Expand Down
3 changes: 2 additions & 1 deletion release/resource/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package resource_test

import (
"errors"
"strings"

boshcrypto "github.com/cloudfoundry/bosh-utils/crypto"
fakesfs "github.com/cloudfoundry/bosh-utils/system/fakes"
Expand Down Expand Up @@ -483,7 +484,7 @@ var _ = Describe("NewResourceWithBuiltArchive", func() {
It("should return an error", func() {
_, err := resource.RehashWithCalculator(fakeDigestCalculator, boshcrypto.ArchiveDigestFilePathReader(fakeFs))
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring("No digest algorithm found. Supported algorithms"))
Expect(strings.ToLower(err.Error())).To(ContainSubstring("no digest algorithm found. supported algorithms"))
})
})
})
Expand Down
2 changes: 1 addition & 1 deletion releasedir/fs_blobs_dir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ bad-sha-blob.tgz:

It("returns descriptive error", func() {
err := act(1)
Expect(err).To(MatchError(ContainSubstring("No digest algorithm found. Supported algorithms: sha1, sha256, sha512")))
Expect(strings.ToLower(err.Error())).To(ContainSubstring("no digest algorithm found. supported algorithms: sha1, sha256, sha512"))
})
})

Expand Down
5 changes: 3 additions & 2 deletions releasedir/index/fs_index_blobs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"os"
"path/filepath"
"strings"
"syscall"

fakeblob "github.com/cloudfoundry/bosh-utils/blobstore/fakes"
Expand Down Expand Up @@ -163,8 +164,8 @@ var _ = Describe("FSIndexBlobs", func() {
//currently, the only way to cause a digest parse failure is with an empty string
_, err := blobs.Get("name", "blob-id", "")
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring(
"No digest algorithm found. Supported algorithms: sha1, sha256, sha512"))
Expect(strings.ToLower(err.Error())).To(ContainSubstring(
"no digest algorithm found. supported algorithms: sha1, sha256, sha512"))
})

Context("when downloading blob fails", func() {
Expand Down