Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureContext ¶
type FeatureContext struct {
Client gateway.GatewayAPIClient
HTTPClient http.Client
Config Config
// remember the last response to check the outcome
Response interface{}
// remember created resources to access them later
Users map[string]User
ResourceReferences map[string]ResourceAlias
// remember created resources for deprovisioning
// if they change during the test runs, we do not need to clean up
CreatedSpaces []*providerv1beta1.StorageSpace
CreatedResourceReferences []*providerv1beta1.Reference
}
FeatureContext holds values which are used across test steps
func (*FeatureContext) GetAuthContext ¶
func (f *FeatureContext) GetAuthContext(u string) (context.Context, error)
GetAuthContext uses the access token from the Feature Context to create a context for the cs3api request
func (*FeatureContext) GetHomeSpace ¶
func (f *FeatureContext) GetHomeSpace(user string) (*providerv1beta1.StorageSpace, error)
GetHomeSpace finds the personal space of the user
func (*FeatureContext) GetPublicShareToken ¶
func (f *FeatureContext) GetPublicShareToken(publicShare string) (string, error)
func (*FeatureContext) Init ¶
func (f *FeatureContext) Init(cfg Config)
type ResourceAlias ¶
type ResourceAlias struct {
Ref *providerv1beta1.Reference
Info *providerv1beta1.ResourceInfo
}
type User ¶
type User struct {
RevaToken string
User *userv1beta1.User
}
User for remembering in the feature context
Click to show internal directories.
Click to hide internal directories.