Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backfill Tests for Steve #45247

Open
MbolotSuse opened this issue Apr 25, 2024 · 0 comments
Open

Backfill Tests for Steve #45247

MbolotSuse opened this issue Apr 25, 2024 · 0 comments
Labels
priority/0 QA/None Indicates that the task or issue does not need QA. team/frameworks the team that is responsible for frameworks, projects, webhook, and other various areas
Milestone

Comments

@MbolotSuse
Copy link
Contributor

Steve currently has limited tests. This creates a need for highly manual review of things like dependency bumps, and low confidence in the regression potential for changes. These tests should focus on how Steve would be used as a library and avoid mocking as much as is possible. Some potential examples:

  • Adapting the test cases hosted in rancher to be ran directly in Steve's repo.
  • Creating integration tests for the schemaDefinitions endpoint (which gives field definitions of each schema), including:
    • Add a CRD, make sure the definitions show up
    • Remove a CRD, make sure the definitions are no longer present
    • Try to access a schema that you can't see, make sure that neither the schema nor the definitions is present
    • Make sure a schema which uses openapi v3 specific fields has all fields correctly specified (example, provisioning.cattle.io.clusters)
    • Make sure a base schema which doesn't represent a k8s resource (e.x. generateKubeconfigOutput) has the fields properly specified
    • Make sure a resource that has multiple versions has the definition for the preferred group
  • Tests for a custom action on a resource
  • Tests for watch events on a resource
  • Tests for creating/updating/deleting a resource
  • Tests for watching a count
@MbolotSuse MbolotSuse added priority/0 QA/None Indicates that the task or issue does not need QA. team/frameworks the team that is responsible for frameworks, projects, webhook, and other various areas labels Apr 25, 2024
@MbolotSuse MbolotSuse added this to the v2.9-Next2 milestone Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/0 QA/None Indicates that the task or issue does not need QA. team/frameworks the team that is responsible for frameworks, projects, webhook, and other various areas
Projects
None yet
Development

No branches or pull requests

1 participant