mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
* adding get ssz * adding some tests * gaz * adding ssz to e2e * wip ssz * adding in additional check on header type * remove unused * renaming json rest handler, and adding in usage of use ssz debug flag * fixing unit tests * fixing tests * gaz * radek feedback * Update config/features/config.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update config/features/flags.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update config/features/flags.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/client/beacon-api/get_beacon_block.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/client/beacon-api/get_beacon_block.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/client/beacon-api/get_beacon_block.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * addressing feedback * missing import * another missing import * fixing tests * gaz * removing unused * gaz * more radek feedback * fixing context * adding in check for non accepted conent type * reverting to not create more edgecases --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
45 lines
1.8 KiB
Go
45 lines
1.8 KiB
Go
package endtoend
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/OffchainLabs/prysm/v6/config/params"
|
|
"github.com/OffchainLabs/prysm/v6/runtime/version"
|
|
"github.com/OffchainLabs/prysm/v6/testing/endtoend/types"
|
|
)
|
|
|
|
func TestEndToEnd_MultiScenarioRun(t *testing.T) {
|
|
cfg := types.InitForkCfg(version.Bellatrix, version.Electra, params.E2ETestConfig())
|
|
runner := e2eMinimal(t, cfg, types.WithEpochs(28))
|
|
// override for scenario tests
|
|
runner.config.Evaluators = scenarioEvals(cfg)
|
|
runner.config.EvalInterceptor = runner.multiScenario
|
|
runner.scenarioRunner()
|
|
}
|
|
|
|
func TestEndToEnd_MinimalConfig_Web3Signer(t *testing.T) {
|
|
e2eMinimal(t, types.InitForkCfg(version.Bellatrix, version.Electra, params.E2ETestConfig()), types.WithRemoteSigner()).run()
|
|
}
|
|
|
|
func TestEndToEnd_MinimalConfig_Web3Signer_PersistentKeys(t *testing.T) {
|
|
e2eMinimal(t, types.InitForkCfg(version.Bellatrix, version.Electra, params.E2ETestConfig()), types.WithRemoteSignerAndPersistentKeysFile()).run()
|
|
}
|
|
|
|
func TestEndToEnd_MinimalConfig_ValidatorRESTApi(t *testing.T) {
|
|
e2eMinimal(t, types.InitForkCfg(version.Bellatrix, version.Electra, params.E2ETestConfig()), types.WithCheckpointSync(), types.WithValidatorRESTApi()).run()
|
|
}
|
|
|
|
func TestEndToEnd_MinimalConfig_ValidatorRESTApi_SSZ(t *testing.T) {
|
|
e2eMinimal(t, types.InitForkCfg(version.Bellatrix, version.Electra, params.E2ETestConfig()), types.WithCheckpointSync(), types.WithValidatorRESTApi(), types.WithSSZOnly()).run()
|
|
}
|
|
|
|
func TestEndToEnd_ScenarioRun_EEOffline(t *testing.T) {
|
|
t.Skip("TODO(#10242) Prysm is current unable to handle an offline e2e")
|
|
cfg := types.InitForkCfg(version.Bellatrix, version.Deneb, params.E2ETestConfig())
|
|
runner := e2eMinimal(t, cfg)
|
|
// override for scenario tests
|
|
runner.config.Evaluators = scenarioEvals(cfg)
|
|
runner.config.EvalInterceptor = runner.eeOffline
|
|
runner.scenarioRunner()
|
|
}
|