Closed phil-davis closed 5 years ago
@phil-davis, currently, if the federation
app cannot be started, there are no imported modules that we can use in the testing
app. This would have been fine if the Http response to the APIs in the testing
app would throw some 4XX/5XX status code (better response is always better, though).
Sadly, the response is 200 OK
and empty body content, which will pass most of our assertions (where we check that status code is 200
) and gives very ambiguous parsing errors (eg. where we do res.json()
).
When the testing app fails, it should give 5XX errors, not 200
. We should prioritize this at least in this sprint or the very next.
cc @HariBhandari07
Try yourself:
federation
curl http://admin:admin@localhost/core/ocs/v1.php/apps/testing/api/v1/file --verbose
This was noticed when trying to run a selection of acceptance tests against a system that had federation
disabled. In that situation we should still be able to run "ordinary" acceptance test scenarios that do not need or test the federation features.
I added this to "Backlog for planning" so that it gets noticed, and someone can at least have a short look and report what might be possible to do.
It looks like PR #101 added features to the testing app that require the
federation
app to be enabled.federation
and then try to run some ordinary acceptance tests that should run without federation)federation
app is disabled