Class MockConnectorsConnection (2.20.0)

A class to mock ConnectorsConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type ConnectorsClient. To do so, construct an object of type ConnectorsClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

See Also

This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client and *Connection.

Functions

virtual options()

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Returns
Type Description
Options

virtual ListConnections(google::cloud::connectors::v1::ListConnectionsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::ListConnectionsRequest
Returns
Type Description
StreamRange< google::cloud::connectors::v1::Connection >

virtual GetConnection(google::cloud::connectors::v1::GetConnectionRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::GetConnectionRequest const &
Returns
Type Description
StatusOr< google::cloud::connectors::v1::Connection >

virtual CreateConnection(google::cloud::connectors::v1::CreateConnectionRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::CreateConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::connectors::v1::Connection > >

virtual UpdateConnection(google::cloud::connectors::v1::UpdateConnectionRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::UpdateConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::connectors::v1::Connection > >

virtual DeleteConnection(google::cloud::connectors::v1::DeleteConnectionRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::DeleteConnectionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::connectors::v1::OperationMetadata > >

virtual ListProviders(google::cloud::connectors::v1::ListProvidersRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::ListProvidersRequest
Returns
Type Description
StreamRange< google::cloud::connectors::v1::Provider >

virtual GetProvider(google::cloud::connectors::v1::GetProviderRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::GetProviderRequest const &
Returns
Type Description
StatusOr< google::cloud::connectors::v1::Provider >

virtual ListConnectors(google::cloud::connectors::v1::ListConnectorsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::ListConnectorsRequest
Returns
Type Description
StreamRange< google::cloud::connectors::v1::Connector >

virtual GetConnector(google::cloud::connectors::v1::GetConnectorRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::GetConnectorRequest const &
Returns
Type Description
StatusOr< google::cloud::connectors::v1::Connector >

virtual ListConnectorVersions(google::cloud::connectors::v1::ListConnectorVersionsRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::ListConnectorVersionsRequest
Returns
Type Description
StreamRange< google::cloud::connectors::v1::ConnectorVersion >

virtual GetConnectorVersion(google::cloud::connectors::v1::GetConnectorVersionRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::GetConnectorVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::connectors::v1::ConnectorVersion >

virtual GetConnectionSchemaMetadata(google::cloud::connectors::v1::GetConnectionSchemaMetadataRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::GetConnectionSchemaMetadataRequest const &
Returns
Type Description
StatusOr< google::cloud::connectors::v1::ConnectionSchemaMetadata >

virtual RefreshConnectionSchemaMetadata(google::cloud::connectors::v1::RefreshConnectionSchemaMetadataRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::RefreshConnectionSchemaMetadataRequest const &
Returns
Type Description
future< StatusOr< google::cloud::connectors::v1::ConnectionSchemaMetadata > >

virtual ListRuntimeEntitySchemas(google::cloud::connectors::v1::ListRuntimeEntitySchemasRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::ListRuntimeEntitySchemasRequest
Returns
Type Description
StreamRange< google::cloud::connectors::v1::RuntimeEntitySchema >

virtual ListRuntimeActionSchemas(google::cloud::connectors::v1::ListRuntimeActionSchemasRequest)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::ListRuntimeActionSchemasRequest
Returns
Type Description
StreamRange< google::cloud::connectors::v1::RuntimeActionSchema >

virtual GetRuntimeConfig(google::cloud::connectors::v1::GetRuntimeConfigRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::GetRuntimeConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::connectors::v1::RuntimeConfig >

virtual GetGlobalSettings(google::cloud::connectors::v1::GetGlobalSettingsRequest const &)

This function is implemented using gMock's MOCK_METHOD(). Consult the gMock documentation to use this mock in your tests.

Parameter
Name Description
request google::cloud::connectors::v1::GetGlobalSettingsRequest const &
Returns
Type Description
StatusOr< google::cloud::connectors::v1::Settings >