Fix failing tests

Fix the gsutil fetch tests broken by the gcloud storage migration and
the Firefox integration tests broken by pruned archives.

gsutil fetch tests:

The automated migration in 833992f switched GsUtilDownloader from
`gsutil.py cp` to `gcloud storage cp` but left
test/fetch_gsutil_test.dart untouched, breaking all three of its
tests.

* The two mocked tests still passed 'gsutil.py' as the expected
  executable. They now expect 'gcloud' and also assert the full
  argument list, whose absence is what let the migration slip
  through in the first place.
* 'fetch gsutil package' actually ran the executable and relied on
  gsutil accepting a local-to-local copy. `gcloud storage cp`
  rejects that with "Local copies not supported", so the test now
  mocks the process and performs the copy as a side effect, keeping
  the assertions on the value returned by fetch().
* Drop the '401 Anonymous caller' special case and its test. That
  wording was gsutil's. `gcloud storage cp` reports an inaccessible
  object as "not found: 404" and, when credentials are missing,
  already prints "Please run: $ gcloud auth login" itself, so the
  hand-rolled StateError was both unreachable and redundant with
  the stderr carried by the ProcessException.

Firefox integration tests:

The Firefox 135.0 build2 archives have been pruned from
archive.mozilla.org and now return 404. Bump the integration tests to
157.0 build1, the current release.

Bug: b/486536908
Change-Id: I777c7a998b96ad14f849c31b189b90224da06de4
TAG=agy
CONV=13b61641-faa1-4873-a042-3cee827fa991
Reviewed-on: https://dart-review.googlesource.com/c/deps/+/550220
Auto-Submit: Alexander Thomas <athom@google.com>
Reviewed-by: Ivan Inozemtsev <iinozemtsev@google.com>
Commit-Queue: Ivan Inozemtsev <iinozemtsev@google.com>
3 files changed
tree: 9922946770f7ba347395a7f465290fc91c3f9657
  1. .github/
  2. bin/
  3. lib/
  4. test/
  5. .gitignore
  6. analysis_options.yaml
  7. AUTHORS
  8. CHANGELOG.md
  9. LICENSE
  10. OWNERS
  11. pubspec.lock
  12. pubspec.yaml
  13. README.md
README.md

Tools that create packages needed by the Dart SDK.