crudtest

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2020 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGroup

func CreateGroup(t *testing.T, gType string) string

func CreatePolicy

func CreatePolicy(t *testing.T) models.Policy

func CreateService

func CreateService(t *testing.T)

func CreateUser

func CreateUser(t *testing.T) models.User

func CreateUserAccessMap

func CreateUserAccessMap(t *testing.T, serviceID, userID, policyID, privilege string)

func CreateUserGroupAccessMap

func CreateUserGroupAccessMap(t *testing.T, serviceID, userGroupID, policyID, privilege string)

func CreateUserGroupServiceGroupAccessMap

func CreateUserGroupServiceGroupAccessMap(t *testing.T, serviceGroupID, userGroupID, policyID, privilege string)

func DeleteGroup

func DeleteGroup(t *testing.T, groupID string)

func DeletePolicy

func DeletePolicy(t *testing.T, policyID string)

func DeleteService

func DeleteService(t *testing.T, sID string)

func DeleteUser

func DeleteUser(t *testing.T, userID string)

func DeleteUserAccessMap

func DeleteUserAccessMap(t *testing.T, mapID string)

func DeleteUserGroupServiceGroupAccessMap

func DeleteUserGroupServiceGroupAccessMap(t *testing.T, mapID string)

func DownloadHostCerts

func DownloadHostCerts(t *testing.T, serviceID string)

func GetAllGroups

func GetAllGroups(t *testing.T, gType, expectedID string)

func GetAllServices

func GetAllServices(t *testing.T) (serviceID string)

func GetAllUsers

func GetAllUsers(t *testing.T, expected models.User)

func GetOrg

func GetOrg(t *testing.T, expected models.Org)

func GetPolicies

func GetPolicies(t *testing.T, expected models.Policy)

func GetPolicy

func GetPolicy(t *testing.T, expected models.Policy)

func GetService

func GetService(t *testing.T, serviceID string)

func GetServiceGroupDetail

func GetServiceGroupDetail(t *testing.T, expectedServiceID, expectedGroupID string)

func GetUser

func GetUser(t *testing.T, expected models.User)

func GetUserAccessMap

func GetUserAccessMap(t *testing.T, serviceID, userID, policyID, privilege string) (mapID string)

func GetUserGroupDetail

func GetUserGroupDetail(t *testing.T, expectedUserID, expectedGroupID string)

func GetUserGroupServiceGroupAccessMaps

func GetUserGroupServiceGroupAccessMaps(t *testing.T, serviceGroupID, userGroupID, policyID, privilege string) (mapID string)

func GetUserGroupsAssignedToService

func GetUserGroupsAssignedToService(t *testing.T, serviceID, userGroupID, policyID, privilege string) (mapID string)

func GetUserGroupsAssignedToServiceGroups

func GetUserGroupsAssignedToServiceGroups(t *testing.T, serviceID, userGroupID, policyID, privilege string) (mapID string)

func UpdateGroup

func UpdateGroup(t *testing.T, groupID string)

func UpdateHTTPConfig

func UpdateHTTPConfig(t *testing.T, serviceID string)

func UpdateHostCerts

func UpdateHostCerts(t *testing.T, serviceID, certVal string)

func UpdateOrg

func UpdateOrg(t *testing.T) models.Org

func UpdatePolicy

func UpdatePolicy(t *testing.T, policyID string)

func UpdateSSLCerts

func UpdateSSLCerts(t *testing.T, serviceID, certVal string)

func UpdateService

func UpdateService(t *testing.T, serviceID string)

func UpdateServiceGroup

func UpdateServiceGroup(t *testing.T, serviceID, groupID, updateType string)

func UpdateUser

func UpdateUser(t *testing.T, userID string) models.User

func UpdateUserAccessMap

func UpdateUserAccessMap(t *testing.T, mapID string)

func UpdateUserGroup

func UpdateUserGroup(t *testing.T, userID, groupID, updateType string)

func UpdateUserGroupAccessMap

func UpdateUserGroupAccessMap(t *testing.T, mapID string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL