Skip to content

Commit 94dea65

Browse files
committed
fix: update TestTransformationListOutputJSON for new pagination format
Test was expecting old array format [] but transformation list now returns the new pagination response format with models and pagination. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 900cd9e commit 94dea65

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

test/acceptance/transformation_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,12 @@ func TestTransformationListOutputJSON(t *testing.T) {
377377
}
378378

379379
cli := NewCLIRunner(t)
380-
stdout := cli.RunExpectSuccess("gateway", "transformation", "list", "--output", "json")
381-
assert.True(t, stdout == "[]" || (len(stdout) > 0 && stdout[0] == '['))
380+
type TransformationListResponse struct {
381+
Models []interface{} `json:"models"`
382+
Pagination map[string]interface{} `json:"pagination"`
383+
}
384+
var resp TransformationListResponse
385+
require.NoError(t, cli.RunJSON(&resp, "gateway", "transformation", "list"))
386+
assert.NotNil(t, resp.Models)
387+
assert.NotNil(t, resp.Pagination)
382388
}

0 commit comments

Comments
 (0)