- Notifications
You must be signed in to change notification settings - Fork676
Open
Description
Description of the problem, including code/CLI snippet
It seems thatexisting config validation is not implemented (at least I haven't found it in the source code), but thedocumentation doesn't say it explicitly.
While this curl call works:
$ curl --header"Private-Token:${MY_CI_TOKEN}" https://${MY_GITLAB_HOST}/api/v4/projects/${MY_PROJECT_ID}/ci/lint?content_ref=${MYREF}
This code doesn't:
fromgitlabimportGitlabg=Gitlab(my_gitlab_host,private_token=my_ci_token)p=g.projects.get(my_project_id)p.ci_lint.validate({"content_ref":myref})
Expected Behavior
If I pass onlycontent_ref
instead ofcontent
, the same GET would be called as in the curl above according to theGitLab documentation.
Actual Behavior
It executesnew config validation as specifiedhere, sends a POST call, then throwsAttributeError: Missing attributes: content
Specifications
- python-gitlab version: v6.3.0
- Gitlab server version (or gitlab.com): v14.7.6
Metadata
Metadata
Assignees
Labels
No labels