Commit cd1a61e
authored
[tests] Fix some flaky tests in Aspire.Hosting.Azure.Tests (#5187)
* [tests] ValidateApplicationSamples: use a temporary path for generating the manifest
Other tests also generate and use `postgres.module.bicep` in the tests'
bindir, and these can run in parallel causing them to interfere with
each other.
Issue: #5174
* [tests] ManifestUtils.GetManifestWithBicep: generate in a temporary path
Avoid interfering with other tests by generating the bicep files in
per-test temporyary paths.
`AzureBicepResourceTests.AsAzurePostgresFlexibleServerViaRunMode`
uses `postgres.module.bicep` also, and that file can get overwritten by
other tests like in `AzureBicepResourceTests`.
Issue: #51131 parent 02a0bc6 commit cd1a61e
File tree
2 files changed
+6
-4
lines changed- tests/Aspire.Hosting.Tests
- Schema
- Utils
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
0 commit comments