forked from runatlantis/atlantis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: clone repository before getting working dir (runatlantis#3867)
* fix: clone repository before getting working dir * unrelated change * move TryLock up * fix workspace and add e2e tests * fix description --------- Co-authored-by: PePe Amengual <[email protected]>
- Loading branch information
1 parent
73ddd0e
commit cee08c2
Showing
4 changed files
with
170 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
server/controllers/events/testdata/test-repos/simple-yaml/exp-output-plan-default.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Ran Plan for dir: `.` workspace: `default` | ||
|
||
<details><summary>Show Output</summary> | ||
|
||
```diff | ||
preinit | ||
|
||
|
||
Terraform used the selected providers to generate the following execution | ||
plan. Resource actions are indicated with the following symbols: | ||
+ create | ||
|
||
Terraform will perform the following actions: | ||
|
||
# null_resource.simple[0] will be created | ||
+ resource "null_resource" "simple" { | ||
+ id = (known after apply) | ||
} | ||
|
||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
|
||
Changes to Outputs: | ||
+ var = "fromconfig" | ||
+ workspace = "default" | ||
|
||
postplan | ||
``` | ||
|
||
* :arrow_forward: To **apply** this plan, comment: | ||
* `atlantis apply -d .` | ||
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url) | ||
* :repeat: To **plan** this project again, comment: | ||
* `atlantis plan -d .` | ||
</details> | ||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
|
||
--- | ||
* :fast_forward: To **apply** all unapplied plans from this pull request, comment: | ||
* `atlantis apply` | ||
* :put_litter_in_its_place: To delete all plans and locks for the PR, comment: | ||
* `atlantis unlock` |
36 changes: 36 additions & 0 deletions
36
server/controllers/events/testdata/test-repos/simple-yaml/exp-output-plan-staging.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Ran Plan for dir: `.` workspace: `staging` | ||
|
||
<details><summary>Show Output</summary> | ||
|
||
```diff | ||
Terraform used the selected providers to generate the following execution | ||
plan. Resource actions are indicated with the following symbols: | ||
+ create | ||
|
||
Terraform will perform the following actions: | ||
|
||
# null_resource.simple[0] will be created | ||
+ resource "null_resource" "simple" { | ||
+ id = (known after apply) | ||
} | ||
|
||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
|
||
Changes to Outputs: | ||
+ var = "fromfile" | ||
+ workspace = "staging" | ||
``` | ||
|
||
* :arrow_forward: To **apply** this plan, comment: | ||
* `atlantis apply -w staging` | ||
* :put_litter_in_its_place: To **delete** this plan click [here](lock-url) | ||
* :repeat: To **plan** this project again, comment: | ||
* `atlantis plan -w staging` | ||
</details> | ||
Plan: 1 to add, 0 to change, 0 to destroy. | ||
|
||
--- | ||
* :fast_forward: To **apply** all unapplied plans from this pull request, comment: | ||
* `atlantis apply` | ||
* :put_litter_in_its_place: To delete all plans and locks for the PR, comment: | ||
* `atlantis unlock` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters