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
Projects

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

@michael-valdron michael-valdron self-assigned this Mar 31, 2022
@michael-valdron michael-valdron added this to Under consideration in Sprint 216 via automation Mar 31, 2022
@openshift-ci openshift-ci bot added the area/registry Devfile registry for stacks and infrastructure label Mar 31, 2022
@johnmcollier johnmcollier removed this from Under consideration in Sprint 216 Apr 12, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 217 via automation Apr 12, 2022
@michael-valdron michael-valdron moved this from Under consideration to To do in Sprint 217 Apr 25, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 217 Apr 28, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 218 via automation Apr 28, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 218 Apr 28, 2022
@michael-valdron michael-valdron moved this from To do to In progress in Sprint 218 Apr 29, 2022
@michael-valdron michael-valdron moved this from In progress to To do in Sprint 218 May 17, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 218 May 19, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 219 via automation May 19, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 219 May 19, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 219 Jun 9, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 220 via automation Jun 9, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 220 Jun 9, 2022
@johnmcollier johnmcollier removed this from To do in Sprint 220 Jun 30, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 221 via automation Jun 30, 2022
@johnmcollier johnmcollier moved this from Under consideration to To do in Sprint 221 Jun 30, 2022
@michael-valdron michael-valdron moved this from To do to In progress in Sprint 221 Jul 11, 2022
@johnmcollier johnmcollier removed this from In progress in Sprint 221 Jul 21, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 222 via automation Jul 21, 2022
@johnmcollier johnmcollier moved this from Under consideration to In progress in Sprint 222 Jul 21, 2022
@johnmcollier johnmcollier removed this from In progress in Sprint 222 Aug 16, 2022
@johnmcollier johnmcollier added this to Under consideration in Sprint 223 via automation Aug 16, 2022
@johnmcollier johnmcollier moved this from Under consideration to In progress in Sprint 223 Aug 16, 2022
@michael-valdron michael-valdron moved this from In progress to Review in progress in Sprint 223 Aug 16, 2022
Sprint 223 automation moved this from Review in progress to Done Aug 19, 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
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant