kubewarden / policy-sdk-go

Kubewarden Policy SDK for the Go programming language
https://kubewarden.io
Apache License 2.0
8 stars 7 forks source link

Add unit tests for the context aware functions #50

Closed jvanz closed 1 year ago

jvanz commented 1 year ago

To ensure that all the function in the Go lang SDK works exactly the same way as the Rust SDK ones we need to add tests to cover all the functions. Recently, we have a good addition of test in the PR #46 . However, we need to add for the functions used to fetch information of the cluster. Namely, the functions GetResrouce, ListResourcesByNamespace and ListResources. They can be found here.

jvanz commented 1 year ago

@KhaledEmaraDev, when you finish your current test. Please, take a look in this one.