Commit 42d996c
authored
qa: add retransmit metro test to qa.testnet (#4156)
## Summary of Changes
* This PR reworks the `TestQA_MulticastSettlement`.
* Deleted `e2e/qa_shred_settlement_test.go.` since it only contained one
setup method that I moved into the `TestQA_MulticastSettlement` file.
* It checks the env we are in, if mainnet, continue as normal, if
testnet and program config retransmit flag off, continue as normal too.
If testnet and program config retransmit flag on do the following:
1. Assert that when trying to buy a seat in a metro other than frankfurt
fails
2. Try to buy a seat in frankfurt and assert that the user accesspass
has access to these multicast groups: `edge-solana-retrans`
* The PR deletes `e2e/qa_retransmit_only_settlement_test.go`.
`TestQA_RetransmitOnlySettlement` drove the same positive path, so the
reworked test covers it now. Its device selector, its metro-code
formatter and its group assertion moved into the multicast test file.
* The group codes now come from one flag, `-retransmit-group-codes`,
which replaces `-leader-group-code` and `-retransmit-group-code`. The
check requires the seat's groups to equal that list, so any extra group
fails it.
* `sdk/shreds/go/state.go` gains `IsRetransmitOnlyOnboardingEnforced`,
which reads bit 7 of the program config flags.
* `e2e/internal/qa/client_settlement.go` gains that same read, plus
`ClosestNonRetransmitOnlyDevice` for the device the rejection step pays
on.
* A companion change in `malbeclabs/infra` passes
`-retransmit-group-codes=edge-solana-retrans` in `qa.testnet.yml` and
deletes `qa.retransmits.testnet.yml`. Merge both together, or the hourly
job runs the group check without the codes it needs.1 parent ea2000b commit 42d996c
9 files changed
Lines changed: 833 additions & 798 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
510 | 525 | | |
511 | 526 | | |
512 | 527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
144 | 158 | | |
145 | 159 | | |
146 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
167 | 188 | | |
168 | 189 | | |
169 | | - | |
| 190 | + | |
170 | 191 | | |
171 | 192 | | |
172 | 193 | | |
| |||
176 | 197 | | |
177 | 198 | | |
178 | 199 | | |
179 | | - | |
| 200 | + | |
180 | 201 | | |
181 | 202 | | |
182 | 203 | | |
| |||
185 | 206 | | |
186 | 207 | | |
187 | 208 | | |
188 | | - | |
| 209 | + | |
| 210 | + | |
189 | 211 | | |
190 | | - | |
| 212 | + | |
191 | 213 | | |
192 | 214 | | |
193 | 215 | | |
| |||
769 | 791 | | |
770 | 792 | | |
771 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
772 | 807 | | |
773 | 808 | | |
774 | 809 | | |
| |||
0 commit comments