- Notifications
You must be signed in to change notification settings - Fork675
fix(api): delete invalid 'project-runner get' command#1628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
fix(api): delete invalid 'project-runner get' command#1628
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecov-commenter commentedOct 9, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## main #1628 +/- ##======================================= Coverage 91.92% 91.92% ======================================= Files 74 74 Lines 4295 4295 ======================================= Hits 3948 3948 Misses 347 347
Flags with carried forward coverage won't be shown.Click here to find out more.
|
nejch left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you very much@lgatellier!
You are right that the group runner should only inherit fromListMixin. Whether you'd like to add this here - or open a new PR - is up to you :)
Uh oh!
There was an error while loading.Please reload this page.
3514b2b to06ef25dComparenejch commentedOct 9, 2021
Funny, looks like there were actually some unit tests written that mocked POST/DELETE responses to the group runner. I'll check if this might be an undocumented API in gitlab already.. |
nejch commentedOct 9, 2021
@lgatellier I think you can safely delete the following to make it pass: and as real GitLab servers would not work with this. |
lgatellier commentedOct 10, 2021
I removed the 2 test cases. @pytest.fixturedefresp_runner_enable():withresponses.RequestsMock()asrsps:pattern=re.compile(r".*?(projects|groups)/1/runners")@pytest.fixturedefresp_runner_disable():withresponses.RequestsMock()asrsps:pattern=re.compile(r".*?/(groups|projects)/1/runners/6") |
nejch commentedOct 10, 2021
That's right@lgatellier, thank you! |
nejch commentedOct 14, 2021
@lgatellier would you mind rebasing this onto the |
dffa8a3 tod989c9bComparelgatellier commentedOct 17, 2021
@nejch all done, mocked responses are fixed, and branch is rebased ! |
nejch commentedOct 17, 2021
Thanks again@lgatellier! |
Uh oh!
There was an error while loading.Please reload this page.
Deletes the 'project-runner get' command which does'nt match any existing Gitlab API resource.
Closes#1608.