Merge pull request #980 from fluxcd/gitrepo-test-cleanup
GitRepo: git impl. deprecation test cleanup
This commit is contained in:
commit
885c9f2cba
|
@ -470,13 +470,8 @@ func TestGitRepositoryReconciler_reconcileSource_authStrategy(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
t.Run(sourcev1.GoGitImplementation, func(t *testing.T) {
|
||||
g := NewWithT(t)
|
||||
|
||||
tmpDir := t.TempDir()
|
||||
|
||||
obj := obj.DeepCopy()
|
||||
|
||||
head, _ := localRepo.Head()
|
||||
assertConditions := tt.assertConditions
|
||||
for k := range assertConditions {
|
||||
|
@ -493,7 +488,6 @@ func TestGitRepositoryReconciler_reconcileSource_authStrategy(t *testing.T) {
|
|||
g.Expect(got).To(Equal(tt.want))
|
||||
g.Expect(commit).ToNot(BeNil())
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -664,11 +658,7 @@ func TestGitRepositoryReconciler_reconcileSource_checkoutStrategy(t *testing.T)
|
|||
obj.Spec.Reference.Commit = headRef.Hash().String()
|
||||
}
|
||||
|
||||
t.Run(sourcev1.GoGitImplementation, func(t *testing.T) {
|
||||
g := NewWithT(t)
|
||||
|
||||
tmpDir := t.TempDir()
|
||||
obj := obj.DeepCopy()
|
||||
|
||||
if tt.beforeFunc != nil {
|
||||
tt.beforeFunc(obj, headRef.Hash().String())
|
||||
|
@ -688,7 +678,6 @@ func TestGitRepositoryReconciler_reconcileSource_checkoutStrategy(t *testing.T)
|
|||
g.Expect(conditions.IsTrue(obj, sourcev1.ArtifactOutdatedCondition)).To(Equal(tt.wantArtifactOutdated))
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue