storagetest

package
v0.0.0-...-9451de5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppQuotaSuite

type AppQuotaSuite struct {
	SuiteHooks
	AppStorage      appStorage
	AppQuotaStorage quota.QuotaStorage
}

func (*AppQuotaSuite) TestGet

func (s *AppQuotaSuite) TestGet(c *check.C)

func (*AppQuotaSuite) TestGetNotFound

func (s *AppQuotaSuite) TestGetNotFound(c *check.C)

func (*AppQuotaSuite) TestInc

func (s *AppQuotaSuite) TestInc(c *check.C)

func (*AppQuotaSuite) TestIncNotFound

func (s *AppQuotaSuite) TestIncNotFound(c *check.C)

func (*AppQuotaSuite) TestSet

func (s *AppQuotaSuite) TestSet(c *check.C)

func (*AppQuotaSuite) TestSetLimit

func (s *AppQuotaSuite) TestSetLimit(c *check.C)

func (*AppQuotaSuite) TestSetLimitNotFound

func (s *AppQuotaSuite) TestSetLimitNotFound(c *check.C)

func (*AppQuotaSuite) TestSetNotFound

func (s *AppQuotaSuite) TestSetNotFound(c *check.C)

type CacheSuite

type CacheSuite struct {
	SuiteHooks
	CacheStorage cache.CacheStorage
}

func (*CacheSuite) TestCacheExpiration

func (s *CacheSuite) TestCacheExpiration(c *check.C)

func (*CacheSuite) TestCacheGetAll

func (s *CacheSuite) TestCacheGetAll(c *check.C)

func (*CacheSuite) TestCacheGetNotFound

func (s *CacheSuite) TestCacheGetNotFound(c *check.C)

func (*CacheSuite) TestCachePut

func (s *CacheSuite) TestCachePut(c *check.C)

type ClusterSuite

type ClusterSuite struct {
	SuiteHooks
	ClusterStorage provision.ClusterStorage
}

func (*ClusterSuite) TestDeleteCluster

func (s *ClusterSuite) TestDeleteCluster(c *check.C)

func (*ClusterSuite) TestFindAllClusters

func (s *ClusterSuite) TestFindAllClusters(c *check.C)

func (*ClusterSuite) TestFindAllClustersNoCluster

func (s *ClusterSuite) TestFindAllClustersNoCluster(c *check.C)

func (*ClusterSuite) TestFindClusterByName

func (s *ClusterSuite) TestFindClusterByName(c *check.C)

func (*ClusterSuite) TestFindClusterByPool

func (s *ClusterSuite) TestFindClusterByPool(c *check.C)

func (*ClusterSuite) TestFindClusterByPoolNoCluster

func (s *ClusterSuite) TestFindClusterByPoolNoCluster(c *check.C)

func (*ClusterSuite) TestFindClusterByProvisioner

func (s *ClusterSuite) TestFindClusterByProvisioner(c *check.C)

func (*ClusterSuite) TestFindClusterByProvisionerNoCluster

func (s *ClusterSuite) TestFindClusterByProvisionerNoCluster(c *check.C)

func (*ClusterSuite) TestUpsertExistingCluster

func (s *ClusterSuite) TestUpsertExistingCluster(c *check.C)

func (*ClusterSuite) TestUpsertNewCluster

func (s *ClusterSuite) TestUpsertNewCluster(c *check.C)

func (*ClusterSuite) TestUpsertNewDefaultCluster

func (s *ClusterSuite) TestUpsertNewDefaultCluster(c *check.C)

type PlanSuite

type PlanSuite struct {
	SuiteHooks
	PlanStorage app.PlanStorage
}

func (*PlanSuite) TestDeletePlan

func (s *PlanSuite) TestDeletePlan(c *check.C)

func (*PlanSuite) TestDeletePlanNotFound

func (s *PlanSuite) TestDeletePlanNotFound(c *check.C)

func (*PlanSuite) TestFindAllPlans

func (s *PlanSuite) TestFindAllPlans(c *check.C)

func (*PlanSuite) TestFindDefaultPlan

func (s *PlanSuite) TestFindDefaultPlan(c *check.C)

func (*PlanSuite) TestFindDefaultPlanNotFound

func (s *PlanSuite) TestFindDefaultPlanNotFound(c *check.C)

func (*PlanSuite) TestFindPlanByName

func (s *PlanSuite) TestFindPlanByName(c *check.C)

func (*PlanSuite) TestFindPlanByNameNotFound

func (s *PlanSuite) TestFindPlanByNameNotFound(c *check.C)

func (*PlanSuite) TestInsertDefaultPlan

func (s *PlanSuite) TestInsertDefaultPlan(c *check.C)

func (*PlanSuite) TestInsertDuplicatePlan

func (s *PlanSuite) TestInsertDuplicatePlan(c *check.C)

func (*PlanSuite) TestInsertPlan

func (s *PlanSuite) TestInsertPlan(c *check.C)

type PlatformImageSuite

type PlatformImageSuite struct {
	SuiteHooks
	PlatformImageStorage image.PlatformImageStorage
}

