This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / spindle / config / config_test.go
425 B 19 lines
1package config 2 3import ( 4 "context" 5 "testing" 6) 7 8func TestLoadAllowsUnconfiguredMicroVMEngine(t *testing.T) { 9 t.Setenv("SPINDLE_SERVER_HOSTNAME", "spindle.example.com") 10 t.Setenv("SPINDLE_MICROVM_PIPELINES_IMAGE_DIR", "") 11 12 cfg, err := Load(context.Background()) 13 if err != nil { 14 t.Fatal(err) 15 } 16 if cfg.MicroVMPipelines.ImageDir != "" { 17 t.Fatalf("image directory = %q, want empty", cfg.MicroVMPipelines.ImageDir) 18 } 19}