Kong / kubernetes-testing-framework

Golang Integration Testing Framework For Kubernetes APIs and Controllers.
https://konghq.com
Apache License 2.0
38 stars 10 forks source link

Object Lifecycle Sequence Testing Utilities #315

Open shaneutt opened 2 years ago

shaneutt commented 2 years ago

Problem Statement

Most of the time when testing the state of an API object the lineage of changes to it's observed (and sometimes declared) state are predictable and reproducible in a testing environment.

The purpose of this task is to add high level functionality that allows the caller to write very simple and generic tests which verify the sequence of lifecycle events for an object.

Acceptance Criteria

jrsmroz commented 2 years ago

Can we ensure we don't miss any state change in an object if it switches states too fast?

shaneutt commented 2 years ago

Can we ensure we don't miss any state change in an object if it switches states too fast?

Yes it should be feasible to capture all state changes along the resource version lineage.