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

(rough sketch dumps) Follow ups from catalogd-integration #187

Closed
anik120 opened this issue Apr 28, 2023 · 6 comments
Closed

(rough sketch dumps) Follow ups from catalogd-integration #187

anik120 opened this issue Apr 28, 2023 · 6 comments

Comments

@anik120
Copy link
Contributor

anik120 commented Apr 28, 2023

  • Set up e2e infrastructure for catalogd and operator controller:
  • Devise action plan for what's best tested where, in what format (e2e vs unit).
  • For any test that requires access to images hosted in an image registry, set up test suite to configure a local registry and use that registry for tests instead of reaching out to remote registry.
  • For operator installation test, build a catalog with minimal set of operator/s, and use that instead of quay.io/operatorhubio/catalog:latest
  • Review operator-controller e2e test suite:
  • Structure tests to take advantage of ginkgo's DAG test path creation feature instead of laying all tests in a singe "It" block.
  • (optionally)Eventually blocks can return error instead of taking in Gomega object in it's function signature.
  • Clean up "properties' values must be json objects" expectations in variable source implementation, more details here

  • Move catalogd resources get/watch verbs for operator-controller closer to where they're needed (entitysource implementation). More details here

@anik120 anik120 changed the title (rough sketch dumps) Follow up from #182 (rough sketch dumps) Follow up from catalogd-integartion Apr 28, 2023
@anik120 anik120 changed the title (rough sketch dumps) Follow up from catalogd-integartion (rough sketch dumps) Follow up from catalogd-integration Apr 28, 2023
@anik120 anik120 changed the title (rough sketch dumps) Follow up from catalogd-integration (rough sketch dumps) Follow ups from catalogd-integration Apr 28, 2023
@joelanford
Copy link
Member

For any test that requires access to images hosted in an image registry, set up test suite to configure a local registry and use that registry for tests instead of reaching out to remote registry.

For the vast majority of these tests, I would much prefer to see this be "build image, kind load image, use imagePullPolicy IfNotPresent". This means there's no need for an actual image registry.

@joelanford
Copy link
Member

joelanford commented Apr 28, 2023

Eventually blocks can return error instead of taking in Gomega object in it's function signature.

AFAIK, they can return anything. And then you can assert on whatever is returned.

@anik120
Copy link
Contributor Author

anik120 commented Apr 28, 2023

For any test that requires access to images hosted in an image registry, set up test suite to configure a local registry and use that registry for tests instead of reaching out to remote registry.

For the vast majority of these tests, I would much prefer to see this be "build image, kind load image, use imagePullPolicy IfNotPresent". This means there's no need for an actual image registry.

That works too. But that also means we'll have to figure out how we can give access to the test clusters' context to the test suite, etc

@joelanford
Copy link
Member

That works too. But that also means we'll have to figure out how we can give access to the test clusters' context to the test suite, etc

We've got this setup working in the rukpak repo. It takes some effort, but once its setup it works really well.

@joelanford
Copy link
Member

@varshaprasad96
Copy link
Member

Another potential follow-on: https://github.com/operator-framework/operator-controller/pull/182/files#r1178493885

We probably may have to refactor this in a different way if this gets in (if that's what we want to eventually do). cc: @perdasilva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants