mirror of
https://github.com/hanzoai/functions.git
synced 2026-10-30 15:04:37 +00:00
Module github.com/fission/fission -> github.com/hanzoai/functions (288 files). CRD API group fission.io -> hanzo.ai (67 files): functions.hanzo.ai, environments.hanzo.ai, httptriggers.hanzo.ai, messagequeuetriggers.hanzo.ai, joining apps.hanzo.ai under the one house group. Doc URLs preserved. Builds green. Matches the cloud contract: clients/functions, /v1/functions, App CR role "function". Remaining: fork the env images + the live CRD-group migration (demo-only today, low risk).
30 lines
632 B
Go
30 lines
632 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"github.com/hanzoai/functions/test/e2e/framework"
|
|
)
|
|
|
|
func TestPreUpgradeTaskClient(t *testing.T) {
|
|
f := framework.NewFramework()
|
|
defer f.Logger().Sync()
|
|
ctx := t.Context()
|
|
err := f.Start(ctx)
|
|
require.NoError(t, err)
|
|
|
|
preupgradeClient, err := makePreUpgradeTaskClient(f.ClientGen(), f.Logger())
|
|
require.NoError(t, err)
|
|
|
|
crd := preupgradeClient.GetFunctionCRD(ctx)
|
|
require.NotNil(t, crd)
|
|
|
|
err = preupgradeClient.LatestSchemaApplied(ctx)
|
|
require.NoError(t, err)
|
|
|
|
err = preupgradeClient.VerifyFunctionSpecReferences(ctx)
|
|
require.NoError(t, err)
|
|
}
|