(t *testing.T)
| 118 | } |
| 119 | |
| 120 | func TestAppsService_ListInstallations(t *testing.T) { |
| 121 | t.Parallel() |
| 122 | client, mux, _ := setup(t) |
| 123 | |
| 124 | mux.HandleFunc("/app/installations", func(w http.ResponseWriter, r *http.Request) { |
| 125 | testMethod(t, r, "GET") |
| 126 | testFormValues(t, r, values{ |
| 127 | "page": "1", |
| 128 | "per_page": "2", |
| 129 | }) |
| 130 | fmt.Fprint(w, `[{ |
| 131 | "id":1, |
| 132 | "app_id":1, |
| 133 | "target_id":1, |
| 134 | "target_type": "Organization", |
| 135 | "permissions": { |
| 136 | "actions": "read", |
| 137 | "administration": "read", |
| 138 | "checks": "read", |
| 139 | "contents": "read", |
| 140 | "content_references": "read", |
| 141 | "deployments": "read", |
| 142 | "environments": "read", |
| 143 | "issues": "write", |
| 144 | "metadata": "read", |
| 145 | "members": "read", |
| 146 | "organization_administration": "write", |
| 147 | "organization_custom_roles": "write", |
| 148 | "organization_hooks": "write", |
| 149 | "organization_packages": "write", |
| 150 | "organization_personal_access_tokens": "read", |
| 151 | "organization_personal_access_token_requests": "read", |
| 152 | "organization_plan": "read", |
| 153 | "organization_pre_receive_hooks": "write", |
| 154 | "organization_projects": "read", |
| 155 | "organization_secrets": "read", |
| 156 | "organization_self_hosted_runners": "read", |
| 157 | "organization_user_blocking": "write", |
| 158 | "packages": "read", |
| 159 | "pages": "read", |
| 160 | "pull_requests": "write", |
| 161 | "repository_hooks": "write", |
| 162 | "repository_projects": "read", |
| 163 | "repository_pre_receive_hooks": "read", |
| 164 | "secrets": "read", |
| 165 | "secret_scanning_alerts": "read", |
| 166 | "security_events": "read", |
| 167 | "single_file": "write", |
| 168 | "statuses": "write", |
| 169 | "team_discussions": "read", |
| 170 | "vulnerability_alerts": "read", |
| 171 | "workflows": "write" |
| 172 | }, |
| 173 | "events": [ |
| 174 | "push", |
| 175 | "pull_request" |
| 176 | ], |
| 177 | "single_file_name": "config.yml", |
nothing calls this directly
no test coverage detected
searching dependent graphs…