Skip to content

Commit

Permalink
test: add mock responses for schema-only branch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] and luist18 committed Feb 5, 2025
1 parent 5115c22 commit 6ab0479
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions mocks/main/projects/test/branches/POST.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"branch": {
"id": "br-new-branch-123456",
"name": "test_schema_only_branch",
"created_at": "2021-01-01T00:00:00.000Z"
},
"endpoints": [
{
"id": "ep-undefined-123456",
"type": "read_write",
"created_at": "2021-01-01T00:00:00.000Z",
"host": "undefined.example.com"
}
],
"connection_uris": [
{
"connection_uri": "postgres://ep-undefined-123456.example.com:5432/test_project"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"code": "invalid_request",
"message": "Schema-only branches require a compute endpoint"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"code": "invalid_request",
"message": "Schema-only branches require a read-write compute endpoint"
}

0 comments on commit 6ab0479

Please sign in to comment.