func (*PlatformImageSuite) TestDeletePlatform

func (s *PlatformImageSuite) TestDeletePlatform(c *check.C)

func (*PlatformImageSuite) TestDeletePlatformNotFound

func (s *PlatformImageSuite) TestDeletePlatformNotFound(c *check.C)

func (*PlatformImageSuite) TestFindPlatformByNameNotFound

func (s *PlatformImageSuite) TestFindPlatformByNameNotFound(c *check.C)

func (*PlatformImageSuite) TestPlatformImageAppend

func (s *PlatformImageSuite) TestPlatformImageAppend(c *check.C)

func (*PlatformImageSuite) TestPlatformImageFindByName

func (s *PlatformImageSuite) TestPlatformImageFindByName(c *check.C)

func (*PlatformImageSuite) TestPlatformImageUpsert

func (s *PlatformImageSuite) TestPlatformImageUpsert(c *check.C)

type PlatformSuite

type PlatformSuite struct {
	SuiteHooks
	PlatformStorage app.PlatformStorage
}

func (*PlatformSuite) TestDeletePlatform

func (s *PlatformSuite) TestDeletePlatform(c *check.C)

func (*PlatformSuite) TestDeletePlatformNotFound

func (s *PlatformSuite) TestDeletePlatformNotFound(c *check.C)

func (*PlatformSuite) TestFindAllPlatforms

func (s *PlatformSuite) TestFindAllPlatforms(c *check.C)

func (*PlatformSuite) TestFindEnabledPlatforms

func (s *PlatformSuite) TestFindEnabledPlatforms(c *check.C)

func (*PlatformSuite) TestFindPlatformByName

func (s *PlatformSuite) TestFindPlatformByName(c *check.C)

func (*PlatformSuite) TestFindPlatformByNameNotFound

func (s *PlatformSuite) TestFindPlatformByNameNotFound(c *check.C)

func (*PlatformSuite) TestInsertDuplicatePlatform

func (s *PlatformSuite) TestInsertDuplicatePlatform(c *check.C)

func (*PlatformSuite) TestInsertPlatform

func (s *PlatformSuite) TestInsertPlatform(c *check.C)

func (*PlatformSuite) TestUpdatePlatform

func (s *PlatformSuite) TestUpdatePlatform(c *check.C)

func (*PlatformSuite) TestUpdatePlatformNotFound

func (s *PlatformSuite) TestUpdatePlatformNotFound(c *check.C)

type ServiceBrokerSuite

type ServiceBrokerSuite struct {
	SuiteHooks
	ServiceBrokerStorage service.ServiceBrokerStorage
}

func (*ServiceBrokerSuite) TestDelete

func (s *ServiceBrokerSuite) TestDelete(c *check.C)

func (*ServiceBrokerSuite) TestDeleteNotFound

func (s *ServiceBrokerSuite) TestDeleteNotFound(c *check.C)

func (*ServiceBrokerSuite) TestFind

func (s *ServiceBrokerSuite) TestFind(c *check.C)

func (*ServiceBrokerSuite) TestFindAll

func (s *ServiceBrokerSuite) TestFindAll(c *check.C)

func (*ServiceBrokerSuite) TestFindNotFound

func (s *ServiceBrokerSuite) TestFindNotFound(c *check.C)

func (*ServiceBrokerSuite) TestInsert

func (s *ServiceBrokerSuite) TestInsert(c *check.C)

func (*ServiceBrokerSuite) TestInsertDuplicate

func (s *ServiceBrokerSuite) TestInsertDuplicate(c *check.C)

func (*ServiceBrokerSuite) TestUpdate

func (s *ServiceBrokerSuite) TestUpdate(c *check.C)

func (*ServiceBrokerSuite) TestUpdateNotFound

func (s *ServiceBrokerSuite) TestUpdateNotFound(c *check.C)

type SuiteHooks

type SuiteHooks interface {
	SetUpSuite(c *check.C)
	SetUpTest(c *check.C)
	TearDownTest(c *check.C)
	TearDownSuite(c *check.C)
}

type TeamSuite

type TeamSuite struct {
	SuiteHooks
	TeamStorage auth.TeamStorage
}

func (*TeamSuite) TeamUpdate

func (s *TeamSuite) TeamUpdate(c *check.C)

func (*TeamSuite) TeamUpdateNotFound

func (s *TeamSuite) TeamUpdateNotFound(c *check.C)

func (*TeamSuite) TestDeleteTeam

func (s *TeamSuite) TestDeleteTeam(c *check.C)

func (*TeamSuite) TestDeleteTeamNotFound

func (s *TeamSuite) TestDeleteTeamNotFound(c *check.C)

func (*TeamSuite) TestFindAllTeams

func (s *TeamSuite) TestFindAllTeams(c *check.C)

func (*TeamSuite) TestFindTeamByName

func (s *TeamSuite) TestFindTeamByName(c *check.C)

func (*TeamSuite) TestFindTeamByNameNotFound

