fluxcd / image-automation-controller

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

adding tests for update accept function #636

Closed zhaque44 closed 8 months ago

zhaque44 commented 8 months ago

Tests for Accept - Scalar Node:

Description: Tests the accept function when provided with a scalar node and valid setter schema. The function should not return an error (assert.NoError). The expected error value should be false (assert.Equal).

Tests for Accept - Scalar Node - Error:

Description: Tests the accept function when provided with a scalar node, with invalid setter schema. The function should not return an error (assert.NoError). The expected error value should be true (assert.Equal).

zhaque44 commented 8 months ago

@stefanprodan I opened a new PR, disregard the last one