|
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 32s
sop-checklist-gate / gate (pull_request) Successful in 40s
CI / Detect changes (pull_request) Successful in 1m18s
CI / Canvas (Next.js) (pull_request) Successful in 6s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 5s
CI / Python Lint & Test (pull_request) Successful in 7s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / Platform (Go) (pull_request) Failing after 2m32s
CI / all-required (pull_request) Successful in 2s
sop-tier-check / tier-check (pull_request) Successful in 32s
sop-checklist / all-items-acked (pull_request) [info tier:low] acked: 7/7
audit-force-merge / audit (pull_request) Successful in 20s
Fixes three issues in bundle.go / bundle_test.go:
1. Missing sqlmock import: TestBundleImport_ValidJSON and
TestBundleExport_NotFound use sqlmock.Sqlmock from setupTestDB()
and call sqlmock.NewResult() but did not import go-sqlmock,
causing a build failure.
2. Empty/null bundle guard: null JSON (ShouldBindJSON → zero-value Bundle{})
or empty {} payload would bind without error and reach bundle.Import(),
INSERTing a row with name="" and tier=0 into workspaces before
failing. Add b.Schema != "" guard before calling bundle.Import().
3. Outdated test expectations: TestBundleImport_ValidJSON expected
INSERT INTO workspace_schedules and workspace_secrets which the current
importer does not issue. Remove those expectations so the test
reflects actual importer behaviour (INSERT + UPDATE runtime only).
Closes #850
|
||
|---|---|---|
| .. | ||
| cmd | ||
| internal | ||
| migrations | ||
| pkg/provisionhook | ||
| .air.toml | ||
| .ci-force | ||
| .gitignore | ||
| .golangci.yaml | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| Dockerfile.tenant | ||
| entrypoint-tenant.sh | ||
| go.mod | ||
| go.sum | ||