-
Notifications
You must be signed in to change notification settings - Fork 42
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
Apply more advanced matching criteria in if-diff
#706
Closed
5 of 6 tasks
Milestone
Comments
if-diff
@jmcook1186 please sense-check the SoW and AC 🙏 |
if-diff
if-diff
if-diff
if-diff
This was
linked to
pull requests
May 17, 2024
This was
unlinked from
pull requests
May 17, 2024
|
Merged
9 tasks
PR that needs to be reviewed / merged is Green-Software-Foundation/if-docs#74 - @narekhovhannisyan pls take a look again 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why: In relation to #637
What:
Update the matching criteria to ignore certain differences between the files, for example ignoring fields in
execution
section of manifest exceptstatus
anderror
. Ensureif-diff
conforms to the matching rules defined in this ticket.Scope of work:
if-diff
core feature #637Matching criteria
report these differences:
source
ortarget
has more nodes)context
are non-identicalignore differences in:
tree
context
execution
block EXCEPTstatus
andexception
Acceptance Criteria:
if-diff
implements the above matching criteriaGIVEN the matching criteria are implemented
WHEN the following command is run:
if-diff --source manifest1.yml --target manifest2.yml
THEN IF should generate the following mapping of pairs of manifests to outputs:
Scenario 1: trees have different N nodes:
manifest-1.yml
:manifest2.yml
:output:
Scenario 2: tree components have different names:
manifest-1.yml
:manifest2.yml
:output:
Scenario 3: fields/values in initialize data do not match (diff vals passed for global config):
manifest-1.yml
:manifest2.yml
:output:
Scenario 4: values in execution block
error
field are different:manifest-1.yml
:manifest2.yml
:output:
**Scenario 5: execution info other than
status
anderror
are different **manifest-1.yml
:manifest2.yml
:output:
Files match!
Scenario 6: nodes are in different order (position of
server
anddatabase
reversed) :manifest-1.yml
:manifest2.yml
:output:
Files match!
The text was updated successfully, but these errors were encountered: