feat(seedance): 同步输入图片约束与自动转换
This commit is contained in:
@@ -14,6 +14,26 @@ import (
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
)
|
||||
|
||||
func TestSeedanceInputImageConstraintMigrationKeepsCatalogSnapshotsInSync(t *testing.T) {
|
||||
payload, err := os.ReadFile("../../migrations/0078_seedance_input_image_constraints.sql")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
content := string(payload)
|
||||
for _, required := range []string{
|
||||
"easyai:豆包Seedance-2.0",
|
||||
"easyai:豆包Seedance-2.0-fast",
|
||||
"input_image_resolution_range",
|
||||
"input_image_aspect_ratio_range",
|
||||
"'{metadata,rawModel,capabilities}'",
|
||||
"UPDATE platform_models",
|
||||
} {
|
||||
if !strings.Contains(content, required) {
|
||||
t.Fatalf("Seedance input image migration is missing %q", required)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestSecurityEventSchemaMigrationsDefineCurrentLifecycle(t *testing.T) {
|
||||
streamPayload, err := os.ReadFile("../../migrations/0063_oidc_security_events.sql")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user