File tree Expand file tree Collapse file tree 2 files changed +9
-14
lines changed
Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 11package cmd
22
33import (
4- "context"
54 "os"
65
76 "github.com/ethpandaops/assertoor/pkg/coordinator"
@@ -40,18 +39,14 @@ var validateCmd = &cobra.Command{
4039 os .Exit (1 )
4140 }
4241
43- // Create a minimal coordinator instance just for test loading validation
44- // We don't need to run the full coordinator, just validate external tests can be loaded
45- coord := coordinator .NewCoordinator (config , logrus .StandardLogger (), metricsPort )
46- testRegistry := coordinator .NewTestRegistry (coord )
47-
48- // Validate external tests can be loaded
49- ctx := context .Background ()
42+ // Validate external test files exist and can be parsed
5043 for _ , extTest := range config .ExternalTests {
51- _ , err := testRegistry .AddExternalTest (ctx , extTest )
52- if err != nil {
53- logrus .WithError (err ).WithField ("test" , extTest .File ).Error ("failed to load external test" )
54- os .Exit (1 )
44+ if extTest .File != "" {
45+ // Check if external test file exists
46+ if _ , err := os .Stat (extTest .File ); os .IsNotExist (err ) {
47+ logrus .WithField ("test" , extTest .File ).Error ("external test file does not exist" )
48+ os .Exit (1 )
49+ }
5550 }
5651 }
5752
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ type Config struct {
3131 ValidatorNames * names.Config `yaml:"validatorNames" json:"validatorNames"`
3232
3333 // Global variables
34- GlobalVars map [string ]interface {} `yaml:"globalVars" json:"globalVars"`
34+ GlobalVars map [string ]any `yaml:"globalVars" json:"globalVars"`
3535
3636 // Coordinator config
3737 Coordinator * CoordinatorConfig `yaml:"coordinator" json:"coordinator"`
@@ -62,7 +62,7 @@ func DefaultConfig() *Config {
6262 ConsensusURL : "http://localhost:5052" ,
6363 },
6464 },
65- GlobalVars : make (map [string ]interface {} ),
65+ GlobalVars : make (map [string ]any ),
6666 Coordinator : & CoordinatorConfig {},
6767 Tests : []* types.TestConfig {},
6868 ExternalTests : []* types.ExternalTestConfig {},
You can’t perform that action at this time.
0 commit comments