Skip to content

tests: Normalize json before comparing it.#636

Merged
jnovy merged 1 commit intocontainers:mainfrom
jankaluza:json
Feb 19, 2026
Merged

tests: Normalize json before comparing it.#636
jnovy merged 1 commit intocontainers:mainfrom
jankaluza:json

Conversation

@jankaluza
Copy link
Copy Markdown
Member

The conmon-v3 produces slightly different json. It is still valid, but it cannot be matched with the very same strings as the one produced by the conmon-v2.

This commit normalizes the JSON using jq before comparing it and as a result, these conmon-v2 tests also pass against conmon-v3.

The conmon-v3 produces slightly different json. It is still valid, but
it cannot be matched with the very same strings as the one produced by
the conmon-v2.

This commit normalizes the JSON using `jq` before comparing it and as
a result, these conmon-v2 tests also pass against conmon-v3.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
@jankaluza
Copy link
Copy Markdown
Member Author

@jnovy , comments should be addressed now.

@jnovy jnovy merged commit 03a41b6 into containers:main Feb 19, 2026
34 of 37 checks passed
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.

2 participants