Documentation ¶
Index ¶
- Constants
- Variables
- func AddGroupUser(groupResource, groupName, terraformUserID string) sdk.TestCheckFunc
- func AddResourceGroup(resourceName, groupName string) sdk.TestCheckFunc
- func AddResourceServiceAccount(resourceName, serviceAccountName string) sdk.TestCheckFunc
- func CheckGroupUsersLen(resourceName string, expectedUsersLen int) sdk.TestCheckFunc
- func CheckImportState(attributes map[string]string) func(data []*terraform.InstanceState) error
- func CheckResourceGroupsLen(resourceName string, expectedGroupsLen int) sdk.TestCheckFunc
- func CheckResourceServiceAccountsLen(resourceName string, expectedServiceAccountsLen int) sdk.TestCheckFunc
- func CheckSoc2bdConnectorDestroy(s *terraform.State) error
- func CheckSoc2bdGroupDestroy(s *terraform.State) error
- func CheckSoc2bdRemoteNetworkDestroy(s *terraform.State) error
- func CheckSoc2bdResourceActiveState(resourceName string, expectedActiveState bool) sdk.TestCheckFunc
- func CheckSoc2bdResourceDestroy(s *terraform.State) error
- func CheckSoc2bdResourceDoesNotExists(resourceName string) sdk.TestCheckFunc
- func CheckSoc2bdResourceExists(resourceName string) sdk.TestCheckFunc
- func CheckSoc2bdServiceAccountDestroy(s *terraform.State) error
- func CheckSoc2bdServiceKeyStatus(resourceName string, expectedStatus string) sdk.TestCheckFunc
- func CheckSoc2bdUserDestroy(s *terraform.State) error
- func ComposeTestCheckFunc(checkFuncs ...sdk.TestCheckFunc) sdk.TestCheckFunc
- func DeactivateSoc2bdResource(resourceName string) sdk.TestCheckFunc
- func DeleteGroupUser(groupResource, terraformUserID string) sdk.TestCheckFunc
- func DeleteResourceGroup(resourceName, groupName string) sdk.TestCheckFunc
- func DeleteResourceServiceAccount(resourceName, serviceAccountName string) sdk.TestCheckFunc
- func DeleteSoc2bdResource(resourceName, resourceType string) sdk.TestCheckFunc
- func ErrGroupsLenMismatch(expected, actual int) error
- func ErrServiceAccountsLenMismatch(expected, actual int) error
- func ErrUsersLenMismatch(expected, actual int) error
- func GetTestUsers() ([]*model.User, error)
- func ListSecurityPolicies() ([]*model.SecurityPolicy, error)
- func PreCheck(t *testing.T)
- func ResourceName(resource, name string) string
- func RevokeSoc2bdServiceKey(resourceName string) sdk.TestCheckFunc
- func SetPageLimit(limit int)
- func TerraformConnector(name string) string
- func TerraformConnectorTokens(name string) string
- func TerraformGroup(name string) string
- func TerraformRemoteNetwork(name string) string
- func TerraformResource(name string) string
- func TerraformServiceAccount(name string) string
- func TerraformServiceKey(name string) string
- func TerraformUser(name string) string
- func WaitTestFunc() sdk.TestCheckFunc
Constants ¶
View Source
const WaitDuration = 500 * time.Millisecond
Variables ¶
View Source
var ( ErrResourceIDNotSet = errors.New("id not set") ErrResourceNotFound = errors.New("resource not found") ErrResourceStillPresent = errors.New("resource still present") ErrResourceFoundInState = errors.New("this resource should not be here") ErrUnknownResourceType = errors.New("unknown resource type") ErrClientNotInited = errors.New("meta client not inited") ErrSecurityPoliciesNotFound = errors.New("security policies not found") )
View Source
var Provider *schema.Provider //nolint:gochecknoglobals
View Source
var ProviderFactories map[string]func() (*schema.Provider, error) //nolint:gochecknoglobals
Functions ¶
func AddGroupUser ¶
func AddGroupUser(groupResource, groupName, terraformUserID string) sdk.TestCheckFunc
func AddResourceGroup ¶
func AddResourceGroup(resourceName, groupName string) sdk.TestCheckFunc
func AddResourceServiceAccount ¶
func AddResourceServiceAccount(resourceName, serviceAccountName string) sdk.TestCheckFunc
func CheckGroupUsersLen ¶
func CheckGroupUsersLen(resourceName string, expectedUsersLen int) sdk.TestCheckFunc
func CheckImportState ¶
func CheckImportState(attributes map[string]string) func(data []*terraform.InstanceState) error
func CheckResourceGroupsLen ¶
func CheckResourceGroupsLen(resourceName string, expectedGroupsLen int) sdk.TestCheckFunc
func CheckResourceServiceAccountsLen ¶
func CheckResourceServiceAccountsLen(resourceName string, expectedServiceAccountsLen int) sdk.TestCheckFunc
func CheckSoc2bdGroupDestroy ¶
func CheckSoc2bdResourceActiveState ¶
func CheckSoc2bdResourceActiveState(resourceName string, expectedActiveState bool) sdk.TestCheckFunc
func CheckSoc2bdResourceDoesNotExists ¶
func CheckSoc2bdResourceDoesNotExists(resourceName string) sdk.TestCheckFunc
func CheckSoc2bdResourceExists ¶
func CheckSoc2bdResourceExists(resourceName string) sdk.TestCheckFunc
func CheckSoc2bdServiceKeyStatus ¶
func CheckSoc2bdServiceKeyStatus(resourceName string, expectedStatus string) sdk.TestCheckFunc
func CheckSoc2bdUserDestroy ¶
func ComposeTestCheckFunc ¶
func ComposeTestCheckFunc(checkFuncs ...sdk.TestCheckFunc) sdk.TestCheckFunc
func DeactivateSoc2bdResource ¶
func DeactivateSoc2bdResource(resourceName string) sdk.TestCheckFunc
func DeleteGroupUser ¶
func DeleteGroupUser(groupResource, terraformUserID string) sdk.TestCheckFunc
func DeleteResourceGroup ¶
func DeleteResourceGroup(resourceName, groupName string) sdk.TestCheckFunc
func DeleteResourceServiceAccount ¶
func DeleteResourceServiceAccount(resourceName, serviceAccountName string) sdk.TestCheckFunc
func DeleteSoc2bdResource ¶
func DeleteSoc2bdResource(resourceName, resourceType string) sdk.TestCheckFunc
func ErrGroupsLenMismatch ¶
func ErrUsersLenMismatch ¶
func GetTestUsers ¶
func ListSecurityPolicies ¶
func ListSecurityPolicies() ([]*model.SecurityPolicy, error)
func ResourceName ¶
func RevokeSoc2bdServiceKey ¶
func RevokeSoc2bdServiceKey(resourceName string) sdk.TestCheckFunc
func SetPageLimit ¶
func SetPageLimit(limit int)
func TerraformConnector ¶
func TerraformGroup ¶
func TerraformRemoteNetwork ¶
func TerraformResource ¶
func TerraformServiceAccount ¶
func TerraformServiceKey ¶
func TerraformUser ¶
func WaitTestFunc ¶
func WaitTestFunc() sdk.TestCheckFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.