-
Notifications
You must be signed in to change notification settings - Fork 114
Tweak logging and add some missing tests #1715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4b58d09 to
1dce8cb
Compare
| void GenerateHelmAnnotationLogMessages(Application app, string subPath) | ||
| void LogMissingHelmImageReplacePath(Uri helmSourceIsMissingImagePathAnnotation) | ||
| { | ||
| log.WarnFormat("Argo CD Application '{0}' contains a helm chart ({1}), however the application is missing Octopus-specific annotations required for image-tag updating in Helm.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the warning message more consistent
|
|
||
| [Test] | ||
| public void UpdateImages_HelmWithImageMatches_CommitsChangesToGitAndReturnsUpdatedImages() | ||
| // [Test] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is failing atm, will be fixed by #1711
| AssertOutputVariables(false, matchingApplicationTotalSourceCounts: "2", matchingApplicationMatchingSourceCounts: "0"); | ||
| } | ||
|
|
||
| // [Test] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is failing atm, will be fixed by #1711
| return this; | ||
| } | ||
|
|
||
| public ArgoCDApplicationBuilder WithSource<T>(T source, string sourceType) where T : ApplicationSource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditch the templating?
rain-on
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 nit - otherwise shipit
| { | ||
| applicationSources.Add(source); | ||
| applicationSourceTypes.Add(sourceType); | ||
| if (sourceType != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we enable nullability so that string? would enforce nullability?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now we can :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But that's a bigger change, so we should do that separately
Filling in some missing tests before a big refactor