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: 65d84eb7175f34225adbccd0d84a269508227680 (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",
		Namespace:  "my-namespace-123",
		BaseDomain: "knative.example.com",
	}

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