After PR #5594 was merged, the system tests fail
_______ TestSystemMetricService.test_list_monitored_resource_descriptors _______
self = <test_system_metric_service_v3.TestSystemMetricService object at 0x7f4ac8fe7090>
def test_list_monitored_resource_descriptors(self):
project_id = os.environ['PROJECT_ID']
> client = monitoring_v3.MetricServiceClient()
tests/system/gapic/v3/test_system_metric_service_v3.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
google/cloud/monitoring_v3/gapic/metric_service_client.py:154: in __init__
credentials=credentials,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <google.cloud.monitoring_v3.gapic.transports.metric_service_grpc_transport.MetricServiceGrpcTransport object at 0x7f4ac8fe71d0>
channel = None, credentials = None, address = 'monitoring.googleapis.com:443'
def __init__(self,
channel=None,
credentials=None,
address='monitoring.googleapis.com:443'):
"""Instantiate the transport class.
Args:
channel (grpc.Channel): A ``Channel`` instance through
which to make calls. This argument is mutually exclusive
with ``credentials``; providing both will raise an exception.
credentials (google.auth.credentials.Credentials): The
authorization credentials to attach to requests. These
credentials identify this application to the service. If none
are specified, the client will attempt to ascertain the
credentials from the environment.
address (str): The address where the service is hosted.
"""
# If both `channel` and `credentials` are specified, raise an
# exception (channels come with credentials baked in already).
if channel is not None and credentials is not None:
raise ValueError(
'The `channel` and `credentials` arguments are mutually '
'exclusive.', )
# Create the channel.
if channel is None:
channel = self.create_channel(
address=address,
credentials=credentials,
options={
'grpc.max_send_message_length': -1,
> 'grpc.max_receive_message_length': -1,
}.items(),
)
E TypeError: create_channel() got an unexpected keyword argument 'options'
google/cloud/monitoring_v3/gapic/transports/metric_service_grpc_transport.py:68: TypeError
After PR #5594 was merged, the system tests fail