This repository has no description
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_OWNER", "did:web:spindle.example.com")
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}