Skip to content

Conversation

@flin-8
Copy link
Contributor

@flin-8 flin-8 commented Jan 13, 2026

Filling in some missing tests before a big refactor

@flin-8 flin-8 self-assigned this Jan 13, 2026
@flin-8 flin-8 changed the title Add some missing tests and add source identity Add some missing tests Jan 13, 2026
@flin-8 flin-8 marked this pull request as ready for review January 13, 2026 11:32
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.",
Copy link
Contributor Author

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]
Copy link
Contributor Author

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]
Copy link
Contributor Author

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

@flin-8 flin-8 changed the title Add some missing tests Tweak logging and add some missing tests Jan 13, 2026
return this;
}

public ArgoCDApplicationBuilder WithSource<T>(T source, string sourceType) where T : ApplicationSource
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditch the templating?

Copy link
Contributor

@rain-on rain-on left a 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)
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now we can :)

Copy link
Contributor Author

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

@flin-8 flin-8 enabled auto-merge (squash) January 15, 2026 01:52
@flin-8 flin-8 merged commit c1b8a8f into main Jan 15, 2026
34 checks passed
@flin-8 flin-8 deleted the frank/sourcetype branch January 15, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants