Send feedback
Class MockAwsClustersConnection (2.17.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.17.0 keyboard_arrow_down
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
Type
Description
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
Name
Description
request
google::cloud::gkemulticloud::v1::CreateAwsClusterRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::gkemulticloud::v1::UpdateAwsClusterRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::gkemulticloud::v1::GetAwsClusterRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::gkemulticloud::v1::ListAwsClustersRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::gkemulticloud::v1::DeleteAwsClusterRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::gkemulticloud::v1::OperationMetadata > >
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
Name
Description
request
google::cloud::gkemulticloud::v1::GenerateAwsAccessTokenRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::gkemulticloud::v1::CreateAwsNodePoolRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::gkemulticloud::v1::UpdateAwsNodePoolRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::gkemulticloud::v1::GetAwsNodePoolRequest const &
Returns
Type
Description
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
Name
Description
request
google::cloud::gkemulticloud::v1::ListAwsNodePoolsRequest
Returns
Type
Description
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
Name
Description
request
google::cloud::gkemulticloud::v1::DeleteAwsNodePoolRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::gkemulticloud::v1::OperationMetadata > >
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
Name
Description
request
google::cloud::gkemulticloud::v1::GetAwsServerConfigRequest const &
Returns
Type
Description
StatusOr< google::cloud::gkemulticloud::v1::AwsServerConfig >
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]