ApiFunctionCallTest does not currently check that the correct error was raised. This is currently relevant in one test.
Description
Details
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| Add orchestratorHttpStatusCode to the ApiFunctionCall payload | Genoveva Galarza | mediawiki/extensions/WikiLambda | master | +314 -90 |
Event Timeline
Note that with https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/945759 we're disabling this for now, as following https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/commit/2daca7aae2846f56f7ad3952ba0a20c2964af278 and https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/commit/7986b346b91e4c09640476bf5eee780ebfd3b30a even though it does nothing it now also fails. :-)
Change #1311822 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):
[mediawiki/extensions/WikiLambda@master] Add orchestratorHttpStatusCode to the ApiFunctionCall payload
Change #1311822 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] Add orchestratorHttpStatusCode to the ApiFunctionCall payload
Now partially done, but still:
tests/phpunit/integration/PublicAPI/PublicApiRunTest.php 62: // TODO (T314609): Also test error cases. 107: // TODO (T314609): Also test that metadata has correct keys. tests/phpunit/integration/ActionAPI/ApiFunctionCallTest.php 231: // TODO (T314609): Also test that metadata has correct keys. 284: // (T314609) Orchestrator error cases