Commit 1dd6ea6
authored
acc: Fixed test output for dashboard and jobs URLs (#3144)
## Changes
Fixed test output for dashboard and jobs URLs
## Why
Integration tests are failing with
```
- "url": "[DATABRICKS_URL]/dashboardsv3/[ALPHANUMID]/published?o=[NUMID]",
+ "url": "[DATABRICKS_URL]/dashboardsv3/[ALPHANUMID]/published",
```
and
```
- "url": "[DATABRICKS_URL]/jobs/[NUMID]?o=[NUMID]"
+ "url": "[DATABRICKS_URL]/jobs/[NUMID]"
```
We only started to track this output on Cloud runs in this PR
https://github.com/databricks/cli/pull/3130/files and it was failing
from the start.
So it's not a change in our code or backend which lead to the diff.
Likely `?o=` is omitted on the cloud runs because orgId is already
included in workspace URL and hence `?o=` not added
https://github.com/databricks/cli/blob/cf1495663458afc1b12649505ffb00e62f794974/bundle/config/mutator/initialize_urls.go#L47-L58
## Tests
Covered with existing tests
<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->1 parent eb098d5 commit 1dd6ea6
File tree
4 files changed
+14
-2
lines changed- acceptance/bundle/deploy
- dashboard/detect-change
- jobs/check-metadata
4 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments