Class MockAwsClustersConnection (2.21.0)

A class to mock AwsClustersConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type AwsClustersClient. To do so, construct an object of type AwsClustersClient 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
TypeDescription
Options

virtual CreateAwsCluster(google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkemulticloud::v1::AwsCluster > >

virtual UpdateAwsCluster(google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkemulticloud::v1::AwsCluster > >

virtual GetAwsCluster(google::cloud::gkemulticloud::v1::GetAwsClusterRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::GetAwsClusterRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkemulticloud::v1::AwsCluster >

virtual ListAwsClusters(google::cloud::gkemulticloud::v1::ListAwsClustersRequest)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::ListAwsClustersRequest
Returns
TypeDescription
StreamRange< google::cloud::gkemulticloud::v1::AwsCluster >

virtual DeleteAwsCluster(google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkemulticloud::v1::OperationMetadata > >

virtual GenerateAwsClusterAgentToken(google::cloud::gkemulticloud::v1::GenerateAwsClusterAgentTokenRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::GenerateAwsClusterAgentTokenRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkemulticloud::v1::GenerateAwsClusterAgentTokenResponse >

virtual GenerateAwsAccessToken(google::cloud::gkemulticloud::v1::GenerateAwsAccessTokenRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::GenerateAwsAccessTokenRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkemulticloud::v1::GenerateAwsAccessTokenResponse >

virtual CreateAwsNodePool(google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkemulticloud::v1::AwsNodePool > >

virtual UpdateAwsNodePool(google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkemulticloud::v1::AwsNodePool > >

virtual RollbackAwsNodePoolUpdate(google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::RollbackAwsNodePoolUpdateRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkemulticloud::v1::AwsNodePool > >

virtual GetAwsNodePool(google::cloud::gkemulticloud::v1::GetAwsNodePoolRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::GetAwsNodePoolRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkemulticloud::v1::AwsNodePool >

virtual ListAwsNodePools(google::cloud::gkemulticloud::v1::ListAwsNodePoolsRequest)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::ListAwsNodePoolsRequest
Returns
TypeDescription
StreamRange< google::cloud::gkemulticloud::v1::AwsNodePool >

virtual DeleteAwsNodePool(google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::gkemulticloud::v1::OperationMetadata > >

virtual GetAwsOpenIdConfig(google::cloud::gkemulticloud::v1::GetAwsOpenIdConfigRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::GetAwsOpenIdConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkemulticloud::v1::AwsOpenIdConfig >

virtual GetAwsJsonWebKeys(google::cloud::gkemulticloud::v1::GetAwsJsonWebKeysRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::GetAwsJsonWebKeysRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkemulticloud::v1::AwsJsonWebKeys >

virtual GetAwsServerConfig(google::cloud::gkemulticloud::v1::GetAwsServerConfigRequest const &)

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

Parameter
NameDescription
request google::cloud::gkemulticloud::v1::GetAwsServerConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::gkemulticloud::v1::AwsServerConfig >