You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since both of those files are both "golden" files they can be statically analyzed after the fact with a unit test. This can be parallelized and could be pretty fast.
At e2e runtime check
We could also add a check in the unified_test for this need but we can probably get more value out of the unit test approach.
The text was updated successfully, but these errors were encountered:
Overview
How can we tell that an exported k8s object is correct? For instance:
k8s-config-connector/pkg/test/resourcefixture/testdata/basic/cloudbuild/v1beta1/cloudbuildworkerpool/_generated_export_cloudbuildworkerpool.golden
Lines 1 to 18 in 885f4af
The best bet we have today is to check the
Spec
field against the golden object'sSpec
:k8s-config-connector/pkg/test/resourcefixture/testdata/basic/cloudbuild/v1beta1/cloudbuildworkerpool/_generated_object_cloudbuildworkerpool.golden.yaml
Lines 14 to 27 in 885f4af
Possible solution
Unit test approach
At e2e runtime check
The text was updated successfully, but these errors were encountered: