Skip to content

Upgrade tests silently ignore failed provider upgrades #102

@schlingemann

Description

@schlingemann

The ApplyProvider function called by UpgradeProvider in the upgrade package calls InstallCrossplaneProvider, which will simply wait for a provider with the name of the provider to be upgraded to become healthy. The issue is that, during the upgrade tests, the provider name will not change, only the version will.

For this reason, if the new provider version cannot be pulled (ErrImageNeverPull), the upgrade testing framework will silently ignore this issue because there's still a provider with the expected name that is healthy. The upgrade tests will still run fine, except that they're no longer testing a provider upgrade.

This still happens when using a mustPullImage function like in the example, for example when testing a provider with double image builds if the upgrade options are misconfigured.

Possible solutions:

  • Modifying the provider name
  • Checking for a field on the provider to match the expected version

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions