(databases []map[string]any)
| 41 | } |
| 42 | |
| 43 | func newChangeMock(databases []map[string]any) *changeMock { |
| 44 | return &changeMock{ |
| 45 | databases: databases, |
| 46 | sheetResponse: map[string]any{"name": "projects/hr-system/sheets/1001"}, |
| 47 | sheetStatus: http.StatusOK, |
| 48 | planResponse: map[string]any{"name": "projects/hr-system/plans/2002"}, |
| 49 | planStatus: http.StatusOK, |
| 50 | runPlanChecksStatus: http.StatusOK, |
| 51 | planCheckRunResponse: defaultPlanCheckDone(), |
| 52 | planCheckRunStatus: http.StatusOK, |
| 53 | issueResponse: defaultIssueResponse("APPROVED"), |
| 54 | issueStatus: http.StatusOK, |
| 55 | rolloutResponse: map[string]any{"name": "projects/hr-system/rollouts/4004"}, |
| 56 | rolloutStatus: http.StatusOK, |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | func defaultPlanCheckDone() map[string]any { |
| 61 | return map[string]any{ |
no test coverage detected