Skip to content

Conversation

@SteveLauC
Copy link
Member

@SteveLauC SteveLauC commented Nov 16, 2025

feat: support array-type response body

This commit allows us to do assertions against array-type response body:

POST /resources/shares/_batch_get
[
  {
    "resource_id": "$[[env.DATASOURCE_1_DOCUMENT_FILE_A_ID]]",
  }
]
# assert: (200,
# [
#   {
#     "permission": 8,
#     "principal_id": "$[[env.A_ID]]"
#   },
#   {
#     "permission": 4
#   }
# ])

This was not implemented primarily because Loadgen did not support it,
which will be solved by PR 1.

@SteveLauC SteveLauC force-pushed the steve/feat/array_type_response_body branch 2 times, most recently from 25eddfa to d7bab4f Compare November 17, 2025 03:56
This commit allows us to do assertions against array-type response body:

```
POST /resources/shares/_batch_get
[
  {
    "resource_id": "$[[env.DATASOURCE_1_DOCUMENT_FILE_A_ID]]",
  }
]
# assert: (200,
# [
#   {
#     "permission": 8,
#     "principal_id": "$[[env.A_ID]]"
#   },
#   {
#     "permission": 4
#   }
# ])
```

This was not implemented primarily because Loadgen did not support it,
which will be solved by PR [1].

[1]: infinilabs/loadgen#41
@SteveLauC SteveLauC force-pushed the steve/feat/array_type_response_body branch from d7bab4f to 78289fc Compare November 17, 2025 03:56
@SteveLauC SteveLauC marked this pull request as ready for review November 17, 2025 03:57
@SteveLauC SteveLauC merged commit dac25fb into main Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant