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
487 B 20 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_SERVER_ADMIN_PASSWORD", "strong_password") 11 t.Setenv("SPINDLE_MICROVM_PIPELINES_IMAGE_DIR", "") 12 13 cfg, err := Load(context.Background()) 14 if err != nil { 15 t.Fatal(err) 16 } 17 if cfg.MicroVMPipelines.ImageDir != "" { 18 t.Fatalf("image directory = %q, want empty", cfg.MicroVMPipelines.ImageDir) 19 } 20}