@@ -1665,7 +1665,7 @@ func (t *PorchSuite) TestPackageUpgrade() {
16651665 )
16661666
16671667 t .RegisterGitRepositoryF (t .GetTestBlueprintsRepoURL (), TestBlueprintsRepoName , "" , GiteaUser , GiteaPassword )
1668-
1668+
16691669 // Register the repository as 'downstream'
16701670 t .RegisterGitRepositoryF (t .GetPorchTestRepoURL (), gitRepository , "" , GiteaUser , GiteaPassword )
16711671
@@ -1811,11 +1811,10 @@ func (t *PorchSuite) TestRegisterRepository() {
18111811 const (
18121812 repository = "register"
18131813 )
1814- t .RegisterGitRepositoryF (t .GetPorchTestRepoURL (), repository , "" , GiteaUser ,
1815- GiteaPassword , RepositoryOptions {RepOpts : withType (configapi .RepositoryTypeGit )},
1814+ t .RegisterGitRepositoryF (t .GetPorchTestRepoURL (), repository , "" , GiteaUser ,
1815+ GiteaPassword , RepositoryOptions {RepOpts : withType (configapi .RepositoryTypeGit )},
18161816 RepositoryOptions {RepOpts : WithDeployment ()})
18171817
1818-
18191818 var repo configapi.Repository
18201819 t .GetF (client.ObjectKey {
18211820 Namespace : t .Namespace ,
@@ -2309,7 +2308,7 @@ func (t *PorchSuite) TestLargePackageRevision() {
23092308 const testDataSize = 5 * 1024 * 1024
23102309
23112310 setAnnotationsImage := t .GcrPrefix + "/set-annotations:v0.1.5" // set-annotations:v0.1.5 is an older version that porch maps neither to built-in nor exec.
2312-
2311+
23132312 t .RegisterGitRepositoryF (t .GetPorchTestRepoURL (), "git-fn-pod-large" , "" , GiteaUser , GiteaPassword )
23142313
23152314 // Create Package Revision
@@ -2780,7 +2779,7 @@ func (t *PorchSuite) TestPackageRevisionGCWithOwner() {
27802779}
27812780
27822781func (t * PorchSuite ) TestPackageRevisionGCAsOwner () {
2783- // TODO: Garbage collection is not working when a DB cache PackageRevision resource owner is deleted.
2782+ // TODO: Garbage collection is not working when a DB cache PackageRevision resource owner is deleted.
27842783 // We need to get this test running in DB cache
27852784 if _ , ok := os .LookupEnv ("DB_CACHE" ); ok {
27862785 return
@@ -2957,7 +2956,7 @@ func (t *PorchSuite) TestPackageRevisionFinalizers() {
29572956func (t * PorchSuite ) TestPackageRevisionInMultipleNamespaces () {
29582957
29592958 registerRepoAndTestRevisions := func (repoName string , ns string , oldPRs []porchapi.PackageRevision ) []porchapi.PackageRevision {
2960- t .RegisterGitRepositoryF (t .GetTestBlueprintsRepoURL (), repoName , "" , GiteaUser , GiteaPassword ,
2959+ t .RegisterGitRepositoryF (t .GetTestBlueprintsRepoURL (), repoName , "" , GiteaUser , GiteaPassword ,
29612960 RepositoryOptions {RepOpts : InNamespace (ns ), SecOpts : SecretInNamespace (ns )})
29622961 prList := porchapi.PackageRevisionList {}
29632962 t .ListF (& prList , client .InNamespace (ns ))
@@ -3269,6 +3268,11 @@ func (t *PorchSuite) TestRepositoryModify() {
32693268 continue
32703269 }
32713270
3271+ if ready .Status == metav1 .ConditionFalse && ready .Reason == configapi .ReasonReconciling {
3272+ t .Logf ("Repository sync in progress" )
3273+ continue
3274+ }
3275+
32723276 if got , want := ready .Status , metav1 .ConditionTrue ; got != want {
32733277 t .Errorf ("Repository Ready Condition Status; got %q, want %q" , got , want )
32743278 }
@@ -3497,7 +3501,7 @@ func (t *PorchSuite) TestPackageRevisionListWithTwoHangingRepositories() {
34973501 Description : "Working Git repository" ,
34983502 Type : configapi .RepositoryTypeGit ,
34993503 Git : & configapi.GitRepository {
3500- Repo : t .GetPorchTestRepoURL (),
3504+ Repo : t .GetPorchTestRepoURL (),
35013505 SecretRef : configapi.SecretRef {
35023506 Name : t .CreateOrUpdateSecret (workingRepoName , GiteaUser , GiteaPassword ),
35033507 },
0 commit comments