fluxcd / image-automation-controller

GitOps Toolkit controller that patches container image tags in Git
https://fluxcd.io
Apache License 2.0
155 stars 67 forks source link

Add tests for `getExtFromSchema` #658

Closed zhaque44 closed 3 months ago

zhaque44 commented 3 months ago

Tests Scenario: Extension Present

This scenario tests that the schema contains a valid extension with a setter, then verifies that the function correctly extracts the extension from the schema and returns it without an error.

Tests Scenario: Extension Not Present

This scenario tests the function when the schema does not contain any extension & verifies that the function returns nil without an error when no extension is found in the schema.

zhaque44 commented 3 months ago

@stefanprodan good morning, hope you are well can you please take a look?