diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/admin/model_test.go | 2 | ||||
| -rw-r--r-- | internal/admin/service_test.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/admin/model_test.go b/internal/admin/model_test.go index 0453d84..082b3f0 100644 --- a/internal/admin/model_test.go +++ b/internal/admin/model_test.go @@ -236,7 +236,7 @@ func TestMgmtGitConfig(t *testing.T) { if !errors.Is(err, ErrMgmtRepoNotFound) { t.Fatalf("expected ErrMgmtRepoNotFound, got %v", err) } - + // check couldnt open file err _, err = loadConfigFromGit(gitDir, "dne.yaml") if err == nil { diff --git a/internal/admin/service_test.go b/internal/admin/service_test.go index 2cf4e0d..11abd98 100644 --- a/internal/admin/service_test.go +++ b/internal/admin/service_test.go @@ -91,18 +91,18 @@ func TestInitServer(t *testing.T) { t.Run("test default config basePath", func(t *testing.T) { // Create a new temporary directory for this test testRepoDir := t.TempDir() - + // Create a service with mgmtRepo=true to trigger the default config path svc, err := NewService(destModelFile, destPolicyFile, "gitserver.yaml", // Non-existent file to trigger default config testRepoDir, true) - + if err != nil { t.Fatalf("Failed to create service: %v", err) } - + // Verify that basePath was correctly set in the default config if svc.Conf.basePath != testRepoDir { t.Errorf("Expected basePath to be %q, got %q", testRepoDir, svc.Conf.basePath) |