H-47: unblock connector sandbox setup (#11)

Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
Rogee
2026-08-13 18:25:19 +08:00
committed by GitHub
co-authored by rogee
parent fcfe5bd37c
commit a5ceb0af93
3 changed files with 42 additions and 13 deletions
@@ -0,0 +1,21 @@
package v1
import (
"testing"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/require"
)
func TestPlatformAppIDSupportsBothRoutes(t *testing.T) {
for _, params := range []gin.Param{
{Key: "id", Value: "7"},
{Key: "platform_app_id", Value: "7"},
} {
ctx, _ := gin.CreateTestContext(nil)
ctx.Params = []gin.Param{params}
id, err := platformAppID(ctx)
require.NoError(t, err)
require.Equal(t, uint(7), id)
}
}