Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPIClients ¶
type MockAPIClients struct { MockAuth *mock_auth.MockAuthServiceClient MockProfile *mock_profilepb.MockProfileServiceClient MockOrg *mock_profilepb.MockOrgServiceClient MockVzDeployKey *mock_vzmgrpb.MockVZDeploymentKeyServiceClient MockAPIKey *mock_auth.MockAPIKeyServiceClient MockVzMgr *mock_vzmgrpb.MockVZMgrServiceClient MockArtifact *mock_artifacttrackerpb.MockArtifactTrackerClient MockConfigMgr *mock_configmanagerpb.MockConfigManagerServiceClient MockPlugin *mock_pluginpb.MockPluginServiceClient MockDataRetentionPlugin *mock_pluginpb.MockDataRetentionPluginServiceClient }
MockAPIClients is a struct containing all of the mock clients for the api env.
func CreateTestAPIEnv ¶
func CreateTestAPIEnv(t *testing.T) (apienv.APIEnv, *MockAPIClients, func())
CreateTestAPIEnv creates a test environment and mock clients.
type MockCloudClients ¶
type MockCloudClients struct { MockArtifact *mock_cloudpb.MockArtifactTrackerServer MockVizierClusterInfo *mock_cloudpb.MockVizierClusterInfoServer MockVizierDeployKey *mock_cloudpb.MockVizierDeploymentKeyManagerServer MockScriptMgr *mock_cloudpb.MockScriptMgrServer MockAutocomplete *mock_cloudpb.MockAutocompleteServiceServer MockOrg *mock_cloudpb.MockOrganizationServiceServer MockUser *mock_cloudpb.MockUserServiceServer MockAPIKey *mock_cloudpb.MockAPIKeyManagerServer MockPlugin *mock_cloudpb.MockPluginServiceServer }
MockCloudClients provides the mock grpc clients for the graphql test env.
func CreateTestGraphQLEnv ¶
func CreateTestGraphQLEnv(t *testing.T) (controllers.GraphQLEnv, *MockCloudClients, func())
CreateTestGraphQLEnv creates a test graphql environment and mock clients.
Click to show internal directories.
Click to hide internal directories.