write commented json default config

This commit is contained in:
André Roth
2024-12-01 10:51:58 +01:00
parent 622072bd50
commit ea80f6d49c
8 changed files with 421 additions and 53 deletions
+4 -1
View File
@@ -1,6 +1,8 @@
package context
import (
"fmt"
"os"
"reflect"
"testing"
@@ -82,5 +84,6 @@ func (s *AptlyContextSuite) TestGetPublishedStorageBadFS(c *C) {
// storage never exists.
c.Assert(func() { s.context.GetPublishedStorage("filesystem:fuji") },
FatalErrorPanicMatches,
&FatalError{ReturnCode: 1, Message: "published local storage fuji not configured"})
&FatalError{ReturnCode: 1, Message: fmt.Sprintf("error loading config file %s/.aptly.conf: EOF",
os.Getenv("HOME"))})
}