Conversation
|
Let's move discussion here. Seems the problem you faced in grafana helm issue: grafana/helm-charts#1515 |
|
Can anybody help with the test requirements? Get below error when trying to add test in test/test_KubeLibrary.py. Looks like the test run engineer does not have permission to read CRD's. Traceback (most recent call last): |
|
I think the problem is that in unit tests you are actually trying to connect to real cluster which doesn't exist, you are not using mock which would allow your test to act as cluster is in place |
| ${crd_name} repos.configmanagement.gke.io | ||
|
|
||
| *** Test Cases *** | ||
| Check All The Custom Resource Definitions Exist |
There was a problem hiding this comment.
you are missing
[Tags] other
as a result they are not executed in CI
| self.assertEqual('mytestlabel', cron_job_details.items.metadata.labels.TestLabel) | ||
|
|
||
| def test_read_cluster_custom_definition(self): | ||
| pass |
There was a problem hiding this comment.
add mocks and perform actual check
There was a problem hiding this comment.
Thanks for your reply! Really appreciate it. Will fix it later on.
Add Custom Resource Definition (CRD)
Following the existing Custom Resource Object functions to add support for CRD read and list.
Fixes #108
Before merge following needs to be applied: