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
E2e tests are the most common way to test the reconciliation logic of an operator.
e.g: etcd-operator e2e, prometheus-operator e2e.
Currently users have to write their own e2e frameworks from scratch to test their SDK based operators.
The SDK can provide a test-framework library that would abstract out the common functionality needed by all e2e tests e.g setup/teardown (namespace, rbac, operator deployment) along with any other necessary testing utilities.
The SDK could also provide a standard way to run a users e2e tests e.g operator-sdk test <path-to-e2e-tests> --kubeconfig=<kubeconfig>
Since the goal is to make it easier to write and run e2e tests for SDK based operators we'll need to determine how much value would such a test-framework actually provide.
This can be determined by considering:
how much duplication and work can the test-framework abstractions actually reduce vs providing thin wrappers around existing utilities
how simple is the workflow of using the test-framework vs writing your own framework from scratch and running go test ...
#377 provides a starting point for what such a framework could look like. We'll use that to iterate on the workflow and abstractions of the test-framework library.
The text was updated successfully, but these errors were encountered:
E2e tests are the most common way to test the reconciliation logic of an operator.
e.g: etcd-operator e2e, prometheus-operator e2e.
Currently users have to write their own e2e frameworks from scratch to test their SDK based operators.
The SDK can provide a test-framework library that would abstract out the common functionality needed by all e2e tests e.g setup/teardown (namespace, rbac, operator deployment) along with any other necessary testing utilities.
The SDK could also provide a standard way to run a users e2e tests e.g
operator-sdk test <path-to-e2e-tests> --kubeconfig=<kubeconfig>
Since the goal is to make it easier to write and run e2e tests for SDK based operators we'll need to determine how much value would such a test-framework actually provide.
This can be determined by considering:
go test ...
#377 provides a starting point for what such a framework could look like. We'll use that to iterate on the workflow and abstractions of the test-framework library.
The text was updated successfully, but these errors were encountered: