Repository navigation
Commit 7871fa9
authored
fix(gapic-generator): init mock response in version header test (#18488)
The mock for the generated `api_version_header` tests was not
initializing a valid response and in some tests, specifically those
generated for the extended operations APIs in compute, would fail
attempting to access the `response.name`. Link to full breakdown in the
bug.
Note: We need to add `compute` to the
`gapic-generator/tests/integration/goldens/` once we publish it with the
api_version information.
Fixes http://b/559815865#comment151 parent 0b488a3 commit 7871fa9
2 files changed
Lines changed: 2 additions & 0 deletions
File tree
- packages/gapic-generator/gapic
- ads-templates/tests/unit/gapic/%name_%version/%sub
- templates/tests/unit/gapic/%name_%version/%sub
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| 667 | + | |
667 | 668 | | |
668 | 669 | | |
669 | 670 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
0 commit comments