Title: `list()` pagination doesn't work in functional tests · Issue #1877 · python-gitlab/python-gitlab · GitHub
Open Graph Title: `list()` pagination doesn't work in functional tests · Issue #1877 · python-gitlab/python-gitlab
X Title: `list()` pagination doesn't work in functional tests · Issue #1877 · python-gitlab/python-gitlab
Description: When pagination occurs python-gitlab uses the URL provided by the GitLab server to use for the next request. We have set the GitLab server configuraiton to say its URLis http://gitlab.test which is not in DNS. The pagination code uses th...
Open Graph Description: When pagination occurs python-gitlab uses the URL provided by the GitLab server to use for the next request. We have set the GitLab server configuraiton to say its URLis http://gitlab.test which is...
X Description: When pagination occurs python-gitlab uses the URL provided by the GitLab server to use for the next request. We have set the GitLab server configuraiton to say its URLis http://gitlab.test which is...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1877
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`list()` pagination doesn't work in functional tests","articleBody":"When pagination occurs python-gitlab uses the URL provided by the GitLab server to use for the next request.\r\n\r\nWe have set the GitLab server configuraiton to say its URLis `http://gitlab.test` which is not in DNS. The pagination code uses the provided URL from the GitLab server to make the next request. And `gitlab.test` does not exist in DNS so it fails.\r\n\r\nI tried to change the URL in `docker-compose.yml` to use `127.0.0.1` but this caused the error:\r\n\r\n```\r\nFAILED tests/functional/api/test_projects.py::test_project_remote_mirrors - gitlab.exceptions.GitlabCreateError: 400: {'url': ['is blocked: Requests to localhost are not allowed']}\r\n```\r\n\r\nTo trigger the failure in `test_template_gitignore` and/or `test_template_gitlabciyml` use `list(all=True)`","author":{"url":"https://github.com/JohnVillalovos","@type":"Person","name":"JohnVillalovos"},"datePublished":"2022-02-04T15:35:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1877/python-gitlab/issues/1877"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4682c231-1166-243d-c264-3173502c9b73 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 902C:358171:CE94A2:1205E66:6971F5E2 |
| html-safe-nonce | 72d6015b8ccfa30c487c32b9be7537c25e3c2a3483b26052b46dd5b6a0e20200 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDJDOjM1ODE3MTpDRTk0QTI6MTIwNUU2Njo2OTcxRjVFMiIsInZpc2l0b3JfaWQiOiI2MDMyNTEwOTMzMTM5NTg0NDgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e355879c2628edbb19e08b8cddca69b5450a1e9d2663bdca65385361fd493534 |
| hovercard-subject-tag | issue:1124334909 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-gitlab/python-gitlab/1877/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7aa93705f4ad8629aed21b99b05699dbb904c96e62c7214ff143ee93d917ae44/python-gitlab/python-gitlab/issues/1877 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7aa93705f4ad8629aed21b99b05699dbb904c96e62c7214ff143ee93d917ae44/python-gitlab/python-gitlab/issues/1877 |
| og:image:alt | When pagination occurs python-gitlab uses the URL provided by the GitLab server to use for the next request. We have set the GitLab server configuraiton to say its URLis http://gitlab.test which is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JohnVillalovos |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d9da1aa47d387dfb2aca0f2e5c19150dc936b8128a6b2ecd6a02fc26a378fff |
| turbo-cache-control | no-preview |
| go-import | github.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git |
| octolytics-dimension-user_id | 28886265 |
| octolytics-dimension-user_login | python-gitlab |
| octolytics-dimension-repository_id | 8077625 |
| octolytics-dimension-repository_nwo | python-gitlab/python-gitlab |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8077625 |
| octolytics-dimension-repository_network_root_nwo | python-gitlab/python-gitlab |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4332d3e3368b9bce3dfd3c4a2643112933072734 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width