-
Notifications
You must be signed in to change notification settings - Fork 35
/
responses.feature
255 lines (234 loc) · 26.9 KB
/
responses.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
@unit
Feature: REST Client Responses
Scenario Outline: <client>: <endpoint> - <jsonfile>
Given mock http responses in "<jsonfile>" loaded from "<response-folder>" with status <status>.
When we make any "<client>" call to "<endpoint>".
Then the parsed response should equal the mock response.
@unit.responses
Examples:
| jsonfile | response-folder | status | client | endpoint |
| indexer_applications_AccountResponse_0.json | generated_responses | 200 | indexer | lookupAccountByID |
| indexer_applications_AccountsResponse_0.json | generated_responses | 200 | indexer | searchForAccounts |
| indexer_applications_ApplicationResponse_0.json | generated_responses | 200 | indexer | lookupApplicationByID |
| indexer_applications_ApplicationsResponse_0.json | generated_responses | 200 | indexer | searchForApplications |
| indexer_applications_AssetBalancesResponse_0.json | generated_responses | 200 | indexer | lookupAssetBalances |
| indexer_applications_AssetResponse_0.json | generated_responses | 200 | indexer | lookupAssetByID |
| indexer_applications_AssetsResponse_0.json | generated_responses | 200 | indexer | searchForAssets |
| indexer_applications_TransactionsResponse_0.json | generated_responses | 200 | indexer | lookupAccountTransactions |
| indexer_applications_TransactionsResponse_0.json | generated_responses | 200 | indexer | lookupAssetTransactions |
| indexer_applications_TransactionsResponse_0.json | generated_responses | 200 | indexer | searchForTransactions |
| indexer_applications_TransactionsResponse_1.json | generated_responses | 200 | indexer | lookupAccountTransactions |
| indexer_applications_TransactionsResponse_1.json | generated_responses | 200 | indexer | lookupAssetTransactions |
| indexer_applications_TransactionsResponse_1.json | generated_responses | 200 | indexer | searchForTransactions |
| indexer_applications_TransactionsResponse_2.json | generated_responses | 200 | indexer | lookupAccountTransactions |
| indexer_applications_TransactionsResponse_2.json | generated_responses | 200 | indexer | lookupAssetTransactions |
| indexer_applications_TransactionsResponse_2.json | generated_responses | 200 | indexer | searchForTransactions |
| indexer_applications_ErrorResponse_0.json | generated_responses | 500 | indexer | any |
| algod_applications_NodeStatusResponse_0.json | generated_responses | 200 | algod | GetStatus |
| algod_applications_NodeStatusResponse_0.json | generated_responses | 200 | algod | WaitForBlock |
| algod_applications_CompileResponse_0.json | generated_responses | 200 | algod | TealCompile |
| algod_applications_PostTransactionsResponse_0.json | generated_responses | 200 | algod | RawTransaction |
| algod_applications_SupplyResponse_0.json | generated_responses | 200 | algod | GetSupply |
| algod_applications_TransactionParametersResponse_0.json | generated_responses | 200 | algod | TransactionParams |
| algod_applications_ApplicationResponse_0.json | generated_responses | 200 | algod | GetApplicationByID |
| algod_applications_AssetResponse_0.json | generated_responses | 200 | algod | GetAssetByID |
| algod_applications_ErrorResponse_0.json | generated_responses | 500 | algod | any |
@unit.responses.231
Examples:
| jsonfile | response-folder | status | client | endpoint |
| indexer_applications_AccountResponse_0.json | generated_responses_231 | 200 | indexer | lookupAccountByID |
| indexer_applications_AccountsResponse_0.json | generated_responses_231 | 200 | indexer | searchForAccounts |
| indexer_applications_ApplicationResponse_0.json | generated_responses_231 | 200 | indexer | lookupApplicationByID |
| indexer_applications_ApplicationsResponse_0.json | generated_responses_231 | 200 | indexer | searchForApplications |
| indexer_applications_AssetBalancesResponse_0.json | generated_responses_231 | 200 | indexer | lookupAssetBalances |
| indexer_applications_AssetResponse_0.json | generated_responses_231 | 200 | indexer | lookupAssetByID |
| indexer_applications_AssetsResponse_0.json | generated_responses_231 | 200 | indexer | searchForAssets |
| indexer_applications_TransactionsResponse_0.json | generated_responses_231 | 200 | indexer | lookupAccountTransactions |
| indexer_applications_TransactionsResponse_0.json | generated_responses_231 | 200 | indexer | lookupAssetTransactions |
| indexer_applications_TransactionsResponse_0.json | generated_responses_231 | 200 | indexer | searchForTransactions |
| indexer_applications_TransactionsResponse_1.json | generated_responses_231 | 200 | indexer | lookupAccountTransactions |
| indexer_applications_TransactionsResponse_1.json | generated_responses_231 | 200 | indexer | lookupAssetTransactions |
| indexer_applications_TransactionsResponse_1.json | generated_responses_231 | 200 | indexer | searchForTransactions |
| indexer_applications_TransactionsResponse_2.json | generated_responses_231 | 200 | indexer | lookupAccountTransactions |
| indexer_applications_TransactionsResponse_2.json | generated_responses_231 | 200 | indexer | lookupAssetTransactions |
| indexer_applications_TransactionsResponse_2.json | generated_responses_231 | 200 | indexer | searchForTransactions |
| algod_NodeStatusResponse_0.json | generated_responses_231 | 200 | algod | GetStatus |
| algod_NodeStatusResponse_0.json | generated_responses_231 | 200 | algod | WaitForBlock |
| algod_CompileResponse_0.json | generated_responses_231 | 200 | algod | TealCompile |
| algod_DryrunResponse_0.json | generated_responses_231 | 200 | algod | DryRun |
| algod_PostTransactionsResponse_0.json | generated_responses_231 | 200 | algod | RawTransaction |
| algod_ProofResponse_0.json | generated_responses_231 | 200 | algod | Proof |
| algod_SupplyResponse_0.json | generated_responses_231 | 200 | algod | GetSupply |
| algod_TransactionParametersResponse_0.json | generated_responses_231 | 200 | algod | TransactionParams |
@unit.responses.unlimited_assets
Examples:
| jsonfile | response-folder | status | client | endpoint |
| indexer_unlimited_aa_AccountResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupAccountByID |
| indexer_unlimited_aa_AccountsResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | searchForAccounts |
| indexer_unlimited_aa_ApplicationLocalStatesResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupAccountAppLocalStates |
| indexer_unlimited_aa_ApplicationLogsResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupApplicationLogsByID |
| indexer_unlimited_aa_ApplicationResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupApplicationByID |
| indexer_unlimited_aa_ApplicationsResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | searchForApplications |
| indexer_unlimited_aa_ApplicationsResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupAccountCreatedApplications |
| indexer_unlimited_aa_ApplicationsResponse_1.json | generated_responses_unlimited_assets | 200 | indexer | searchForApplications |
| indexer_unlimited_aa_ApplicationsResponse_1.json | generated_responses_unlimited_assets | 200 | indexer | lookupAccountCreatedApplications |
| indexer_unlimited_aa_AssetBalancesResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupAssetBalances |
| indexer_unlimited_aa_AssetHoldingsResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupAccountAssets |
| indexer_unlimited_aa_AssetResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupAssetByID |
| indexer_unlimited_aa_AssetsResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | searchForAssets |
| indexer_unlimited_aa_AssetsResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupAccountCreatedAssets |
| indexer_unlimited_aa_AssetsResponse_1.json | generated_responses_unlimited_assets | 200 | indexer | searchForAssets |
| indexer_unlimited_aa_AssetsResponse_1.json | generated_responses_unlimited_assets | 200 | indexer | lookupAccountCreatedAssets |
| indexer_unlimited_aa_TransactionResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_1.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_2.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_3.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_4.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_5.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_6.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_7.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_8.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_9.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_10.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_11.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_12.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_13.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_14.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_15.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_16.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionResponse_17.json | generated_responses_unlimited_assets | 200 | indexer | lookupTransaction |
| indexer_unlimited_aa_TransactionsResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupAccountTransactions |
| indexer_unlimited_aa_TransactionsResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | lookupAssetTransactions |
| indexer_unlimited_aa_TransactionsResponse_0.json | generated_responses_unlimited_assets | 200 | indexer | searchForTransactions |
| indexer_unlimited_aa_TransactionsResponse_1.json | generated_responses_unlimited_assets | 200 | indexer | lookupAccountTransactions |
| indexer_unlimited_aa_TransactionsResponse_1.json | generated_responses_unlimited_assets | 200 | indexer | lookupAssetTransactions |
| indexer_unlimited_aa_TransactionsResponse_1.json | generated_responses_unlimited_assets | 200 | indexer | searchForTransactions |
| indexer_unlimited_aa_TransactionsResponse_2.json | generated_responses_unlimited_assets | 200 | indexer | lookupAccountTransactions |
| indexer_unlimited_aa_TransactionsResponse_2.json | generated_responses_unlimited_assets | 200 | indexer | lookupAssetTransactions |
| indexer_unlimited_aa_TransactionsResponse_2.json | generated_responses_unlimited_assets | 200 | indexer | searchForTransactions |
| indexer_unlimited_aa_ErrorResponse_0.json | generated_responses_unlimited_assets | 500 | indexer | any |
| indexer_unlimited_aa_ErrorResponse_1.json | generated_responses_unlimited_assets | 500 | indexer | any |
| algod_unlimited_aa_Account_0.json | generated_responses_unlimited_assets | 200 | algod | AccountInformation |
| algod_unlimited_aa_Account_2.json | generated_responses_unlimited_assets | 200 | algod | AccountInformation |
| algod_unlimited_aa_AccountApplicationResponse_0.json | generated_responses_unlimited_assets | 200 | algod | AccountApplicationInformation |
| algod_unlimited_aa_AccountApplicationResponse_2.json | generated_responses_unlimited_assets | 200 | algod | AccountApplicationInformation |
| algod_unlimited_aa_AccountAssetResponse_0.json | generated_responses_unlimited_assets | 200 | algod | AccountAssetInformation |
| algod_unlimited_aa_AccountAssetResponse_2.json | generated_responses_unlimited_assets | 200 | algod | AccountAssetInformation |
| algod_unlimited_aa_Application_0.json | generated_responses_unlimited_assets | 200 | algod | GetApplicationByID |
| algod_unlimited_aa_Application_1.json | generated_responses_unlimited_assets | 200 | algod | GetApplicationByID |
| algod_unlimited_aa_Asset_0.json | generated_responses_unlimited_assets | 200 | algod | GetAssetByID |
| algod_unlimited_aa_Asset_1.json | generated_responses_unlimited_assets | 200 | algod | GetAssetByID |
| algod_unlimited_aa_CompileResponse_0.json | generated_responses_unlimited_assets | 200 | algod | TealCompile |
| algod_unlimited_aa_CompileResponse_1.json | generated_responses_unlimited_assets | 200 | algod | TealCompile |
| algod_unlimited_aa_NodeStatusResponse_0.json | generated_responses_unlimited_assets | 200 | algod | GetStatus |
| algod_unlimited_aa_NodeStatusResponse_0.json | generated_responses_unlimited_assets | 200 | algod | WaitForBlock |
| algod_unlimited_aa_NodeStatusResponse_1.json | generated_responses_unlimited_assets | 200 | algod | GetStatus |
| algod_unlimited_aa_NodeStatusResponse_1.json | generated_responses_unlimited_assets | 200 | algod | WaitForBlock |
| algod_unlimited_aa_NodeStatusResponse_2.json | generated_responses_unlimited_assets | 200 | algod | GetStatus |
| algod_unlimited_aa_NodeStatusResponse_2.json | generated_responses_unlimited_assets | 200 | algod | WaitForBlock |
| algod_unlimited_aa_NodeStatusResponse_3.json | generated_responses_unlimited_assets | 200 | algod | GetStatus |
| algod_unlimited_aa_NodeStatusResponse_3.json | generated_responses_unlimited_assets | 200 | algod | WaitForBlock |
| algod_unlimited_aa_PostTransactionsResponse_0.json | generated_responses_unlimited_assets | 200 | algod | RawTransaction |
| algod_unlimited_aa_PostTransactionsResponse_1.json | generated_responses_unlimited_assets | 200 | algod | RawTransaction |
| algod_unlimited_aa_SupplyResponse_0.json | generated_responses_unlimited_assets | 200 | algod | GetSupply |
| algod_unlimited_aa_SupplyResponse_1.json | generated_responses_unlimited_assets | 200 | algod | GetSupply |
| algod_unlimited_aa_TransactionParametersResponse_0.json | generated_responses_unlimited_assets | 200 | algod | TransactionParams |
| algod_unlimited_aa_TransactionParametersResponse_1.json | generated_responses_unlimited_assets | 200 | algod | TransactionParams |
| algod_unlimited_aa_ErrorResponse_0.json | generated_responses_unlimited_assets | 500 | algod | any |
| algod_unlimited_aa_ErrorResponse_1.json | generated_responses_unlimited_assets | 500 | algod | any |
| algod_unlimited_aa_ErrorResponse_2.json | generated_responses_unlimited_assets | 500 | algod | any |
@unit.responses.genesis
Examples:
| jsonfile | response-folder | status | client | endpoint |
| algod_GetGenesisResponse_0.json | generated_responses_231 | 200 | algod | GetGenesis |
@unit.responses.messagepack
Examples:
| jsonfile | response-folder | status | client | endpoint |
| algod_applications_PendingTransactionResponse_0.base64 | generated_responses | 200 | algod | PendingTransactionInformation |
| algod_applications_PendingTransactionResponse_1.base64 | generated_responses | 200 | algod | PendingTransactionInformation |
| algod_applications_PendingTransactionsResponse_0.base64 | generated_responses | 200 | algod | GetPendingTransactions |
| algod_applications_PendingTransactionsResponse_1.base64 | generated_responses | 200 | algod | GetPendingTransactions |
| algod_applications_PendingTransactionsResponse_0.base64 | generated_responses | 200 | algod | GetPendingTransactionsByAddress |
| algod_applications_PendingTransactionsResponse_1.base64 | generated_responses | 200 | algod | GetPendingTransactionsByAddress |
@unit.responses.messagepack.231
Examples:
| jsonfile | response-folder | status | client | endpoint |
| algod_PendingTransactionResponse_0.base64 | generated_responses_231 | 200 | algod | PendingTransactionInformation |
| algod_PendingTransactionsResponse_0.base64 | generated_responses_231 | 200 | algod | GetPendingTransactions |
| algod_PendingTransactionsResponse_1.base64 | generated_responses_231 | 200 | algod | GetPendingTransactions |
| algod_PendingTransactionsResponse_0.base64 | generated_responses_231 | 200 | algod | GetPendingTransactionsByAddress |
| algod_PendingTransactionsResponse_1.base64 | generated_responses_231 | 200 | algod | GetPendingTransactionsByAddress |
@unit.stateproof.responses
Examples:
| jsonfile | response-folder | status | client | endpoint |
| v2_algod_GetTransactionProof.json | stateproof | 200 | algod | GetTransactionProof |
| v2_algod_GetLightBlockHeaderProof.json | stateproof | 200 | algod | GetLightBlockHeaderProof |
| v2_algod_GetStateProof.json | stateproof | 200 | algod | GetStateProof |
| v2_indexer_lookupBlock_header.json | stateproof | 200 | indexer | lookupBlock |
| v2_indexer_lookupBlock_transaction.json | stateproof | 200 | indexer | lookupBlock |
@unit.stateproof.responses.msgp
Examples:
| jsonfile | response-folder | status | client | endpoint |
| v2_algod_GetBlock_header.base64 | stateproof | 200 | algod | GetBlock |
| v2_algod_GetBlock_transaction.base64 | stateproof | 200 | algod | GetBlock |
@unit.responses.participationupdates
Examples:
| jsonfile | response-folder | status | client | endpoint |
| indexer_block_ParticipationupdatesResponse.json | generated_responses | 200 | indexer | lookupBlock |
@unit.responses.blocksummary
Examples:
| jsonfile | response-folder | status | client | endpoint |
| v2_algod_GetBlockHash.json | v2algodclient_responsejsons | 200 | algod | GetBlockHash |
@unit.responses.blocksummary
Examples:
| jsonfile | response-folder | status | client | endpoint |
| indexer_v2_lookupBlock_header_only.json | v2indexerclient_responsejsons | 200 | indexer | lookupBlock |
@unit.responses.minbalance
Examples:
| jsonfile | response-folder | status | client | endpoint |
| algod_account_minbalance.json | v2algodclient_responsejsons | 200 | algod | AccountInformation |
| lookupAccountByID_minbalance.json | v2indexerclient_responsejsons | 200 | indexer | lookupAccountByID |
@unit.responses.statedelta
Examples:
| jsonfile | response-folder | status | client | endpoint |
| statedelta_betanet_23963123.base64 | generated_responses | 200 | algod | GetLedgerStateDelta |
@unit.responses.timestamp
Examples:
| jsonfile | response-folder | status | client | endpoint |
| devmodeTimestampOffset.json | v2algodclient_responsejsons | 200 | algod | GetBlockTimeStampOffset |
@unit.responses.sync
Examples:
| jsonfile | response-folder | status | client | endpoint |
| getSyncRoundResponse.json | v2algodclient_responsejsons | 200 | algod | GetSyncRound |
@unit.responses.txngroupdeltas
Examples:
| jsonfile | response-folder | status | client | endpoint |
| groupdelta-betanet_23963123.base64 | generated_responses | 200 | algod | GetTransactionGroupLedgerStateDeltaForRound |
@unit.responses.txngroupdeltas
Examples:
| jsonfile | response-folder | status | client | endpoint |
| groupdelta-betanet_23963123_0.base64 | generated_responses | 200 | algod | GetLedgerStateDeltaForTransactionGroup |
| groupdelta-betanet_23963123_1.base64 | generated_responses | 200 | algod | GetLedgerStateDeltaForTransactionGroup |
| groupdelta-betanet_23963123_1.base64 | generated_responses | 200 | algod | GetLedgerStateDeltaForTransactionGroup |
@unit.responses.txngroupdeltas.json
Examples:
| jsonfile | response-folder | status | client | endpoint |
| groupdelta-betanet_23963123_0.json | v2algodclient_responsejsons | 200 | algod | GetLedgerStateDeltaForTransactionGroup |
| groupdelta-betanet_23963123_1.json | v2algodclient_responsejsons | 200 | algod | GetLedgerStateDeltaForTransactionGroup |
| groupdelta-betanet_23963123_2.json | v2algodclient_responsejsons | 200 | algod | GetLedgerStateDeltaForTransactionGroup |
@unit.responses.txngroupdeltas.json
Examples:
| jsonfile | response-folder | status | client | endpoint |
| groupdelta-betanet_23963123.json | v2algodclient_responsejsons | 200 | algod | GetTransactionGroupLedgerStateDeltaForRound |
@unit.responses.statedelta.json
Examples:
| jsonfile | response-folder | status | client | endpoint |
| statedelta_betanet_22085518.json | v2algodclient_responsejsons | 200 | algod | GetLedgerStateDelta |
| statedelta_testnet_26091000.json | v2algodclient_responsejsons | 200 | algod | GetLedgerStateDelta |
| statedelta_testnet_26091001.json | v2algodclient_responsejsons | 200 | algod | GetLedgerStateDelta |
| statedelta_testnet_26091002.json | v2algodclient_responsejsons | 200 | algod | GetLedgerStateDelta |
| statedelta_testnet_26091003.json | v2algodclient_responsejsons | 200 | algod | GetLedgerStateDelta |
@unit.responses.txid.json
Examples:
| jsonfile | response-folder | status | client | endpoint |
| txids_betanet_29608182.json | v2algodclient_responsejsons | 200 | algod | GetBlockTxids |