Skip to content
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

Added code to filter metadata response before xml comparison #18482

Closed
wants to merge 1 commit into from

Conversation

AltamashShaikh
Copy link
Contributor

@AltamashShaikh AltamashShaikh commented Dec 10, 2021

Description:

Added code to filter metadata response before XML comparison.

The previous code changes added to filter metadata response was breaking other API tests like API.get which internally tries to call API.getSegmentsMetadata. The result of API.getSegmentsMetadata gets filtered out for API.get and system testcases starts to fail.

To solve the issue, will be filtering the XML response just before we compare the processed and expected output.

Review

@AltamashShaikh AltamashShaikh added the Needs Review PRs that need a code review label Dec 10, 2021
@AltamashShaikh AltamashShaikh self-assigned this Dec 10, 2021
@AltamashShaikh AltamashShaikh marked this pull request as draft December 15, 2021 04:01
@AltamashShaikh
Copy link
Contributor Author

@tsteur I have 1 better way which can work by tweaking the existing logic
I can show it to you tomorrow and we can decide which 1 should we choose

@tsteur
Copy link
Member

tsteur commented Dec 15, 2021

OK. Generally 1 way is enough though since it's quite small logic and not too complex it be probably fine as it is and don't need to optimise further. Unless there's some other benefit?

@AltamashShaikh AltamashShaikh removed the Needs Review PRs that need a code review label Dec 16, 2021
@AltamashShaikh
Copy link
Contributor Author

Created #18510
As it is a much simpler approach closing this.

@sgiehl sgiehl deleted the metadata-filter-before-comparison branch April 5, 2023 16:33
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.

None yet

2 participants