Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

samples.snippets.snippets_notification_test: test_update_notification_config failed #59

@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Build Cop Bot documentation.

If I'm commenting on this issue too often, add the buildcop: quiet label and
I will stop commenting.


commit: dbb9311
buildURL: Build Status, Sponge
status: failed

Test output
args = (notification_config {
  name: "organizations/1081635000895/notificationConfigs/new-notification-pytest0552866a-f40e-1..."INACTIVE\""
  }
}
update_mask {
  paths: "description"
  paths: "pubsub_topic"
  paths: "streaming_config.fitler"
}
,)
kwargs = {'metadata': [('x-goog-api-client', 'gl-python/3.6.10 grpc/1.32.0 gax/1.22.2 gapic/0.7.0')], 'timeout': 59.0}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:57:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7fc6478e9048>
request = notification_config {
name: "organizations/1081635000895/notificationConfigs/new-notification-pytest0552866a-f40e-11... "INACTIVE""
}
}
update_mask {
paths: "description"
paths: "pubsub_topic"
paths: "streaming_config.fitler"
}

timeout = 59.0
metadata = [('x-goog-api-client', 'gl-python/3.6.10 grpc/1.32.0 gax/1.22.2 gapic/0.7.0')]
credentials = None, wait_for_ready = None, compression = None

def __call__(self,
             request,
             timeout=None,
             metadata=None,
             credentials=None,
             wait_for_ready=None,
             compression=None):
    state, call, = self._blocking(request, timeout, metadata, credentials,
                                  wait_for_ready, compression)
  return _end_unary_response_blocking(state, call, False, None)

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:826:


state = <grpc._channel._RPCState object at 0x7fc6478ee358>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fc6478d6a48>
with_call = False, deadline = None

def _end_unary_response_blocking(state, call, with_call, deadline):
    if state.code is grpc.StatusCode.OK:
        if with_call:
            rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
            return state.response, rendezvous
        else:
            return state.response
    else:
      raise _InactiveRpcError(state)

E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.INVALID_ARGUMENT
E details = "Request contains an invalid argument."
E debug_error_string = "{"created":"@1599815200.848404573","description":"Error received from peer ipv4:74.125.142.95:443","file":"src/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Request contains an invalid argument.","grpc_status":3}"
E >

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:729: _InactiveRpcError

The above exception was the direct cause of the following exception:

new_notification_config_for_update = name: "organizations/1081635000895/notificationConfigs/new-notification-pytest0552866a-f40e-11ea-98cc-42010a8a007c"
de...pic"
service_account: "service-org-1081635000895@gcp-sa-scc-notification.iam.gserviceaccount.com"
streaming_config {
}

def test_update_notification_config(new_notification_config_for_update):
    updated_config = snippets_notification_configs.update_notification_config(
      ORG_ID, UPDATE_CONFIG_ID, PUBSUB_TOPIC
    )

snippets_notification_test.py:134:


snippets_notification_configs.py:137: in update_notification_config
update_mask=field_mask,
../../google/cloud/securitycenter_v1/gapic/security_center_client.py:2571: in update_notification_config
request, retry=retry, timeout=timeout, metadata=metadata
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:286: in retry_wrapped_func
on_error=on_error,
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:184: in retry_target
return target()
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/timeout.py:214: in func_with_timeout
return func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:59: in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)


value = None
from_value = <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an ...c/core/lib/surface/call.cc","file_line":1061,"grpc_message":"Request contains an invalid argument.","grpc_status":3}"

???
E google.api_core.exceptions.InvalidArgument: 400 Request contains an invalid argument.

:3: InvalidArgument

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: securitycenterIssues related to the googleapis/python-securitycenter API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions