Commit 2f729b5
test(cli): fix agent engine ignore test failing on CI without ADC
The test_to_agent_engine_respects_multiple_ignore_files unit test added in
PR #4187 failed in GitHub Actions. On CI runners there are no Application
Default Credentials and no project/region, so to_agent_engine falls back to the
interactive `gcloud auth application-default login` onboarding flow and aborts
with click.Abort. The test only appeared to pass locally because ambient ADC let
it return early (region unset) before reaching the deploy path.
- Pass project, region and adk_version explicitly so the onboarding flow is
skipped, exercising the full deploy path deterministically.
- Give the mocked Agent Engine client a realistic resource name so the
downstream console-URL formatting does not fail on a bare Mock.
Co-authored-by: Haran Rajkumar <haranrk@google.com>
PiperOrigin-RevId: 9346309351 parent 43115b2 commit 2f729b5
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| |||
137 | 143 | | |
138 | 144 | | |
139 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
140 | 152 | | |
141 | 153 | | |
142 | 154 | | |
| |||
0 commit comments