Documentation ¶
Index ¶
- func TestServices(t *testing.T, s ServiceConfigProviders)
- type GSuiteAddOnsAuthorizationTestSuiteConfig
- type GSuiteAddOnsDeploymentTestSuiteConfig
- type GSuiteAddOnsInstallStatusTestSuiteConfig
- type GSuiteAddOnsTestSuite
- func (fx GSuiteAddOnsTestSuite) TestAuthorization(ctx context.Context, options GSuiteAddOnsAuthorizationTestSuiteConfig)
- func (fx GSuiteAddOnsTestSuite) TestDeployment(ctx context.Context, options GSuiteAddOnsDeploymentTestSuiteConfig)
- func (fx GSuiteAddOnsTestSuite) TestInstallStatus(ctx context.Context, options GSuiteAddOnsInstallStatusTestSuiteConfig)
- type GSuiteAddOnsTestSuiteConfigProvider
- type ServiceConfigProviders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestServices ¶ added in v0.28.0
func TestServices(t *testing.T, s ServiceConfigProviders)
TestServices is the main entrypoint for starting the AIP tests for all services.
Types ¶
type GSuiteAddOnsAuthorizationTestSuiteConfig ¶ added in v0.17.0
type GSuiteAddOnsAuthorizationTestSuiteConfig struct { // Service should return the service that should be tested. // The service will be used for several tests. Service func() GSuiteAddOnsServer // Context should return a new context. // The context will be used for several tests. Context func() context.Context // CreateResource should create a Authorization and return it. // If the field is not set, some tests will be skipped. // // This method is generated because service does not expose a Create // method (or it does not comply with AIP). CreateResource func(ctx context.Context) (*Authorization, error) // Patterns of tests to skip. // For example if a service has a Get method: // Skip: ["Get"] will skip all tests for Get. // Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get. Skip []string // contains filtered or unexported fields }
type GSuiteAddOnsDeploymentTestSuiteConfig ¶ added in v0.17.0
type GSuiteAddOnsDeploymentTestSuiteConfig struct { // Service should return the service that should be tested. // The service will be used for several tests. Service func() GSuiteAddOnsServer // Context should return a new context. // The context will be used for several tests. Context func() context.Context // The parents to use when creating resources. // At least one parent needs to be set. Depending on methods available on the resource, // more may be required. If insufficient number of parents are // provided the test will fail. Parents []string // Create should return a resource which is valid to create, i.e. // all required fields set. Create func(parent string) *Deployment // Patterns of tests to skip. // For example if a service has a Get method: // Skip: ["Get"] will skip all tests for Get. // Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get. Skip []string // contains filtered or unexported fields }
type GSuiteAddOnsInstallStatusTestSuiteConfig ¶ added in v0.17.0
type GSuiteAddOnsInstallStatusTestSuiteConfig struct { // Service should return the service that should be tested. // The service will be used for several tests. Service func() GSuiteAddOnsServer // Context should return a new context. // The context will be used for several tests. Context func() context.Context // The parents to use when creating resources. // At least one parent needs to be set. Depending on methods available on the resource, // more may be required. If insufficient number of parents are // provided the test will fail. Parents []string // CreateResource should create a InstallStatus and return it. // If the field is not set, some tests will be skipped. // // This method is generated because service does not expose a Create // method (or it does not comply with AIP). CreateResource func(ctx context.Context, parent string) (*InstallStatus, error) // Patterns of tests to skip. // For example if a service has a Get method: // Skip: ["Get"] will skip all tests for Get. // Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get. Skip []string // contains filtered or unexported fields }
type GSuiteAddOnsTestSuite ¶
func (GSuiteAddOnsTestSuite) TestAuthorization ¶
func (fx GSuiteAddOnsTestSuite) TestAuthorization(ctx context.Context, options GSuiteAddOnsAuthorizationTestSuiteConfig)
func (GSuiteAddOnsTestSuite) TestDeployment ¶
func (fx GSuiteAddOnsTestSuite) TestDeployment(ctx context.Context, options GSuiteAddOnsDeploymentTestSuiteConfig)
func (GSuiteAddOnsTestSuite) TestInstallStatus ¶
func (fx GSuiteAddOnsTestSuite) TestInstallStatus(ctx context.Context, options GSuiteAddOnsInstallStatusTestSuiteConfig)
type GSuiteAddOnsTestSuiteConfigProvider ¶ added in v0.27.0
type GSuiteAddOnsTestSuiteConfigProvider interface { // GSuiteAddOnsAuthorization should return a config, or nil, which means that the tests will be skipped. GSuiteAddOnsAuthorization(t *testing.T) *GSuiteAddOnsAuthorizationTestSuiteConfig // GSuiteAddOnsDeployment should return a config, or nil, which means that the tests will be skipped. GSuiteAddOnsDeployment(t *testing.T) *GSuiteAddOnsDeploymentTestSuiteConfig // GSuiteAddOnsInstallStatus should return a config, or nil, which means that the tests will be skipped. GSuiteAddOnsInstallStatus(t *testing.T) *GSuiteAddOnsInstallStatusTestSuiteConfig }
GSuiteAddOnsTestSuiteConfigProvider is the interface to implement to decide which resources that should be tested and how it's configured.
type ServiceConfigProviders ¶ added in v0.28.0
type ServiceConfigProviders interface { GSuiteAddOnsTestSuiteConfigProvider }
ServiceConfigProviders embeds providers for all services.
Click to show internal directories.
Click to hide internal directories.