@@ -95,7 +95,7 @@ public void Init()
9595 {
9696 new ApplicationSource ( )
9797 {
98- RepoUrl = new Uri ( OriginPath ) ,
98+ OriginalRepoUrl = OriginPath ,
9999 Path = "files" ,
100100 TargetRevision = argoCDBranchName . Value ,
101101 Helm = new HelmConfig ( )
@@ -166,7 +166,7 @@ public void HelmSource_NoPath_DontUpdate()
166166 } )
167167 . WithSource ( new ApplicationSource
168168 {
169- RepoUrl = new Uri ( OriginPath ) ,
169+ OriginalRepoUrl = OriginPath ,
170170 TargetRevision = ArgoCDBranchFriendlyName
171171 } ,
172172 SourceTypeConstants . Helm )
@@ -350,7 +350,7 @@ public void SingleSourceWithWrongScoping_DontUpdate()
350350 {
351351 new ApplicationSource ( )
352352 {
353- RepoUrl = new Uri ( OriginPath ) ,
353+ OriginalRepoUrl = OriginPath ,
354354 Path = "files" ,
355355 TargetRevision = argoCDBranchName . Value ,
356356 Name = "wrong-scoping" ,
@@ -428,7 +428,7 @@ public void RefSourceWithWrongScoping_DontUpdate()
428428 {
429429 new ApplicationSource ( )
430430 {
431- RepoUrl = new Uri ( "https://github.com/doesnt/exist.git" ) ,
431+ OriginalRepoUrl = "https://github.com/doesnt/exist.git" ,
432432 Path = "files" ,
433433 Helm = new HelmConfig ( )
434434 {
@@ -441,7 +441,7 @@ public void RefSourceWithWrongScoping_DontUpdate()
441441 } ,
442442 new ApplicationSource ( )
443443 {
444- RepoUrl = new Uri ( OriginPath ) ,
444+ OriginalRepoUrl = OriginPath ,
445445 TargetRevision = argoCDBranchName . Value ,
446446 Ref = "values" ,
447447 }
@@ -517,7 +517,7 @@ public void HelmSourceWithExplicitValuesFile_MissingImagePath_WarnAndDontUpdate(
517517 {
518518 new ApplicationSource ( )
519519 {
520- RepoUrl = new Uri ( OriginPath ) ,
520+ OriginalRepoUrl = OriginPath ,
521521 TargetRevision = argoCDBranchName . Value ,
522522 Path = "files" ,
523523 Helm = new HelmConfig ( )
@@ -603,7 +603,7 @@ public void HelmSourceWithImplicitValuesFile_MissingImagePath_WarnAndDontUpdate(
603603 {
604604 new ApplicationSource ( )
605605 {
606- RepoUrl = new Uri ( OriginPath ) ,
606+ OriginalRepoUrl = OriginPath ,
607607 TargetRevision = argoCDBranchName . Value ,
608608 Path = "files" ,
609609 Name = "helm-source" ,
@@ -682,7 +682,7 @@ public void RefSourceWithMissingImagePath_WarnAndDontUpdate()
682682 {
683683 new ApplicationSource ( )
684684 {
685- RepoUrl = new Uri ( "https://github.com/doesnt/exist.git" ) ,
685+ OriginalRepoUrl = "https://github.com/doesnt/exist.git" ,
686686 Path = "files" ,
687687 Helm = new HelmConfig ( )
688688 {
@@ -694,7 +694,7 @@ public void RefSourceWithMissingImagePath_WarnAndDontUpdate()
694694 } ,
695695 new ApplicationSource ( )
696696 {
697- RepoUrl = new Uri ( OriginPath ) ,
697+ OriginalRepoUrl = OriginPath ,
698698 TargetRevision = argoCDBranchName . Value ,
699699 Ref = "values" ,
700700 Name = "ref-source" ,
@@ -773,7 +773,7 @@ public void RefSourceWithMissingImagePathIfRefSourceNotInScope_DontWarnAndDontUp
773773 {
774774 new ApplicationSource ( )
775775 {
776- RepoUrl = new Uri ( "https://github.com/doesnt/exist.git" ) ,
776+ OriginalRepoUrl = "https://github.com/doesnt/exist.git" ,
777777 Path = "files" ,
778778 Helm = new HelmConfig ( )
779779 {
@@ -785,7 +785,7 @@ public void RefSourceWithMissingImagePathIfRefSourceNotInScope_DontWarnAndDontUp
785785 } ,
786786 new ApplicationSource ( )
787787 {
788- RepoUrl = new Uri ( OriginPath ) ,
788+ OriginalRepoUrl = OriginPath ,
789789 TargetRevision = argoCDBranchName . Value ,
790790 Ref = "values" ,
791791 }
@@ -890,7 +890,7 @@ public void HelmSourceWithHelmConfigurationAndImplicitValuesFile_IncludeValuesFi
890890 } )
891891 . WithSource ( new ApplicationSource
892892 {
893- RepoUrl = new Uri ( OriginPath ) ,
893+ OriginalRepoUrl = OriginPath ,
894894 Path = "" ,
895895 TargetRevision = ArgoCDBranchFriendlyName ,
896896 Helm = new HelmConfig ( )
@@ -980,7 +980,7 @@ public void HelmSourceWithHelmConfigurationAndNoImplicitValuesFile_ExcludeValues
980980 } )
981981 . WithSource ( new ApplicationSource
982982 {
983- RepoUrl = new Uri ( OriginPath ) ,
983+ OriginalRepoUrl = OriginPath ,
984984 Path = "" ,
985985 TargetRevision = ArgoCDBranchFriendlyName ,
986986 Helm = new HelmConfig ( )
@@ -1071,7 +1071,7 @@ public void HelmSourceWithHelmConfigurationIncludesImplicitValuesFile_IncludeVal
10711071 } )
10721072 . WithSource ( new ApplicationSource
10731073 {
1074- RepoUrl = new Uri ( OriginPath ) ,
1074+ OriginalRepoUrl = OriginPath ,
10751075 Path = "" ,
10761076 TargetRevision = ArgoCDBranchFriendlyName ,
10771077 Helm = new HelmConfig ( )
@@ -1164,7 +1164,7 @@ public void HelmSourceWithImplicitValuesFile_Update()
11641164 } )
11651165 . WithSource ( new ApplicationSource
11661166 {
1167- RepoUrl = new Uri ( OriginPath ) ,
1167+ OriginalRepoUrl = OriginPath ,
11681168 Path = "" ,
11691169 TargetRevision = ArgoCDBranchFriendlyName
11701170 } ,
@@ -1243,7 +1243,7 @@ public void RefSourceWithHelmImageMatches_Update()
12431243 } )
12441244 . WithSource ( new ApplicationSource
12451245 {
1246- RepoUrl = new Uri ( "https://github.com/org/repo" ) ,
1246+ OriginalRepoUrl = "https://github.com/org/repo" ,
12471247 Path = "" ,
12481248 TargetRevision = ArgoCDBranchFriendlyName ,
12491249 Helm = new HelmConfig
@@ -1261,7 +1261,7 @@ public void RefSourceWithHelmImageMatches_Update()
12611261 Name = "ref-source" ,
12621262 Ref = "values" ,
12631263 TargetRevision = ArgoCDBranchFriendlyName ,
1264- RepoUrl = new Uri ( OriginPath ) ,
1264+ OriginalRepoUrl = OriginPath ,
12651265 } ,
12661266 SourceTypeConstants . Directory )
12671267 . Build ( ) ;
@@ -1364,7 +1364,7 @@ public void RefSourceWithHelmImageMatchesAndPath_IgnoresFilesUnderPath()
13641364 } )
13651365 . WithSource ( new ApplicationSource
13661366 {
1367- RepoUrl = new Uri ( "https://github.com/org/repo" ) ,
1367+ OriginalRepoUrl = "https://github.com/org/repo" ,
13681368 Path = "" ,
13691369 TargetRevision = ArgoCDBranchFriendlyName ,
13701370 Helm = new HelmConfig
@@ -1383,7 +1383,7 @@ public void RefSourceWithHelmImageMatchesAndPath_IgnoresFilesUnderPath()
13831383 Ref = "values" ,
13841384 Path = "include/" ,
13851385 TargetRevision = ArgoCDBranchFriendlyName ,
1386- RepoUrl = new Uri ( OriginPath ) ,
1386+ OriginalRepoUrl = OriginPath ,
13871387 } ,
13881388 SourceTypeConstants . Directory )
13891389 . Build ( ) ;
@@ -1427,7 +1427,7 @@ void AssertOutputVariables(bool updated = true, string matchingApplicationTotalS
14271427 using var _ = new AssertionScope ( ) ;
14281428 var serviceMessages = log . Messages . GetServiceMessagesOfType ( "setVariable" ) ;
14291429 serviceMessages . GetPropertyValue ( "ArgoCD.GatewayIds" ) . Should ( ) . Be ( GatewayId ) ;
1430- serviceMessages . GetPropertyValue ( "ArgoCD.GitUris" ) . Should ( ) . Be ( updated ? new Uri ( OriginPath ) . AbsoluteUri : string . Empty ) ;
1430+ serviceMessages . GetPropertyValue ( "ArgoCD.GitUris" ) . Should ( ) . Be ( updated ? OriginPath : string . Empty ) ;
14311431 serviceMessages . GetPropertyValue ( "ArgoCD.UpdatedImages" ) . Should ( ) . Be ( updated ? updatedImages . ToString ( ) : "0" ) ;
14321432 serviceMessages . GetPropertyValue ( "ArgoCD.MatchingApplications" ) . Should ( ) . Be ( "App1" ) ;
14331433 serviceMessages . GetPropertyValue ( "ArgoCD.MatchingApplicationTotalSourceCounts" ) . Should ( ) . Be ( matchingApplicationTotalSourceCounts ) ;
0 commit comments