Skip to content

Enhance e2e Tests: Validate Conversion with Mock Scenario #4297

Open
@camilamacedo86

Description

@camilamacedo86

What broke? What's expected?

Description:

Enhance the existing e2e tests by ensuring that a valid mock scenario is created and verifying that the conversion webhook functions as expected. Currently, there is a TODO note to add checks and validate the conversion’s success in our e2e tests, but this validation has not yet been implemented.

Reference:

The relevant section can be found here: plugin_cluster_test.go#L390-L392.

Enhancements Needed:

  1. Validate Mock Data: Ensure that the mock data used in the test is valid and sufficient to simulate a realistic conversion scenario.

  2. Conversion Check: Implement a check to validate that the conversion occurred as expected according to the webhook’s intended functionality.

  3. Adjust Mock Data if Necessary: Modify the mock data setup if needed to ensure it aligns with the requirements for validating the conversion webhook accurately.

You can check the changes in PR #4296 to understand the current setup, expected outcomes, and to help move forward with this task.

Reproducing this issue

No response

KubeBuilder (CLI) Version

master

PROJECT version

No response

Plugin versions

No response

Other versions

No response

Extra Labels

No response

Metadata

Metadata

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.testing

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions