Commit Graph

10 Commits

Author SHA1 Message Date
Karl Isenberg 3d81e21acf e2e test cleanup
- Unstructured() added to ResourceReference to aid test operations
- Test artifacts moved into artifacts_test.go
- deploymentManifest and apiserviceManifest replaced with
  yaml->unstructured, for consistency with other test artifacts
- Added withReplicas, withNamespace, and withDependsOn for easier inline
  mutation of test artifacts
- Added deleteUnstructuredAndWait, assertUnstructuredExists, and
  assertUnstructuredDoesNotExist to validate actual cluster state,
  not just events. Also reduced flakiness by waiting for delete.
- Removed error check before event validation. The event diff
  provides much more context for debugging.
- Replaced typed resources with unstructured and used
  testutil.NestedField to extract values.
- Updated prune error test to use full event list comparison and
  validate server state.
- Add 2nd resource to continue on error test
- Don't fail early on error from event list
- Fix flakey prune error test
  Add wait for pod2 after creation
  Add wait for pod2 after deletion
  Re-use inventory to ensure prune of pod2 not skipped
- Add optional klog support for e2e tests
2021-09-24 17:54:17 -07:00
Karl Isenberg a468a88337 Unmarshal with k8s.io/apimachinery/pkg/util/yaml
- apimachinery yaml.Unmarshal fixes number types to int64 and float64
- Fix inaccurate error message in mutator
- Move YamlStringer to object pkg for reuse by other pkgs
- Fix jsonpath tests parsing y as a bool
- Fix kstatus example_test.go to actually be a test
2021-09-22 16:33:06 -07:00
Kubernetes Prow Robot c2335dc30a
Merge pull request #339 from mortent/BetterEvents
Improve the event hierarchy
2021-05-19 11:14:51 -07:00
Morten Torkildsen ae80e561e2 Improve the event hierarchy 2021-05-18 14:58:41 -07:00
Mikhail Mazurskiy 36cb2cea5e
Use rand from apimachinery to avoid seeding rng every time 2021-05-12 12:13:02 +10:00
Morten Torkildsen 7be21cf94e Add validation of inventory-id for name strategy if inventory object already exists 2021-04-04 15:52:33 -07:00
Jingfang Liu ec07a4fc60 Handle APIService speically when ServerSide apply is enabled 2021-02-16 14:34:26 -08:00
Morten Torkildsen 3012f36dce Run e2e tests using a custom type for inventory 2021-01-02 13:26:49 -08:00
Morten Torkildsen 304deb6852 Add e2e-tests for applying crd and cr at the same time 2020-12-30 15:10:31 -08:00
Morten Torkildsen a8205d0cf1 Add more e2e tests for inventory policy 2020-12-28 12:56:48 -08:00