Skip to content

Conversation

@aemarkov
Copy link
Contributor

@aemarkov aemarkov commented Nov 25, 2025

Create an example how to implement E2E test (DataImport in this example) using Ginkgo.

How to run

  1. Put script to the testkit_v2/run.sh
export licensekey="<...>"
export hv_ssh_dst="<...>"
export namespace="<...>"

ginkgo \
  -v \
  -timeout 30m \
  "$@" \
  -- \
  -testkitdir "$PWD" \
  -sshhost "$hv_ssh_dst" \
  -hypervisorkconfig kube-hypervisor.config \
  -skipoptional \
  -keepstate \
  -hvstorageclass "linstor-r1"  \
  -clustertype "Ubuntu 22 mini" \
  -namespace "$namespace" \
  1. Run
 ./run.sh ./tests/data-importer  

Important notes:

  • Each test suite should be located in a separate dir
  • Use ginkgo instead of go test
  • Pass path to dir instead of .go file

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

Successfully merging this pull request may close these issues.

2 participants