Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/source/gitlab/factory_test.go')
-rw-r--r--internal/source/gitlab/factory_test.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/internal/source/gitlab/factory_test.go b/internal/source/gitlab/factory_test.go
index 54a46c38..705fdc47 100644
--- a/internal/source/gitlab/factory_test.go
+++ b/internal/source/gitlab/factory_test.go
@@ -1,12 +1,10 @@
package gitlab
import (
- "fmt"
"testing"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitlab-pages/internal/fixture"
"gitlab.com/gitlab-org/gitlab-pages/internal/serving/disk"
"gitlab.com/gitlab-org/gitlab-pages/internal/source/gitlab/api"
)
@@ -59,32 +57,4 @@ func TestFabricateServing(t *testing.T) {
require.EqualError(t, err, ErrDiskDisabled.Error())
require.Nil(t, srv)
})
-
- t.Run("when lookup path requires serverless serving", func(t *testing.T) {
- g := Gitlab{}
-
- lookup := api.LookupPath{
- Prefix: "/",
- Source: api.Source{
- Type: "serverless",
- Serverless: api.Serverless{
- Service: "my-func.knative.example.com",
- Cluster: api.Cluster{
- Address: "127.0.0.10",
- Port: "443",
- Hostname: "my-cluster.example.com",
- CertificateCert: fixture.Certificate,
- CertificateKey: fixture.Key,
- },
- },
- },
- }
-
- srv, err := g.fabricateServing(lookup)
- require.EqualError(t, err, fmt.Sprintf("gitlab: unknown serving source type: %q", lookup.Source.Type))
-
- // Serverless serving has been deprecated.
- // require.IsType(t, &serverless.Serverless{}, fabricateServing(lookup))
- require.Nil(t, srv)
- })
}