containers / podman-desktop-extension-ai-lab

Work with LLMs on a local environment using containers
https://podman-desktop.io/extensions/ai-lab
Apache License 2.0
182 stars 40 forks source link

Implement E2E test scenario to cover downloading of a model in catalog #2102

Open odockal opened 6 days ago

odockal commented 6 days ago

Is your enhancement related to a problem? Please describe

In this scenario we want to verify the user e2e path of model download and/or import. This is a smoke e2e test case, where we will test basic path for the model download.

Describe the solution you'd like

  1. AI-Lab is installed, podman machine prepared (win, mac) - do we need machine?
  2. Open Catalog Page
  3. Download a model from catalog (ggerganov/whisper.cpp < 0,5GB) - find it in the table, click on download, wait for model to be downloaded, check it is present
  4. Open Model details
  5. Use the model (playground, service)
  6. Check that model is used -> check aria labels, check that it cannot be deleted
  7. Delete model service/playground
  8. Check that model is not used and can be deleted
  9. Delete the model

Describe alternatives you've considered

Consider testing of importing of a model (or create a follow up issue)

Additional context

No response

cbr7 commented 1 day ago

PR is now in review, however as requested points 5 through 7 from the above use case are not implemented currently due to the wish to split up the task in smaller subtasks.