mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
34 lines
867 B
Go
34 lines
867 B
Go
//go:build it
|
|
|
|
package test_suite
|
|
|
|
import (
|
|
"github.com/formancehq/go-libs/logging"
|
|
. "github.com/formancehq/go-libs/testing/platform/pgtesting"
|
|
. "github.com/formancehq/ledger/pkg/testserver"
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Context("Ledger integration tests", func() {
|
|
var (
|
|
db = UsePostgresDatabase(pgServer)
|
|
ctx = logging.TestingContext()
|
|
)
|
|
|
|
testServer := UseNewTestServer(func() Configuration {
|
|
return Configuration{
|
|
PostgresConfiguration: db.GetValue().ConnectionOptions(),
|
|
Output: GinkgoWriter,
|
|
Debug: debug,
|
|
}
|
|
})
|
|
When("Starting the ledger", func() {
|
|
It("Should be ok", func() {
|
|
info, err := testServer.GetValue().Client().Ledger.V2.GetInfo(ctx)
|
|
Expect(err).NotTo(HaveOccurred())
|
|
Expect(info.V2ConfigInfoResponse.Version).To(Equal("develop"))
|
|
})
|
|
})
|
|
})
|