Skip to content

feature: Add E2E tests #1

@xmudrii

Description

@xmudrii

Feature Description

We should have E2E tests for this external virtual workspace. E2E tests should cover the following cases:

  • Creating FilteredAPIExportEndpointSlice and checking its status
  • Ensuring it is possible to access the Virtual Workspace
  • Basic operations with objects (create/update/edit/delete)
  • Some forbidden operations (e.g. trying to create an object with the wrong label)

Proposed Solution

The test should start a kcp instance to be used for testing using a public release. We have such setup in the api-syncagent (e.g. https://github.com/kcp-dev/api-syncagent/blob/b0179347c7f275714ee9bbc49f46309ebb93dd6a/.prow.yaml#L91-L146).

We have similar tests for the APIExport Virtual Workspace in the core kcp. I believe those tests can be reused to the large extent with some modifications (mainly to handle creation of FilteredAPIExportEndpointSlices). Some examples can be found in https://github.com/kcp-dev/kcp/tree/main/test/e2e/virtual/apiexport

At this time, the test can use a single shard setup.

Alternative Solutions

No response

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions