(t *testing.T)
| 85 | } |
| 86 | |
| 87 | func TestLoadRepoConfig_MaintenanceEmptyObject(t *testing.T) { |
| 88 | dir := t.TempDir() |
| 89 | writeAWJSON(t, dir, `{"maintenance": {}}`) |
| 90 | |
| 91 | cfg, err := LoadRepoConfig(dir) |
| 92 | require.NoError(t, err, "aw.json with empty maintenance object should load without error") |
| 93 | assert.False(t, cfg.MaintenanceDisabled, "maintenance should not be disabled") |
| 94 | require.NotNil(t, cfg.Maintenance, "maintenance config should be set") |
| 95 | assert.Empty(t, cfg.Maintenance.RunsOn, "runs_on should be empty when not specified") |
| 96 | } |
| 97 | |
| 98 | func TestLoadRepoConfig_ActionFailureIssueExpires(t *testing.T) { |
| 99 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected