Skip to content

Commit

Permalink
updated nits
Browse files Browse the repository at this point in the history
  • Loading branch information
chitrangpatel authored and tekton-robot committed Aug 1, 2023
1 parent 1f5c137 commit 4148d69
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1/pipeline_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ func TestPipelineChecksum(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
sha, err := tt.pipeline.Checksum()
if err != nil {
t.Fatalf("Error computing checksuum: %v", err)
t.Fatalf("Error computing checksum: %v", err)
}

if d := cmp.Diff(hex.EncodeToString(sha), "98bc732636b8fbc08f3d353932147e4eff4e667f0c1af675656a48efdc8178e3"); d != "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1/task_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestTask_Checksum(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
sha, err := tt.task.Checksum()
if err != nil {
t.Fatalf("Error computing checksuum: %v", err)
t.Fatalf("Error computing checksum: %v", err)
}

if d := cmp.Diff(hex.EncodeToString(sha), "0cf41a775529eaaa55ff115eebe5db01a3b6bf2f4b924606888736274ceb267a"); d != "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1beta1/pipeline_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ func TestPipelineChecksum(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
sha, err := tt.pipeline.Checksum()
if err != nil {
t.Fatalf("Error computing checksuum: %v", err)
t.Fatalf("Error computing checksum: %v", err)
}

if d := cmp.Diff(hex.EncodeToString(sha), "ef400089e645c69a588e71fe629ce2a989743e303c058073b0829c6c6338ab8a"); d != "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1beta1/task_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestTask_Checksum(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
sha, err := tt.task.Checksum()
if err != nil {
t.Fatalf("Error computing checksuum: %v", err)
t.Fatalf("Error computing checksum: %v", err)
}

if d := cmp.Diff(hex.EncodeToString(sha), "c913fb33ce186f8a98e77eb2885495da71103de323a1dc420d1df1809a10dfd4"); d != "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/trustedresources/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func extractSignature(in metav1.Object) ([]byte, error) {
func getChecksum(resource metav1.Object) ([]byte, error) {
h, ok := resource.(Hashable)
if !ok {
return nil, fmt.Errorf("%w: got resource %v but v1.Task, v1beta1.Task, v1.Pipeline and v1beta1.Pipeline are currently supported", ErrResourceNotSupported, resource)
return nil, fmt.Errorf("%w: resource %T is not a Hashable type", ErrResourceNotSupported, resource)
}
checksumBytes, err := h.Checksum()
if err != nil {
Expand Down

0 comments on commit 4148d69

Please sign in to comment.