Hello community,

here is the log from the commit of package python-google-cloud-core for 
openSUSE:Factory checked in at 2019-05-16 22:10:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-cloud-core (Old)
 and      /work/SRC/openSUSE:Factory/.python-google-cloud-core.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-google-cloud-core"

Thu May 16 22:10:51 2019 rev:4 rq:703522 version:1.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-google-cloud-core/python-google-cloud-core.changes
        2019-02-28 21:41:51.921564510 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-google-cloud-core.new.5148/python-google-cloud-core.changes
      2019-05-16 22:11:18.902217183 +0200
@@ -1,0 +2,9 @@
+Thu May 16 18:06:22 UTC 2019 - [email protected]
+
+- Update to v1.0.0
+  * Remove classifier for Python 3.4 for end-of-life. (#7535)
+  * Refactor client_info support. (#7849)
+  * Update dep on api_core >= 1.11.0. (#7986)
+  * Updated client library documentation URLs. (#7307) 
+
+-------------------------------------------------------------------

Old:
----
  google-cloud-core-0.29.1.tar.gz

New:
----
  google-cloud-core-1.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-google-cloud-core.spec ++++++
--- /var/tmp/diff_new_pack.n8kB56/_old  2019-05-16 22:11:20.254216024 +0200
+++ /var/tmp/diff_new_pack.n8kB56/_new  2019-05-16 22:11:20.278216004 +0200
@@ -18,32 +18,31 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-google-cloud-core
-Version:        0.29.1
+Version:        1.0.0
 Release:        0
 Summary:        Google Cloud API client core library
 License:        Apache-2.0
 Group:          Development/Languages/Python
-Url:            https://github.com/GoogleCloudPlatform/google-cloud-python
+URL:            https://github.com/GoogleCloudPlatform/google-cloud-python
 Source:         
https://files.pythonhosted.org/packages/source/g/google-cloud-core/google-cloud-core-%{version}.tar.gz
 BuildRequires:  %{python_module grpcio}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+Requires:       python-google-api-core >= 1.11.0
+Recommends:     python-grpcio >= 1.8.2
+BuildArch:      noarch
 %ifpython2
 BuildRequires:  python2-futures
 %endif
-BuildRequires:  python-rpm-macros
 # SECTION test requirements
 BuildRequires:  %{python_module google-api-core >= 0.1.1}
 # /SECTION
-BuildRequires:  fdupes
-Requires:       python-google-api-core >= 1.0.0
 %ifpython2
 Requires:       python-futures >= 3.2.0
 %endif
-Recommends:     python-grpcio >= 1.8.2
-BuildArch:      noarch
-
 %python_subpackages
 
 %description

++++++ google-cloud-core-0.29.1.tar.gz -> google-cloud-core-1.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-cloud-core-0.29.1/PKG-INFO 
new/google-cloud-core-1.0.0/PKG-INFO
--- old/google-cloud-core-0.29.1/PKG-INFO       2018-12-18 21:56:47.000000000 
+0100
+++ new/google-cloud-core-1.0.0/PKG-INFO        2019-05-15 23:22:37.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: google-cloud-core
-Version: 0.29.1
+Version: 1.0.0
 Summary: Google Cloud API client core library
 Home-page: https://github.com/GoogleCloudPlatform/google-cloud-python
 Author: Google LLC
@@ -22,7 +22,7 @@
            :target: https://pypi.org/project/google-cloud-core/
         .. |versions| image:: 
https://img.shields.io/pypi/pyversions/google-cloud-core.svg
            :target: https://pypi.org/project/google-cloud-core/
-        .. _Documentation: 
https://googlecloudplatform.github.io/google-cloud-python/latest/core/index.html
+        .. _Documentation: 
https://googleapis.github.io/google-cloud-python/latest/core/index.html
         
         Quick Start
         -----------
@@ -40,7 +40,7 @@
         
         Supported Python Versions
         -------------------------
-        Python >= 3.4
+        Python >= 3.5
         
         Deprecated Python Versions
         --------------------------
@@ -54,7 +54,6 @@
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-cloud-core-0.29.1/README.rst 
new/google-cloud-core-1.0.0/README.rst
--- old/google-cloud-core-0.29.1/README.rst     2018-12-18 21:53:58.000000000 
+0100
+++ new/google-cloud-core-1.0.0/README.rst      2019-05-15 23:20:02.000000000 
+0200
@@ -14,7 +14,7 @@
    :target: https://pypi.org/project/google-cloud-core/
 .. |versions| image:: 
https://img.shields.io/pypi/pyversions/google-cloud-core.svg
    :target: https://pypi.org/project/google-cloud-core/
-.. _Documentation: 
https://googlecloudplatform.github.io/google-cloud-python/latest/core/index.html
+.. _Documentation: 
https://googleapis.github.io/google-cloud-python/latest/core/index.html
 
 Quick Start
 -----------
@@ -32,7 +32,7 @@
 
 Supported Python Versions
 -------------------------
-Python >= 3.4
+Python >= 3.5
 
 Deprecated Python Versions
 --------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-cloud-core-0.29.1/google/cloud/_http.py 
new/google-cloud-core-1.0.0/google/cloud/_http.py
--- old/google-cloud-core-0.29.1/google/cloud/_http.py  2018-12-18 
21:53:58.000000000 +0100
+++ new/google-cloud-core-1.0.0/google/cloud/_http.py   2019-05-15 
23:20:02.000000000 +0200
@@ -16,10 +16,12 @@
 
 import json
 import platform
+import warnings
 
 from pkg_resources import get_distribution
 from six.moves.urllib.parse import urlencode
 
+from google.api_core.client_info import ClientInfo
 from google.cloud import exceptions
 
 
@@ -34,24 +36,98 @@
 CLIENT_INFO_HEADER = "X-Goog-API-Client"
 CLIENT_INFO_TEMPLATE = "gl-python/" + platform.python_version() + " gccl/{}"
 
+_USER_AGENT_ALL_CAPS_DEPRECATED = """\
+The 'USER_AGENT' class-level attribute is deprecated.  Please use
+'user_agent' instead.
+"""
+
+_EXTRA_HEADERS_ALL_CAPS_DEPRECATED = """\
+The '_EXTRA_HEADERS' class-level attribute is deprecated.  Please use
+'extra_headers' instead.
+"""
+
 
 class Connection(object):
     """A generic connection to Google Cloud Platform.
 
     :type client: :class:`~google.cloud.client.Client`
     :param client: The client that owns the current connection.
-    """
 
-    USER_AGENT = DEFAULT_USER_AGENT
-    _EXTRA_HEADERS = {}
-    """Headers to be sent with every request.
-
-    Intended to be over-ridden by subclasses.
+    :type client_info: :class:`~google.api_core.client_info.ClientInfo`
+    :param client_info: (Optional) instance used to generate user agent.
     """
 
-    def __init__(self, client):
+    _user_agent = DEFAULT_USER_AGENT
+
+    def __init__(self, client, client_info=None):
         self._client = client
 
+        if client_info is None:
+            client_info = ClientInfo()
+
+        self._client_info = client_info
+        self._extra_headers = {}
+
+    @property
+    def USER_AGENT(self):
+        """Deprecated:  get / set user agent sent by connection.
+
+        :rtype: str
+        :returns: user agent
+        """
+        warnings.warn(
+            _USER_AGENT_ALL_CAPS_DEPRECATED, DeprecationWarning, stacklevel=2)
+        return self.user_agent
+
+    @USER_AGENT.setter
+    def USER_AGENT(self, value):
+        warnings.warn(
+            _USER_AGENT_ALL_CAPS_DEPRECATED, DeprecationWarning, stacklevel=2)
+        self.user_agent = value
+
+    @property
+    def user_agent(self):
+        """Get / set user agent sent by connection.
+
+        :rtype: str
+        :returns: user agent
+        """
+        return self._client_info.to_user_agent()
+
+    @user_agent.setter
+    def user_agent(self, value):
+        self._client_info.user_agent = value
+
+    @property
+    def _EXTRA_HEADERS(self):
+        """Deprecated:  get / set extra headers sent by connection.
+
+        :rtype: dict
+        :returns: header keys / values
+        """
+        warnings.warn(
+            _EXTRA_HEADERS_ALL_CAPS_DEPRECATED, DeprecationWarning, 
stacklevel=2)
+        return self.extra_headers
+
+    @_EXTRA_HEADERS.setter
+    def _EXTRA_HEADERS(self, value):
+        warnings.warn(
+            _EXTRA_HEADERS_ALL_CAPS_DEPRECATED, DeprecationWarning, 
stacklevel=2)
+        self.extra_headers = value
+
+    @property
+    def extra_headers(self):
+        """Get / set extra headers sent by connection.
+
+        :rtype: dict
+        :returns: header keys / values
+        """
+        return self._extra_headers
+
+    @extra_headers.setter
+    def extra_headers(self, value):
+        self._extra_headers = value
+
     @property
     def credentials(self):
         """Getter for current credentials.
@@ -181,13 +257,14 @@
         :returns: The HTTP response.
         """
         headers = headers or {}
-        headers.update(self._EXTRA_HEADERS)
+        headers.update(self.extra_headers)
         headers["Accept-Encoding"] = "gzip"
 
         if content_type:
             headers["Content-Type"] = content_type
 
-        headers["User-Agent"] = self.USER_AGENT
+        headers[CLIENT_INFO_HEADER] = self.user_agent
+        headers["User-Agent"] = self.user_agent
 
         return self._do_request(method, url, headers, data, target_object)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-cloud-core-0.29.1/google_cloud_core.egg-info/PKG-INFO 
new/google-cloud-core-1.0.0/google_cloud_core.egg-info/PKG-INFO
--- old/google-cloud-core-0.29.1/google_cloud_core.egg-info/PKG-INFO    
2018-12-18 21:56:47.000000000 +0100
+++ new/google-cloud-core-1.0.0/google_cloud_core.egg-info/PKG-INFO     
2019-05-15 23:22:36.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: google-cloud-core
-Version: 0.29.1
+Version: 1.0.0
 Summary: Google Cloud API client core library
 Home-page: https://github.com/GoogleCloudPlatform/google-cloud-python
 Author: Google LLC
@@ -22,7 +22,7 @@
            :target: https://pypi.org/project/google-cloud-core/
         .. |versions| image:: 
https://img.shields.io/pypi/pyversions/google-cloud-core.svg
            :target: https://pypi.org/project/google-cloud-core/
-        .. _Documentation: 
https://googlecloudplatform.github.io/google-cloud-python/latest/core/index.html
+        .. _Documentation: 
https://googleapis.github.io/google-cloud-python/latest/core/index.html
         
         Quick Start
         -----------
@@ -40,7 +40,7 @@
         
         Supported Python Versions
         -------------------------
-        Python >= 3.4
+        Python >= 3.5
         
         Deprecated Python Versions
         --------------------------
@@ -54,7 +54,6 @@
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-cloud-core-0.29.1/google_cloud_core.egg-info/requires.txt 
new/google-cloud-core-1.0.0/google_cloud_core.egg-info/requires.txt
--- old/google-cloud-core-0.29.1/google_cloud_core.egg-info/requires.txt        
2018-12-18 21:56:47.000000000 +0100
+++ new/google-cloud-core-1.0.0/google_cloud_core.egg-info/requires.txt 
2019-05-15 23:22:36.000000000 +0200
@@ -1,4 +1,4 @@
-google-api-core<2.0.0dev,>=1.0.0
+google-api-core<2.0.0dev,>=1.11.0
 
 [grpc]
 grpcio>=1.8.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-cloud-core-0.29.1/setup.py 
new/google-cloud-core-1.0.0/setup.py
--- old/google-cloud-core-0.29.1/setup.py       2018-12-18 21:53:58.000000000 
+0100
+++ new/google-cloud-core-1.0.0/setup.py        2019-05-15 23:20:02.000000000 
+0200
@@ -22,13 +22,13 @@
 
 name = "google-cloud-core"
 description = "Google Cloud API client core library"
-version = "0.29.1"
+version = "1.0.0"
 # Should be one of:
 # 'Development Status :: 3 - Alpha'
 # 'Development Status :: 4 - Beta'
 # 'Development Status :: 5 - Production/Stable'
 release_status = "Development Status :: 4 - Beta"
-dependencies = ["google-api-core >= 1.0.0, < 2.0.0dev"]
+dependencies = ["google-api-core >= 1.11.0, < 2.0.0dev"]
 extras = {"grpc": "grpcio >= 1.8.2"}
 
 
@@ -69,7 +69,6 @@
         "Programming Language :: Python :: 2",
         "Programming Language :: Python :: 2.7",
         "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.4",
         "Programming Language :: Python :: 3.5",
         "Programming Language :: Python :: 3.6",
         'Programming Language :: Python :: 3.7',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-cloud-core-0.29.1/tests/unit/test__http.py 
new/google-cloud-core-1.0.0/tests/unit/test__http.py
--- old/google-cloud-core-0.29.1/tests/unit/test__http.py       2018-12-18 
21:53:58.000000000 +0100
+++ new/google-cloud-core-1.0.0/tests/unit/test__http.py        2019-05-15 
23:20:02.000000000 +0200
@@ -14,6 +14,7 @@
 
 import json
 import unittest
+import warnings
 
 import mock
 import requests
@@ -30,10 +31,90 @@
     def _make_one(self, *args, **kw):
         return self._get_target_class()(*args, **kw)
 
-    def test_constructor(self):
+    def test_constructor_defaults(self):
+        from google.api_core.client_info import ClientInfo
+
         client = object()
         conn = self._make_one(client)
         self.assertIs(conn._client, client)
+        self.assertIsInstance(conn._client_info, ClientInfo)
+
+    def test_constructor_explicit(self):
+        client = object()
+        client_info = object()
+        conn = self._make_one(client, client_info=client_info)
+        self.assertIs(conn._client, client)
+
+    def test_user_agent_all_caps_getter_deprecated(self):
+        client = object()
+        conn = self._make_one(client)
+
+        with mock.patch.object(warnings, "warn", autospec=True) as warn:
+            self.assertEqual(conn.USER_AGENT, 
conn._client_info.to_user_agent())
+
+        warn.assert_called_once_with(mock.ANY, DeprecationWarning, 
stacklevel=2)
+
+    def test_user_agent_all_caps_setter_deprecated(self):
+        conn = self._make_one(object())
+        user_agent = "testing"
+
+        with mock.patch.object(warnings, "warn", autospec=True) as warn:
+            conn.USER_AGENT = user_agent
+
+        self.assertEqual(conn._client_info.user_agent, user_agent)
+        warn.assert_called_once_with(mock.ANY, DeprecationWarning, 
stacklevel=2)
+
+    def test_user_agent_getter(self):
+        conn = self._make_one(object())
+        self.assertEqual(conn.user_agent, conn._client_info.to_user_agent())
+
+    def test_user_agent_setter(self):
+        conn = self._make_one(object())
+        user_agent = "testing"
+        conn.user_agent = user_agent
+        self.assertEqual(conn._client_info.user_agent, user_agent)
+
+    def test_extra_headers_all_caps_getter_deprecated(self):
+        client = object()
+        conn = self._make_one(client)
+        expected = conn._extra_headers = {"foo": "bar"}
+
+        with mock.patch.object(warnings, "warn", autospec=True) as warn:
+            self.assertEqual(conn._EXTRA_HEADERS, expected)
+
+        warn.assert_called_once_with(mock.ANY, DeprecationWarning, 
stacklevel=2)
+
+    def test_extra_headers_all_caps_setter_deprecated(self):
+        conn = self._make_one(object())
+        extra_headers = {"foo": "bar"}
+
+        with mock.patch.object(warnings, "warn", autospec=True) as warn:
+            conn._EXTRA_HEADERS = extra_headers
+
+        self.assertEqual(conn._extra_headers, extra_headers)
+        warn.assert_called_once_with(mock.ANY, DeprecationWarning, 
stacklevel=2)
+
+    def test_extra_headers_getter_default(self):
+        conn = self._make_one(object())
+        expected = {}
+        self.assertEqual(conn.extra_headers, expected)
+
+    def test_extra_headers_getter_overridden(self):
+        conn = self._make_one(object())
+        expected = conn._extra_headers = {"foo": "bar"}
+        self.assertEqual(conn.extra_headers, expected)
+
+    def test_extra_headers_item_assignment(self):
+        conn = self._make_one(object())
+        expected = {"foo": "bar"}
+        conn.extra_headers["foo"] = "bar"
+        self.assertEqual(conn._extra_headers, expected)
+
+    def test_extra_headers_setter(self):
+        conn = self._make_one(object())
+        expected = {"foo": "bar"}
+        conn.extra_headers = expected
+        self.assertEqual(conn._extra_headers, expected)
 
     def test_credentials_property(self):
         client = mock.Mock(spec=["_credentials"])
@@ -45,15 +126,6 @@
         conn = self._make_one(client)
         self.assertIs(conn.http, client._http)
 
-    def test_user_agent_format(self):
-        from pkg_resources import get_distribution
-
-        expected_ua = "gcloud-python/{0}".format(
-            get_distribution("google-cloud-core").version
-        )
-        conn = self._make_one(object())
-        self.assertEqual(conn.USER_AGENT, expected_ua)
-
 
 def make_response(status=http_client.OK, content=b"", headers={}):
     response = requests.Response()
@@ -127,6 +199,8 @@
         self.assertEqual(parms["qux"], ["quux", "corge"])
 
     def test__make_request_no_data_no_content_type_no_headers(self):
+        from google.cloud._http import CLIENT_INFO_HEADER
+
         http = make_requests_session([make_response()])
         client = mock.Mock(_http=http, spec=["_http"])
         conn = self._make_one(client)
@@ -137,12 +211,18 @@
         self.assertEqual(response.status_code, http_client.OK)
         self.assertEqual(response.content, b"")
 
-        expected_headers = {"Accept-Encoding": "gzip", "User-Agent": 
conn.USER_AGENT}
+        expected_headers = {
+            "Accept-Encoding": "gzip",
+            "User-Agent": conn.user_agent,
+            CLIENT_INFO_HEADER: conn.user_agent,
+        }
         http.request.assert_called_once_with(
             method="GET", url=url, headers=expected_headers, data=None
         )
 
     def test__make_request_w_data_no_extra_headers(self):
+        from google.cloud._http import CLIENT_INFO_HEADER
+
         http = make_requests_session([make_response()])
         client = mock.Mock(_http=http, spec=["_http"])
         conn = self._make_one(client)
@@ -154,13 +234,16 @@
         expected_headers = {
             "Accept-Encoding": "gzip",
             "Content-Type": "application/json",
-            "User-Agent": conn.USER_AGENT,
+            "User-Agent": conn.user_agent,
+            CLIENT_INFO_HEADER: conn.user_agent,
         }
         http.request.assert_called_once_with(
             method="GET", url=url, headers=expected_headers, data=data
         )
 
     def test__make_request_w_extra_headers(self):
+        from google.cloud._http import CLIENT_INFO_HEADER
+
         http = make_requests_session([make_response()])
         client = mock.Mock(_http=http, spec=["_http"])
         conn = self._make_one(client)
@@ -171,13 +254,16 @@
         expected_headers = {
             "Accept-Encoding": "gzip",
             "X-Foo": "foo",
-            "User-Agent": conn.USER_AGENT,
+            "User-Agent": conn.user_agent,
+            CLIENT_INFO_HEADER: conn.user_agent,
         }
         http.request.assert_called_once_with(
             method="GET", url=url, headers=expected_headers, data=None
         )
 
     def test_api_request_defaults(self):
+        from google.cloud._http import CLIENT_INFO_HEADER
+
         http = make_requests_session(
             [make_response(content=b"{}", headers=self.JSON_HEADERS)]
         )
@@ -187,7 +273,11 @@
 
         self.assertEqual(conn.api_request("GET", path), {})
 
-        expected_headers = {"Accept-Encoding": "gzip", "User-Agent": 
conn.USER_AGENT}
+        expected_headers = {
+            "Accept-Encoding": "gzip",
+            "User-Agent": conn.user_agent,
+            CLIENT_INFO_HEADER: conn.user_agent,
+        }
         expected_url = "{base}/mock/{version}{path}".format(
             base=conn.API_BASE_URL, version=conn.API_VERSION, path=path
         )
@@ -215,6 +305,7 @@
     def test_api_request_w_query_params(self):
         from six.moves.urllib.parse import parse_qs
         from six.moves.urllib.parse import urlsplit
+        from google.cloud._http import CLIENT_INFO_HEADER
 
         http = make_requests_session([self.EMPTY_JSON_RESPONSE])
         client = mock.Mock(_http=http, spec=["_http"])
@@ -224,7 +315,11 @@
 
         self.assertEqual(result, {})
 
-        expected_headers = {"Accept-Encoding": "gzip", "User-Agent": 
conn.USER_AGENT}
+        expected_headers = {
+            "Accept-Encoding": "gzip",
+            "User-Agent": conn.user_agent,
+            CLIENT_INFO_HEADER: conn.user_agent,
+        }
         http.request.assert_called_once_with(
             method="GET", url=mock.ANY, headers=expected_headers, data=None
         )
@@ -240,6 +335,8 @@
         self.assertEqual(parms["baz"], ["qux", "quux"])
 
     def test_api_request_w_headers(self):
+        from google.cloud._http import CLIENT_INFO_HEADER
+
         http = make_requests_session([self.EMPTY_JSON_RESPONSE])
         client = mock.Mock(_http=http, spec=["_http"])
         conn = self._make_mock_one(client)
@@ -249,18 +346,21 @@
 
         expected_headers = {
             "Accept-Encoding": "gzip",
-            "User-Agent": conn.USER_AGENT,
+            "User-Agent": conn.user_agent,
             "X-Foo": "bar",
+            CLIENT_INFO_HEADER: conn.user_agent,
         }
         http.request.assert_called_once_with(
             method="GET", url=mock.ANY, headers=expected_headers, data=None
         )
 
     def test_api_request_w_extra_headers(self):
+        from google.cloud._http import CLIENT_INFO_HEADER
+
         http = make_requests_session([self.EMPTY_JSON_RESPONSE])
         client = mock.Mock(_http=http, spec=["_http"])
         conn = self._make_mock_one(client)
-        conn._EXTRA_HEADERS = {
+        conn.extra_headers = {
             "X-Baz": "dax-quux",
             "X-Foo": "not-bar",  # Collision with ``headers``.
         }
@@ -271,15 +371,18 @@
 
         expected_headers = {
             "Accept-Encoding": "gzip",
-            "User-Agent": conn.USER_AGENT,
+            "User-Agent": conn.user_agent,
             "X-Foo": "not-bar",  # The one passed-in is overridden.
             "X-Baz": "dax-quux",
+            CLIENT_INFO_HEADER: conn.user_agent,
         }
         http.request.assert_called_once_with(
             method="GET", url=mock.ANY, headers=expected_headers, data=None
         )
 
     def test_api_request_w_data(self):
+        from google.cloud._http import CLIENT_INFO_HEADER
+
         http = make_requests_session([self.EMPTY_JSON_RESPONSE])
         client = mock.Mock(_http=http, spec=["_http"])
         conn = self._make_mock_one(client)
@@ -292,7 +395,8 @@
         expected_headers = {
             "Accept-Encoding": "gzip",
             "Content-Type": "application/json",
-            "User-Agent": conn.USER_AGENT,
+            "User-Agent": conn.user_agent,
+            CLIENT_INFO_HEADER: conn.user_agent,
         }
 
         http.request.assert_called_once_with(


Reply via email to