Skip to content

Use Ginkgo and Gomega for BDD tests - #1

Merged
msdmazvoid merged 1 commit into
mainfrom
test/ginkgo-gomega
Nov 6, 2026
Merged

msdmazvoid merged 1 commit into
mainfrom
test/ginkgo-gomega

Conversation

@msdmazvoid

Copy link
Copy Markdown
Contributor

Summary

  • Adds Ginkgo v2 and Gomega as the BDD test framework.
  • Introduces test/bdd, a Ginkgo suite covering the public volume lifecycle:
    • thick LV creation and export
    • active-session unexport refusal
    • forced unexport
    • credential rotation on re-attach
    • delete after the session is gone
  • Adds make test-bdd and runs it explicitly in CI.
  • Keeps the existing fast unit tests; GoMock is not required yet because the
    current interfaces are covered by focused in-package fakes.

Test plan

  • go test -tags=unit ./...
  • make test-bdd
  • make coverage-check
  • go vet ./...
  • golangci-lint run
  • GitHub Actions CI

Notes

The new BDD suite uses the real SQLite state store and the real operations
manager. The LVM, target, and credential boundaries are test doubles.

@msdmazvoid
msdmazvoid merged commit 1e6f11f into main Nov 6, 2026
2 checks passed
@msdmazvoid
msdmazvoid deleted the test/ginkgo-gomega branch November 6, 2026 23:03
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.

1 participant