func (s *TeamSuite) TestFindTeamByNameNotFound(c *check.C)

func (*TeamSuite) TestFindTeamByNames

func (s *TeamSuite) TestFindTeamByNames(c *check.C)

func (*TeamSuite) TestFindTeamByNamesNotFound

func (s *TeamSuite) TestFindTeamByNamesNotFound(c *check.C)

func (*TeamSuite) TestInsertDuplicateTeam

func (s *TeamSuite) TestInsertDuplicateTeam(c *check.C)

func (*TeamSuite) TestInsertTeam

func (s *TeamSuite) TestInsertTeam(c *check.C)

type TeamTokenSuite

type TeamTokenSuite struct {
	SuiteHooks
	TeamTokenStorage auth.TeamTokenStorage
}

func (*TeamTokenSuite) TestDeleteTeamToken

func (s *TeamTokenSuite) TestDeleteTeamToken(c *check.C)

func (*TeamTokenSuite) TestDeleteTeamTokenNotFound

func (s *TeamTokenSuite) TestDeleteTeamTokenNotFound(c *check.C)

func (*TeamTokenSuite) TestFindTeamTokenByTeamsNotFound

func (s *TeamTokenSuite) TestFindTeamTokenByTeamsNotFound(c *check.C)

func (*TeamTokenSuite) TestFindTeamTokenByToken

func (s *TeamTokenSuite) TestFindTeamTokenByToken(c *check.C)

func (*TeamTokenSuite) TestFindTeamTokenByTokenNotFound

func (s *TeamTokenSuite) TestFindTeamTokenByTokenNotFound(c *check.C)

func (*TeamTokenSuite) TestFindTeamTokensByTeams

func (s *TeamTokenSuite) TestFindTeamTokensByTeams(c *check.C)

func (*TeamTokenSuite) TestInsertDuplicateTeamToken

func (s *TeamTokenSuite) TestInsertDuplicateTeamToken(c *check.C)

func (*TeamTokenSuite) TestInsertDuplicateTeamTokenID

func (s *TeamTokenSuite) TestInsertDuplicateTeamTokenID(c *check.C)

func (*TeamTokenSuite) TestInsertTeamToken

func (s *TeamTokenSuite) TestInsertTeamToken(c *check.C)

func (*TeamTokenSuite) TestUpdateLastAccessTeamToken

func (s *TeamTokenSuite) TestUpdateLastAccessTeamToken(c *check.C)

func (*TeamTokenSuite) TestUpdateLastAccessTokenNotFound

func (s *TeamTokenSuite) TestUpdateLastAccessTokenNotFound(c *check.C)

func (*TeamTokenSuite) TestUpdateTeamToken

func (s *TeamTokenSuite) TestUpdateTeamToken(c *check.C)

func (*TeamTokenSuite) TestUpdateTeamTokenNotFound

func (s *TeamTokenSuite) TestUpdateTeamTokenNotFound(c *check.C)

type UserQuotaSuite

type UserQuotaSuite struct {
	SuiteHooks
	UserStorage      userStorage
	UserQuotaStorage quota.QuotaStorage
	UserQuotaService quota.QuotaService
}

func (*UserQuotaSuite) TestGet

func (s *UserQuotaSuite) TestGet(c *check.C)

func (*UserQuotaSuite) TestGetNotFound

func (s *UserQuotaSuite) TestGetNotFound(c *check.C)

func (*UserQuotaSuite) TestInc

func (s *UserQuotaSuite) TestInc(c *check.C)

func (*UserQuotaSuite) TestIncNotFound

func (s *UserQuotaSuite) TestIncNotFound(c *check.C)

func (*UserQuotaSuite) TestSetLimit

func (s *UserQuotaSuite) TestSetLimit(c *check.C)

func (*UserQuotaSuite) TestSetLimitNotFound

func (s *UserQuotaSuite) TestSetLimitNotFound(c *check.C)

type WebhookSuite

type WebhookSuite struct {
	SuiteHooks
	WebhookStorage eventTypes.WebhookStorage
}

func (*WebhookSuite) TestDelete

func (s *WebhookSuite) TestDelete(c *check.C)

func (*WebhookSuite) TestFindAllByTeams

func (s *WebhookSuite) TestFindAllByTeams(c *check.C)

func (*WebhookSuite) TestFindByEvent

func (s *WebhookSuite) TestFindByEvent(c *check.C)

func (*WebhookSuite) TestFindByNameNotFound

func (s *WebhookSuite) TestFindByNameNotFound(c *check.C)

func (*WebhookSuite) TestInsertDuplicateWebhook

func (s *WebhookSuite) TestInsertDuplicateWebhook(c *check.C)

func (*WebhookSuite) TestInsertWebhook

func (s *WebhookSuite) TestInsertWebhook(c *check.C)

func (*WebhookSuite) TestUpdate

func (s *WebhookSuite) TestUpdate(c *check.C)

func (*WebhookSuite) TestUpdateNotFound

func (s *WebhookSuite) TestUpdateNotFound(c *check.C)

Jump to

Keyboard shortcuts

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