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

function_test.go « serverless « serving « internal - gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 39f860253c0d8a7ccf11854684cd6951ef4a02b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package serverless

import (
	"testing"

	"github.com/stretchr/testify/require"
)

func TestFunctionHost(t *testing.T) {
	function := Function{
		Name:      "my-func",
		Domain:    "knative.example.com",
		Namespace: "my-namespace-123",
	}

	require.Equal(t, "my-func.my-namespace-123.knative.example.com", function.Host())
}