mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
Add integration test for creating and using presets from scratch
Signed-off-by: Danny Kopping <danny@coder.com>
This commit is contained in:
@ -3,10 +3,8 @@ package prebuilds
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"golang.org/x/xerrors"
|
||||
|
||||
"github.com/coder/coder/v2/coderd/database"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Claimer interface {
|
||||
@ -17,7 +15,8 @@ type Claimer interface {
|
||||
type AGPLPrebuildClaimer struct{}
|
||||
|
||||
func (c AGPLPrebuildClaimer) Claim(context.Context, database.Store, uuid.UUID, string, uuid.UUID) (*uuid.UUID, error) {
|
||||
return nil, xerrors.Errorf("not entitled to claim prebuilds")
|
||||
// Not entitled to claim prebuilds in AGPL version.
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c AGPLPrebuildClaimer) Initiator() uuid.UUID {
|
||||
|
Reference in New Issue
Block a user