| 12345678910111213141516171819202122 |
- package test
- import (
- "context"
- "errors"
- "github.com/google/uuid"
- "github.com/porter-dev/porter/internal/models"
- "github.com/porter-dev/porter/internal/repository"
- )
- type SystemServiceStatusRepository struct {
- canQuery bool
- }
- func NewSystemServiceStatusRepository(canQuery bool, failingMethods ...string) repository.SystemServiceStatusRepository {
- return &SystemServiceStatusRepository{canQuery: false}
- }
- func (repo *SystemServiceStatusRepository) ReadSystemServiceStatus(ctx context.Context, id uuid.UUID) (models.SystemServiceStatus, error) {
- return models.SystemServiceStatus{}, errors.New("cannot read database")
- }
|