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
|
|
|
|
2023-03-17 18:52:56 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v4/runtime/version"
|
|
|
|
"github.com/prysmaticlabs/prysm/v4/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-02-28 15:21:15 +00:00
|
|
|
runner := e2eMinimal(t, version.Phase0, types.WithEpochs(24))
|
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) {
|
2022-12-21 04:43:29 +00:00
|
|
|
e2eMinimal(t, version.Phase0, 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) {
|
2022-12-21 04:43:29 +00:00
|
|
|
e2eMinimal(t, version.Phase0, 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")
|
2022-12-21 04:43:29 +00:00
|
|
|
runner := e2eMinimal(t, version.Phase0)
|
2022-05-20 09:34:10 +00:00
|
|
|
|
|
|
|
runner.config.Evaluators = scenarioEvals()
|
|
|
|
runner.config.EvalInterceptor = runner.eeOffline
|
|
|
|
runner.scenarioRunner()
|
|
|
|
}
|