Skip to content

Commit

Permalink
Resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
james03160927 committed Jan 3, 2025
1 parent 7063521 commit 082c4b0
Show file tree
Hide file tree
Showing 5 changed files with 207 additions and 160 deletions.
216 changes: 113 additions & 103 deletions drip/api.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions integration-tests/registry_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,17 @@ func TestRegistryComfyNode(t *testing.T) {
}
})

t.Run("Conflict", func(t *testing.T) {
body := drip.CreateComfyNodesJSONRequestBody(comfyNodes)
res, err := withMiddleware(authz, impl.CreateComfyNodes)(ctx, drip.CreateComfyNodesRequestObject{
NodeId: *node.Id,
Version: *nodeVersion.Version,
Body: &body,
})
require.NoError(t, err)
require.IsType(t, drip.CreateComfyNodes409JSONResponse{}, res)
})

t.Run("GetNodeVersion", func(t *testing.T) {
res, err := withMiddleware(authz, impl.GetNodeVersion)(ctx, drip.GetNodeVersionRequestObject{
NodeId: *node.Id,
Expand Down
6 changes: 6 additions & 0 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Existing Comfy Nodes exists
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
Expand Down
Loading

0 comments on commit 082c4b0

Please sign in to comment.