numaproj-labs / numaplane

Apache License 2.0
1 stars 5 forks source link

e2e test - Expect.VerifyResourceState() should be able to verify any yaml keys, not just those which are exactly 2 levels down #221

Open juliev0 opened 2 months ago

juliev0 commented 2 months ago

Summary

Consider incorporating something like yq, which is mentioned as a response in this issue. It's a utility but there may be go code that could be grabbed.

Here's code in Go for that utility: https://github.com/mikefarah/yq/blob/v2.4.0/yq.go

You can either find the code within there that gets called for what you need and either copy it into ours or reference it from the go.mod, or you can potentially call the yq binary directly.

Use Cases

When would you use this?


Message from the maintainers:

If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

juliev0 commented 2 months ago

@dpadhiar if this ends up not being too long, can you consider it among your e2e todos?