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

Create registry index server mock testing #813

Closed
15 tasks done
michael-valdron opened this issue Mar 31, 2022 · 0 comments · Fixed by devfile/registry-support#130
Closed
15 tasks done

Create registry index server mock testing #813

michael-valdron opened this issue Mar 31, 2022 · 0 comments · Fixed by devfile/registry-support#130
Assignees
Labels
area/registry Devfile registry for stacks and infrastructure

Comments

@michael-valdron
Copy link
Member

michael-valdron commented Mar 31, 2022

Which area this feature is related to?

/area registry

Which functionality do you think we should add?

Why is this needed? Is your feature request related to a problem?

Allows testing of registry index server using a mock environment without the need for full deployment to sandbox environment.

Detailed description:

Currently, testing the registry index server requires one to build and deploy the index server to a sandbox environment to run integration testing. With mock testing, this would save a lot of time when one might be working endpoints and need to perform testing.

Describe the solution you'd like

  • Creation of tests for each endpoint of the index server
    • GET /index
    • GET /index/:type
    • GET /health
    • GET /devfiles/:name
    • GET /devfiles/:name/:version
    • GET /devfiles/:name/starter-projects/:starterProjectName
    • GET /devfiles/:name/:version/starter-projects/:starterProjectName
    • GET /v2index
    • GET /v2index/:type
    • GET /v2/*proxyPath
    • HEAD /v2/*proxyPath
  • Creates mock OCI registry server that index server talks to
  • Creates mock client connection to perform fake requests on the endpoints
  • Uses form of filesystem environment to simulate file IO done by endpoints
  • Update testing documentation to include mock testing
    • Instructions on changing mock testing when changes are made to Registry Index Server or OCI Registry Server

Describe alternatives you've considered

Continue with current testing setup as is.

Target Date: 08-23-2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/registry Devfile registry for stacks and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant