  def testS3ToGCSTempCreds(self, mock_creds):
    """Test S3TOGCS operation when temporary AWS credentials exist."""
    creds = mock.MagicMock()
    creds.access_key = 'ASIA'
    creds.secret_key = 'DEF'
    mock_creds.return_value = creds
    with self.assertRaises(errors.TransferCreationError):
      gcp_mocks.FAKE_GCST.S3ToGCS(
          's3://s3_source_bucket/file.name',
          'fake-zone-2b',
          'gs://gcs_sink_bucket/test_path')
Test S3TOGCS operation when temporary AWS credentials exist.
tests/providers/gcp/internal/test_storagetransfer.py