@@ -48,6 +48,7 @@ import (
48
48
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
49
49
50
50
"github.com/fluxcd/pkg/apis/meta"
51
+ "github.com/fluxcd/pkg/git"
51
52
"github.com/fluxcd/pkg/gittestserver"
52
53
"github.com/fluxcd/pkg/runtime/conditions"
53
54
conditionscheck "github.com/fluxcd/pkg/runtime/conditions/check"
@@ -56,7 +57,6 @@ import (
56
57
"github.com/fluxcd/pkg/ssh"
57
58
"github.com/fluxcd/pkg/testserver"
58
59
59
- "github.com/fluxcd/pkg/git"
60
60
sourcev1 "github.com/fluxcd/source-controller/api/v1"
61
61
serror "github.com/fluxcd/source-controller/internal/error"
62
62
"github.com/fluxcd/source-controller/internal/features"
@@ -970,7 +970,7 @@ func TestGitRepositoryReconciler_reconcileArtifact(t *testing.T) {
970
970
},
971
971
afterFunc : func (t * WithT , obj * sourcev1.GitRepository ) {
972
972
t .Expect (obj .GetArtifact ()).ToNot (BeNil ())
973
- t .Expect (obj .GetArtifact ().Digest ).To (Equal ("sha256:60a3bf69f337cb5ec9ebd00abefbb6e7f2a2cf27158ecf438d52b2035b184172 " ))
973
+ t .Expect (obj .GetArtifact ().Digest ).To (Equal ("sha256:34d9af1a2fcfaef3ee9487d67dc2d642bc7babdb9444a5f60d1f32df32e4de7d " ))
974
974
t .Expect (obj .Status .IncludedArtifacts ).ToNot (BeEmpty ())
975
975
},
976
976
want : sreconcile .ResultSuccess ,
@@ -1005,7 +1005,7 @@ func TestGitRepositoryReconciler_reconcileArtifact(t *testing.T) {
1005
1005
},
1006
1006
afterFunc : func (t * WithT , obj * sourcev1.GitRepository ) {
1007
1007
t .Expect (obj .GetArtifact ()).ToNot (BeNil ())
1008
- t .Expect (obj .GetArtifact ().Digest ).To (Equal ("sha256:11f7f007dce5619bd79e6c57688261058d09f5271e802463ac39f2b9ead7cabd " ))
1008
+ t .Expect (obj .GetArtifact ().Digest ).To (Equal ("sha256:a17037f96f541a47bdadcd12ab40b943c50a9ffd25dc8a30a5e9af52971fd94f " ))
1009
1009
},
1010
1010
want : sreconcile .ResultSuccess ,
1011
1011
assertConditions : []metav1.Condition {
@@ -1020,7 +1020,7 @@ func TestGitRepositoryReconciler_reconcileArtifact(t *testing.T) {
1020
1020
},
1021
1021
afterFunc : func (t * WithT , obj * sourcev1.GitRepository ) {
1022
1022
t .Expect (obj .GetArtifact ()).ToNot (BeNil ())
1023
- t .Expect (obj .GetArtifact ().Digest ).To (Equal ("sha256:29186e024dde5a414cfc990829c6b2e85f6b3bd2d950f50ca9f418f5d2261d79 " ))
1023
+ t .Expect (obj .GetArtifact ().Digest ).To (Equal ("sha256:ad9943d761b30e943e2a770ea9083a40fc03f09846efd61f6c442cc48fefad11 " ))
1024
1024
},
1025
1025
want : sreconcile .ResultSuccess ,
1026
1026
assertConditions : []metav1.Condition {
@@ -1036,7 +1036,7 @@ func TestGitRepositoryReconciler_reconcileArtifact(t *testing.T) {
1036
1036
},
1037
1037
afterFunc : func (t * WithT , obj * sourcev1.GitRepository ) {
1038
1038
t .Expect (obj .GetArtifact ()).ToNot (BeNil ())
1039
- t .Expect (obj .GetArtifact ().Digest ).To (Equal ("sha256:60a3bf69f337cb5ec9ebd00abefbb6e7f2a2cf27158ecf438d52b2035b184172 " ))
1039
+ t .Expect (obj .GetArtifact ().Digest ).To (Equal ("sha256:34d9af1a2fcfaef3ee9487d67dc2d642bc7babdb9444a5f60d1f32df32e4de7d " ))
1040
1040
},
1041
1041
want : sreconcile .ResultSuccess ,
1042
1042
assertConditions : []metav1.Condition {
@@ -1075,7 +1075,7 @@ func TestGitRepositoryReconciler_reconcileArtifact(t *testing.T) {
1075
1075
t .Run (tt .name , func (t * testing.T ) {
1076
1076
g := NewWithT (t )
1077
1077
1078
- resetChmod (tt .dir , 0o755 , 0o644 )
1078
+ resetChmod (tt .dir , 0o750 , 0o600 )
1079
1079
1080
1080
r := & GitRepositoryReconciler {
1081
1081
EventRecorder : record .NewFakeRecorder (32 ),
0 commit comments