2022-05-20 09:34:10 +00:00
|
|
|
package endtoend
|
|
|
|
|
2022-06-15 08:02:31 +00:00
|
|
|
import (
|
|
|
|
"testing"
|
2022-05-20 09:34:10 +00:00
|
|
|
|
2024-02-15 05:46:47 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
|
|
"github.com/prysmaticlabs/prysm/v5/runtime/version"
|
|
|
|
"github.com/prysmaticlabs/prysm/v5/testing/endtoend/types"
|
2022-06-15 08:02:31 +00:00
|
|
|
)
|
2022-05-20 09:34:10 +00:00
|
|
|
|
2022-06-15 08:02:31 +00:00
|
|
|
func TestEndToEnd_MultiScenarioRun(t *testing.T) {
|
2023-11-08 12:24:23 +00:00
|
|
|
runner := e2eMinimal(t, types.InitForkCfg(version.Phase0, version.Deneb, params.E2ETestConfig()), types.WithEpochs(26))
|
2022-05-20 09:34:10 +00:00
|
|
|
|
|
|
|
runner.config.Evaluators = scenarioEvals()
|
2022-06-15 08:02:31 +00:00
|
|
|
runner.config.EvalInterceptor = runner.multiScenario
|
2022-05-20 09:34:10 +00:00
|
|
|
runner.scenarioRunner()
|
|
|
|
}
|
|
|
|
|
2022-06-24 17:01:12 +00:00
|
|
|
func TestEndToEnd_MinimalConfig_Web3Signer(t *testing.T) {
|
2023-12-16 11:37:44 +00:00
|
|
|
e2eMinimal(t, types.InitForkCfg(version.Phase0, version.Deneb, params.E2ETestConfig()), types.WithRemoteSigner()).run()
|
2022-06-24 17:01:12 +00:00
|
|
|
}
|
|
|
|
|
2022-12-08 14:38:56 +00:00
|
|
|
func TestEndToEnd_MinimalConfig_ValidatorRESTApi(t *testing.T) {
|
2023-11-08 12:24:23 +00:00
|
|
|
e2eMinimal(t, types.InitForkCfg(version.Phase0, version.Deneb, params.E2ETestConfig()), types.WithCheckpointSync(), types.WithValidatorRESTApi()).run()
|
2022-12-08 14:38:56 +00:00
|
|
|
}
|
|
|
|
|
2022-05-20 09:34:10 +00:00
|
|
|
func TestEndToEnd_ScenarioRun_EEOffline(t *testing.T) {
|
|
|
|
t.Skip("TODO(#10242) Prysm is current unable to handle an offline e2e")
|
2023-11-08 12:24:23 +00:00
|
|
|
runner := e2eMinimal(t, types.InitForkCfg(version.Phase0, version.Deneb, params.E2ETestConfig()))
|
2022-05-20 09:34:10 +00:00
|
|
|
|
|
|
|
runner.config.Evaluators = scenarioEvals()
|
|
|
|
runner.config.EvalInterceptor = runner.eeOffline
|
|
|
|
runner.scenarioRunner()
|
|
|
|
}
|