Most of the time we just want an OK status code. 202, 204, 200 should
all be OK and some of this depends on the Galaxy instance config,
so this should be more robust to future changes.
Fix upload jobs not being picked up by the job handlers:
```
FAILED test/integration/objectstore/test_onedata_objectstore.py::test_tools[multi_output_assign_primary] - galaxy.tool_util.verify.wait.TimeoutAssertionError: Timed out after 60.25 seconds waiting on tool test run.
FAILED test/integration/objectstore/test_onedata_objectstore.py::test_tools[composite_output_tests] - galaxy.tool_util.verify.wait.TimeoutAssertionError: Timed out after 60.25 seconds waiting on tool test run.
FAILED test/integration/objectstore/test_onedata_objectstore.py::test_tools[metadata_bam] - galaxy.tool_util.verify.wait.TimeoutAssertionError: Timed out after 60.25 seconds waiting on tool test run.
```
not just `OAUTHLIB_INSECURE_TRANSPORT`.
Fix the following error in integration tests that were run after
those in `test/integration/oidc/test_auth_oidc.py`:
```
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1147)
```
Introduced in https://github.com/galaxyproject/galaxy/pull/16977 .
Found by running:
```
make pyupgrade
ruff check --fix .
ruff check --preview --unsafe-fixes --select=F401 --fix .
make format
make update-client-api-schema
```
The bulk of the changes are replacements of typing deprecated aliases
such as `Dict` and `List` with the standard library classes. These
aliases became redundant in Python 3.9 when the corresponding
pre-existing classes were enhanced to support `[]`, see
https://docs.python.org/3/library/typing.html#deprecated-aliases
Also:
- Update the `pyupgrade` Makefile target to use `--py38-plus` for the
packages needed by Pulsar, including the new galaxy-tool-util-models
package.
Also:
- Fix `_assert_container_in_cache_singularity()` to append `container_path`
to `cache_directory` only for explicit resolvers.
Also calculate `cache_dir_contents` only if `cache_directory` exists.