Skip to content

Generate the tests #4

Description

@edenreich

Summary

Currently the generated tests are working for the operator, but hardcoded, it would be beneficial to generate them for each type or endpoint in the OpenAPI Spec.
Those end to end testing are:

  1. Creating a local kubernetes cluster using k3d
  2. Deploying and running the operator
  3. Deploying a kind CRD with some specification
  4. Asserting that something changed in the object (.status added, an API call for creating a resource externally was sent for new resources, an update was sent to external API for existing resources, drift detected etc..)

AC's

  • The jinja templates have the general structure of an end to end test.
  • The tests for asserting a finaliser addition and removal finaliser after deletion are implemented and generated.
  • The tests are being generated for each endpoint in the OpenAPI Spec.
  • There are integration tests for each function - mocking the API

Metadata

Metadata

Assignees

Labels

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions