It's state, not config.
This commit is contained in:
@@ -32,8 +32,8 @@ func TestDnsmasqGenerate(t *testing.T) {
|
||||
api, tmpDir := setupTestDnsmasq(t)
|
||||
|
||||
globalConfig := config.GlobalConfig{}
|
||||
globalConfig.Cloud.Router.IP = "192.168.1.1"
|
||||
configPath := filepath.Join(tmpDir, "config.yaml")
|
||||
globalConfig.Cloud.Central.Domain = "central.example.com"
|
||||
configPath := filepath.Join(tmpDir, "state.yaml")
|
||||
configData, _ := yaml.Marshal(globalConfig)
|
||||
if err := storage.WriteFile(configPath, configData, 0644); err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user