Update system tests.
This commit is contained in:
parent
8af61d2a2a
commit
f0be9ef759
@ -31,7 +31,7 @@ var _ = Describe("Healthcheck", func() {
|
|||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
var err error
|
var err error
|
||||||
Bc, err = beaconclient.CreateBeaconClient(context.Background(), "http", "localhost", 8005, 10, bcUniqueIdentifier, false, true, true)
|
Bc, err = beaconclient.CreateBeaconClient(context.Background(), "http", "localhost", 5052, 10, bcUniqueIdentifier, false, true, true)
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
errBc, err = beaconclient.CreateBeaconClient(context.Background(), "http", "blah-blah", 1010, 10, bcUniqueIdentifier, false, true, true)
|
errBc, err = beaconclient.CreateBeaconClient(context.Background(), "http", "blah-blah", 1010, 10, bcUniqueIdentifier, false, true, true)
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
@ -1,32 +1,42 @@
|
|||||||
package beaconclient_test
|
package beaconclient_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
//. "github.com/onsi/gomega"
|
|
||||||
"github.com/vulcanize/ipld-eth-beacon-indexer/pkg/beaconclient"
|
"github.com/vulcanize/ipld-eth-beacon-indexer/pkg/beaconclient"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
prodConfig = Config{
|
prodConfig = Config{
|
||||||
protocol: os.Getenv("bc_protocol"),
|
protocol: os.Getenv("bc_protocol"),
|
||||||
address: os.Getenv("bc_address"),
|
address: os.Getenv("bc_address"),
|
||||||
port: getEnvInt(os.Getenv("bc_port")),
|
port: getEnvInt(os.Getenv("bc_port")),
|
||||||
dbHost: os.Getenv("db_host"),
|
dbHost: os.Getenv("db_host"),
|
||||||
dbPort: getEnvInt(os.Getenv("db_port")),
|
dbPort: getEnvInt(os.Getenv("db_port")),
|
||||||
dbName: os.Getenv("db_name"),
|
dbName: os.Getenv("db_name"),
|
||||||
dbUser: os.Getenv("db_user"),
|
dbUser: os.Getenv("db_user"),
|
||||||
dbPassword: os.Getenv("db_password"),
|
dbPassword: os.Getenv("db_password"),
|
||||||
dbDriver: os.Getenv("db_driver"),
|
dbDriver: os.Getenv("db_driver"),
|
||||||
knownGapsTableIncrement: 100000000,
|
knownGapsTableIncrement: 100000000,
|
||||||
bcUniqueIdentifier: 100,
|
bcUniqueIdentifier: 100,
|
||||||
checkDb: false,
|
checkDb: false,
|
||||||
|
performBeaconBlockProcessing: true,
|
||||||
|
// As of 2022-09, generating and downloading the full BeaconState is so slow it will cause the tests to fail.
|
||||||
|
performBeaconStateProcessing: false,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Note: These tests expect to communicate with a fully-synced Beacon node.
|
||||||
|
|
||||||
var _ = Describe("Systemvalidation", Label("system"), func() {
|
var _ = Describe("Systemvalidation", Label("system"), func() {
|
||||||
|
level, _ := log.ParseLevel("debug")
|
||||||
|
log.SetLevel(level)
|
||||||
|
|
||||||
Describe("Run the application against a running lighthouse node", func() {
|
Describe("Run the application against a running lighthouse node", func() {
|
||||||
Context("When we receive head messages", func() {
|
Context("When we receive head messages", func() {
|
||||||
It("We should process the messages successfully", func() {
|
It("We should process the messages successfully", func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user