cmd/uplinkng/ultest: make possible to test access commands
Test external implementation doesn't support OpenAccess method. This makes imposible to test output of commands like inspect or share. This implements only basic functionality. Change-Id: I127ef0bb45a01634bd5265ed80840f8095c72794
This commit is contained in:
parent
24cf7e8ea6
commit
8f07abafe0
@ -32,3 +32,7 @@ func (ex *external) OpenFilesystem(ctx context.Context, access string, options .
|
||||
func (ex *external) OpenProject(ctx context.Context, access string, options ...ulext.Option) (*uplink.Project, error) {
|
||||
return ex.project, nil
|
||||
}
|
||||
|
||||
func (ex *external) OpenAccess(accessName string) (access *uplink.Access, err error) {
|
||||
return uplink.ParseAccess(accessName)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user